View source: R/addPerCellQCMetrics.R
addPerCellQCMetrics | R Documentation |
Convenient utilities to compute QC metrics and add them to a SummarizedExperiment's row or column metadata.
addPerCellQCMetrics(x, subsets = NULL, ..., subset.prefix = "subsets_")
addPerFeatureQCMetrics(x, ...)
addPerCellQC(x, subsets = NULL, ..., subset.prefix = "subsets_")
addPerFeatureQC(x, ...)
x |
A SummarizedExperiment object or one of its subclasses. |
subsets |
A named list containing one or more vectors (a character vector of feature names, a logical vector, or a numeric vector of indices), used to identify interesting feature subsets such as ERCC spike-in transcripts or mitochondrial genes. |
... |
For For |
subset.prefix |
String containing the prefix for the names of the columns of |
These functions are simply wrappers around perCellQCMetrics
and perFeatureQCMetrics
, respectively.
The computed QC metrics are automatically appended onto the existing colData
or rowData
.
No protection is provided against duplicated column names.
addPerCellQC
and addPerFeatureQC
are exactly the same functions, sans the Metrics
at the end of their names.
They were added in the tempestuous youth of this package when naming was fast and loose.
These can be considered to be soft-deprecated in favor of the longer forms.
x
is returned with the QC metrics added to the row or column metadata.
Aaron Lun, LluĂs Revilla Sancho
perCellQCMetrics
and perFeatureQCMetrics
, which do the actual work.
example_sce <- mockSCE()
example_sce <- addPerCellQCMetrics(
example_sce,
subsets = list(group1 = 1:5, group2 = c("Gene_0001", "Gene_2000"))
)
colData(example_sce)
rowData(example_sce)
example_sce <- addPerFeatureQCMetrics(example_sce)
rowData(example_sce)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.