Learn R Programming

LMGene (version 2.28.0)

psmeans: Function to take means of probesets.

Description

Converts an ExpressionSet or AffyBatch object with one row of expression data per probeset into an ExpressionSet or AffyBatch object with one row per probe.

Usage

psmeans(eS, ind)

Arguments

eS
An ExpressionSet or AffyBatch object
ind
A vector used to indicate which probes go into which probesets.

Value

Returns an ExpressionSet or AffyBatch object with the expression matrix rows corresponding to probesets instead of individual probes. Elements of the returned ExpressionSet or AffyBatch object are means over each probeset.

Details

Each entry of ind corresponds to one probe and tells the number of the probeset it belongs to. See tranestAffyProbeLevel and sample.ind for examples.

See Also

tranestAffyProbeLevel, sample.ind

Examples

Run this code
library(LMGene)
library(Biobase)

data(sample.eS)
data(sample.ind)

# glog transform data
trs.eS <- transeS (sample.eS, 667, 65) 

# lowess normalize
ntrs.eS <- lnormeS(trs.eS) 

# take means over probesets
genesample.eS<- psmeans (ntrs.eS, sample.ind)

Run the code above in your browser using DataLab