cellCounts | R Documentation |
Extract matrix of cell counts from SingleCellExperiment
cellCounts(x)
x |
a |
matrix of cell counts with samples as rows and cell types as columns
computeCellCounts()
library(muscat)
library(SingleCellExperiment)
data(example_sce)
# create pseudobulk for each sample and cell cluster
pb <- aggregateToPseudoBulk(example_sce,
assay = "counts",
cluster_id = "cluster_id",
sample_id = "sample_id",
verbose = FALSE
)
# get matrix of cell counts for each sample
cellCounts(pb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.