| apCount {antiProfiles} | R Documentation |
This function applies the given anti-profile to a new set of samples. Rownames in the expression matrix are used to match probenames in the AntiProfile object.
fit |
an object of class AntiProfile as produced by the buildAntiProfile method |
expr |
a matrix of gene expression, rownames are used as identifiers |
a numeric vector of anti-profile scores
Hector Corrada Bravo hcorrada@gmail.com
if (require(antiProfilesData)) {
data(apColonData)
# compute statistics
colonStats = apStats(exprs(apColonData), pData(apColonData)$Status)
# create an anti-profile, ignoring tissue-specificity of probesets, with 10 probesets
ap = buildAntiProfile(colonStats, tissueSpec=FALSE, sigsize=10)
# get counts for the original dataset
counts =apCount(ap, exprs(apColonData))
}