CollapseReplicates: Combine Replicates in an ExpressionSet

Description Usage Arguments Author(s) Examples

Description

This function takes an ExpressionSet object storing either a constant or variable number of biological or technical replicates per stage and collapses replicate expression levels using a defined FUN (window function).

Usage

1
CollapseReplicates(ExpressionSet, nrep, FUN, stage.names = NULL)

Arguments

ExpressionSet

a standard PhyloExpressionSet or DivergenceExpressionSet object.

nrep

either a numeric value specifying the constant number of replicates per stage or a numeric vector specifying the variable number of replicates for each stage position.

FUN

a window function (e.g., mean, median, max, min, etc.) specifying how replicate expression levels should be collapsed.

stage.names

a character vector specifying the new names of collapsed stages.

Author(s)

Hajk-Georg Drost

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data(PhyloExpressionSetExample)

# combine the expression levels of the 2 replicates (const) per stage
# using mean as window function and rename new stages: "S1","S2","S3"
CollapseReplicates(ExpressionSet = PhyloExpressionSetExample[1:5,1:8], 
                   nrep          = 2, 
                   FUN           = mean, 
                   stage.names   = c("S1","S2","S3"))

# combine the expression levels of the 2 replicates (stage one), 2 replicates (stage two),
# and 3 replicates (stage three) using mean as window function 
# and rename new stages: "S1","S2","S3"
CollapseReplicates(ExpressionSet = PhyloExpressionSetExample[1:5,1:9], 
                   nrep          = c(2,2,3), 
                   FUN           = mean, 
                   stage.names   = c("S1","S2","S3"))

YTLogos/myTAI documentation built on May 19, 2019, 1:46 a.m.