apCount-methods: Obtain the anti-profile score for a set of samples

Description Arguments Value Author(s) Examples

Description

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.

Arguments

fit

an object of class AntiProfile as produced by the buildAntiProfile method

expr

a matrix of gene expression, rownames are used as identifiers

Value

a numeric vector of anti-profile scores

Author(s)

Hector Corrada Bravo hcorrada@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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))
 }

antiProfiles documentation built on Nov. 8, 2020, 6:43 p.m.