sampleData | R Documentation |
Metadata that describes the samples.
sampleData(object, ...)
sampleData(object, ...) <- value
## S4 method for signature 'SummarizedExperiment'
sampleData(
object,
clean = TRUE,
ignoreCols = c("^description$", "^genomeBuild$", "^qualityFormat$", "^samRef$")
)
## S4 replacement method for signature 'SummarizedExperiment,DFrame'
sampleData(object) <- value
## S4 method for signature 'SummarizedExperiment'
sampleNames(object)
object |
Object. |
clean |
|
ignoreCols |
|
value |
Value to assign. |
... |
Additional arguments. |
All columns defined in colData
of the object must be named in strict
lower camel case, otherwise this function will intentionally error.
DataFrame
.
Illegal colData
:
interestingGroups
: Generated automatically, based on the criteria
slotted into the object using interestingGroups()
. The function will
error intentionally if this column is manually defined in colData()
.
Recommended colData
:
sampleName
: Human readable sample names used by basejump plotting
functions in favor of object column names, which should be syntactically
valid (but not always very readable). See
make.names()
for more information on syntactically valid names. Note that
if this column is not defined in the object, it will be returned
automatically by sampleData()
.
Required colData
:
None.
Illegal colData
:
sampleId
: Redundant; already defined in the object column names.
Updated 2021-02-22.
data(RangedSummarizedExperiment, package = "AcidTest")
## SummarizedExperiment ====
object <- RangedSummarizedExperiment
sampleData(object)
## Assignment support.
sampleData(object)[["batch"]] <- 1L
## `batch` column should be now defined.
sampleData(object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.