Description Usage Arguments Value See Also Examples
View source: R/summarize_counts.R
Convert gene-by-cell count matrix to gene-by-subject count matrix. Row sums are calculated for each feature (i.e. gene) across cells by subject.
1 | countsBySubject(scExp, subjectVar)
|
scExp |
SingleCellExperiment object containing (at minimum) gene counts and column metadata describing sample identifiers and cell types. |
subjectVar |
Metadata column name assigning biological sample identity to aggregate within-subject feature counts. |
S4 DataFrame of gene-by-subject count sums.
scSubjects
for subjects
values.
1 2 | ## Return cell count matrix aggregated by subject.
countsBySubject(scExp=small_airway, subjectVar="orig.ident")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.