scSubjects: SingleCellExperiment subject values

Description Usage Arguments Value Examples

View source: R/summarize_counts.R

Description

Extract unique values from SingleCellExperiment column (i.e. cell) metadata. Used to determine subject and cell type values.

Usage

1
scSubjects(scExp, ...)

Arguments

scExp

SingleCellExperiment object containing (at minimum) gene counts and column metadata describing sample identifiers and cell types.

...

Named metadata variables for subjects and cell types.

Value

List of character vectors with unique values from SingleCellExperiment column metadata variables.

Examples

1
2
3
4
5
## Examples of metadata column variable names.
names(SummarizedExperiment::colData(small_airway))

## Return list of subject and cell type values from experiment metadata.
scSubjects(scExp=small_airway, subjects="orig.ident", cellTypes="celltype")

jasonratcliff/aggregateBioVar documentation built on Sept. 29, 2020, 11:53 p.m.