Description Usage Arguments Details Value Examples
View source: R/TimeSeriesExperiment-class.R
TimeSeriesExperiment
constructor initializes the
TimeSeriesExperiment
object from
ExpressionSet
and populates the time, replicate, and group slots.
1 2 |
eset |
ExpressionSet object |
timepoint |
a vector indicating timepoint at which each sample
was collected or a character string equal to one of the column names
of a supplied |
group |
a vector indicating a group membership for each sample
or a character string equal to one of the column names of a supplied
|
replicate |
a vector indicating a replicate id of each sample
or a character string equal to one of the column names of a supplied
|
TimeSeriesExperiment
is an extension of
SummarizedExperiment
class.
Returns an initialized TimeSeriesExperiment object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | raw <- matrix(runif(3000), ncol = 30)
pheno.data <- data.frame(
time = rep(rep(1:5, each = 3), 2),
replicate = rep(1:3, 10),
group = rep(1:2, each = 15))
feature.data <- data.frame(
feature = paste0("F", 1:100)
)
## Not run:
library(Biobase)
test_eset <- ExpressionSet(
raw, phenoData = AnnotatedDataFrame(pheno.data),
featureData = AnnotatedDataFrame(feature.data))
test_TimeSeriesExperiment <- makeTimeSeriesExperimentFromExpressionSet(
test_eset, timepoint = "time", group = "group",
replicate = "replicate")
test_TimeSeriesExperiment
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.