Description Usage Arguments Author(s) Examples
View source: R/CollapseReplicates.R
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).
1 | CollapseReplicates(ExpressionSet, nrep, FUN, stage.names = NULL)
|
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., |
stage.names |
a character vector specifying the new names of collapsed stages. |
Hajk-Georg Drost
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"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.