scSubjects {aggregateBioVar} | R Documentation |
Extract unique values from SingleCellExperiment column (i.e. cell) metadata. Used to determine subject and cell type values.
scSubjects(scExp, ...)
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. |
List of character vectors with unique values from SingleCellExperiment column metadata variables.
## 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")