flattenPB: flattenPB

Description Usage Arguments Value

View source: R/misc.R

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

1
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


SEtools documentation built on Nov. 8, 2020, 8:21 p.m.