pbFlatten: pbFlatten Flatten pseudobulk SCE

View source: R/pbFlatten.R

pbFlattenR Documentation

pbFlatten Flatten pseudobulk SCE

Description

Flattens a pseudobulk SingleCellExperiment as returned by aggregateData such that all cell subpopulations are represented as a single assay.

Usage

pbFlatten(pb, normalize = TRUE)

Arguments

pb

a pseudobulk SingleCellExperiment as returned by aggregateData, with different subpopulations as assays.

normalize

logical specifying whether to compute a logcpm assay.

Value

a SingleCellExperiment.

Examples

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))


HelenaLC/muscat documentation built on June 25, 2022, 8:20 a.m.