Description Usage Arguments Value Author(s) See Also Examples
Calculate summary statistics per sample.
1 2 3 4 5 6 7 8 | metricsPerSample(object, ...)
## S4 method for signature 'SingleCellExperiment'
metricsPerSample(object, f = c("mean",
"median", "sum"))
## S4 method for signature 'seurat'
metricsPerSample(object, f = c("mean", "median", "sum"))
|
object |
Object. |
... |
Additional arguments. |
f |
Mathematical function to apply. Defaults to " |
data.frame
.
Michael Steinbaugh
Other Data Functions: aggregateReplicates
,
cell2sample
, fetchGeneData
,
mapCellsToSamples
,
sampleData
, selectSamples
,
subsetPerSample
, topBarcodes
1 2 3 4 5 6 7 8 9 10 11 12 | # SingleCellExperiment ====
# mean
x <- metricsPerSample(cellranger_small, f = "mean")
head(x)
# median
x <- metricsPerSample(cellranger_small, f = "median")
head(x)
# sum
x <- metricsPerSample(cellranger_small, f = "sum")
head(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.