metricsPerSample: Metrics per Sample

Description Usage Arguments Value Author(s) See Also Examples

Description

Calculate summary statistics per sample.

Usage

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"))

Arguments

object

Object.

...

Additional arguments.

f

Mathematical function to apply. Defaults to "sum".

Value

data.frame.

Author(s)

Michael Steinbaugh

See Also

Other Data Functions: aggregateReplicates, cell2sample, fetchGeneData, mapCellsToSamples, sampleData, selectSamples, subsetPerSample, topBarcodes

Examples

 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)

WeiSong-bio/roryk-bcbioSinglecell documentation built on July 6, 2019, 12:03 a.m.