flattenPB: flattenPB

View source: R/misc.R

flattenPBR Documentation

flattenPB

Description

Flattens a pseudo-bulk SummarizedExperiment as produced by 'muscat::aggregateData' so that all cell types are represented in a single assay. Optionally normalizes the data and calculates per-sample logFCs.

Usage

flattenPB(pb, norm = TRUE, lfc_group = NULL)

Arguments

pb

a pseudo-bulk SummarizedExperiment as produced by 'muscat::aggregateData', with different celltypes/clusters are assays.

norm

Logical; whether to calculate logcpm (TMM normalization).

lfc_group

the colData column to use to calculate foldchange. If NULL (default), no foldchange assay will be computed.

Value

A SummarizedExperiment


plger/SEtools documentation built on Dec. 2, 2022, 3:58 p.m.