ExperimentList - A container for multi-experiment data
Source:R/ExperimentList-class.R, R/MultiAssayExperiment-methods.R, R/MultiAssayExperiment-helpers.R, and 1 more
ExperimentList-class.RdThe ExperimentList class is a container that builds on
the SimpleList with additional checks for consistency in experiment
names and length. It contains a SimpleList of experiments with
sample identifiers. One element present per experiment performed.
Convert from SimpleList or list to the multi-experiment data
container. When using the mergeReplicates method, additional
arguments are passed to the given simplify function argument (e.g.,
na.rm = TRUE)
Usage
# S4 method for class 'ExperimentList'
show(object)
# S4 method for class 'ExperimentList'
isEmpty(x)
# S4 method for class 'ExperimentList'
dimnames(x)
# S4 method for class 'ExperimentList'
colnames(x, do.NULL = TRUE, prefix = "col")
# S4 method for class 'ExperimentList'
rownames(x, do.NULL = TRUE, prefix = "row")
# S4 method for class 'ExperimentList'
mergeReplicates(x, replicates = list(), simplify = BiocGenerics::mean, ...)
# S4 method for class 'ANY,missing'
assay(x, i, withDimnames = TRUE, ...)
# S4 method for class 'ExperimentList'
assays(x, withDimnames = TRUE, ...)
# S4 method for class 'ExperimentList,missing'
assay(x, i, withDimnames = TRUE, ...)
# S4 method for class 'ExperimentList,numeric'
assay(x, i, withDimnames = TRUE, ...)
# S4 method for class 'ExperimentList,character'
assay(x, i, withDimnames = TRUE, ...)Arguments
- object, x
An
ExperimentListobject- do.NULL, prefix
See
?base::rownamesfor a description of these arguments.- replicates
mergeReplicates: A
listorLogicalListwhere each element represents a sample and a vector of repeated measurements for the sample- simplify
A function for merging columns where duplicates are indicated by replicates
- ...
Additional arguments. See details for more information.
- i
A scalar
characterorintegerindex- withDimnames
logical (default TRUE) whether to return dimension names
Methods (by generic)
show(ExperimentList): Show method forExperimentListclassisEmpty(ExperimentList): check for zero length across all experimentsdimnames(ExperimentList): Get the dimension names for anExperimentListusingCharacterListcolnames(ExperimentList): Get the column names for anExperimentListas aCharacterListslightly more efficientlyrownames(ExperimentList): Get the row names for anExperimentListas aCharacterListslightly more efficientlymergeReplicates(ExperimentList): Apply the mergeReplicates method on the ExperimentList elementsassay(x = ANY, i = missing): Obtain the specified assay with anumericorcharacterreferenceassays(ExperimentList): Get the assay data from each element in theExperimentList
coercion
Convert a list or S4 List to an ExperimentList using the
as() function.
In the following example, x is either a list or
List:
as(x, "ExperimentList")Examples
ExperimentList()
#> ExperimentList class object of length 0:
#>