# NOT RUN {
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"))
# }
Run the code above in your browser using DataLab