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.Rd
The 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
ExperimentList
object- do.NULL, prefix
See
?base::rownames
for a description of these arguments.- replicates
mergeReplicates: A
list
orLogicalList
where 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
character
orinteger
index- withDimnames
logical (default TRUE) whether to return dimension names
Methods (by generic)
show(ExperimentList)
: Show method forExperimentList
classisEmpty(ExperimentList)
: check for zero length across all experimentsdimnames(ExperimentList)
: Get the dimension names for anExperimentList
usingCharacterList
colnames(ExperimentList)
: Get the column names for anExperimentList
as aCharacterList
slightly more efficientlyrownames(ExperimentList)
: Get the row names for anExperimentList
as aCharacterList
slightly more efficientlymergeReplicates(ExperimentList)
: Apply the mergeReplicates method on the ExperimentList elementsassay(x = ANY, i = missing)
: Obtain the specified assay with anumeric
orcharacter
referenceassays(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:
#>