varianceStabilization: Variance stabilization.

Description Usage Arguments Value Examples

View source: R/utils.R

Description

This function performs variance stabilization on assay data.

Usage

1
varianceStabilization(X, method = "asinh")

Arguments

X

an assay data matrix or data.frame where columns correspond

method

Method for variance stabilization (VST). Currently, supports "none" (no VST), "log1p" (log plus one), "asinh" (inverse hyperbolic sine) or "deseq" (varianceStabilizingTransformation function from DESeq2 package). Default is "log1p".

Value

Returns a varianced stabilized data matrix.

Examples

1
2
3
4
X <- sapply(exp(rlnorm(10)), function(m) rnbinom(20, size = 1, mu = m))
head(X)
Y <- varianceStabilization(X, method = "asinh")
head(Y)

TimeSeriesExperiment documentation built on Nov. 8, 2020, 11:09 p.m.