pbFlatten | R Documentation |
Flattens a pseudobulk SingleCellExperiment
as returned by aggregateData
such that all cell subpopulations
are represented as a single assay.
pbFlatten(pb, normalize = TRUE)
pb |
a pseudobulk |
normalize |
logical specifying whether to compute a |
a SingleCellExperiment
.
data(example_sce)
library(SingleCellExperiment)
pb_stack <- aggregateData(example_sce)
(pb_flat <- pbFlatten(pb_stack))
ncol(pb_flat) == ncol(pb_stack)*length(assays(pb_stack))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.