reduceES: collapse the assay values in an ExpressionSet to a set of...

Description Usage Arguments Value Author(s) Examples

View source: R/plotExG.R

Description

collapse the assay values in an ExpressionSet to a set of specified genes, using a statistic when multiple probes map to a given gene

Usage

1
reduceES(es, annovec, ann2featMap, pdvname="symbol", collapseFun=NULL)

Arguments

es

ExpressionSet instance

annovec

genes to retain

ann2featMap

either an AnnDbBimap from AnnotationDbi (typically constructed with revmap(), or a named vector mapping from symbols to probe set IDs

pdvname

featureData variable name to be used to hold the annotations of variables kept

collapseFun

statistical function for collapsing data across probes mapping to the same gene

Value

An ExpressionSet instance limited to genes in annovec, condensed if necessary using collapseFun to get one number per gene from multiple probes

Author(s)

Vince Carey <stvjc@channing.harvard.edu>

Examples

1
2
3
4
5
library(ALL)
data(ALL)
library(hgu95av2.db)
rr = revmap(hgu95av2SYMBOL)
exprs(reduceES(ALL[,1:3], c("BCL2", "CPNE1"), rr, "sym", mean))

pathRender documentation built on Nov. 8, 2020, 8:03 p.m.