splatPopQuantNorm: Quantile normalize by sample to fit sc expression...

Description Usage Arguments Value Examples

View source: R/splatPop-simulate.R

Description

For each sample, expression values are quantile normalized (qgamma) using the gamma distribution parameterized from splatEstimate(). This ensures the simulated gene means reflect the distribution expected from a sc dataset and not a bulk dataset.

Usage

1
splatPopQuantNorm(params, means)

Arguments

params

SplatPopParams object containing parameters for population scale simulations. See SplatPopParams for details.

means

Mean gene expression matrix with eQTL effects.

Value

matrix of quantile normalized gene mean expression levels.

Examples

1
2
3
4
5
if (requireNamespace("VariantAnnotation", quietly = TRUE) &&
    requireNamespace("preprocessCore", quietly = TRUE)) {
    bulk.means <- mockBulkMatrix(n.genes = 100, n.samples = 100)
    bulk.qnorm <- splatPopQuantNorm(newSplatPopParams(), bulk.means)
}

splatter documentation built on Dec. 3, 2020, 2:01 a.m.