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)

nlhuong/vistimeseq documentation built on Sept. 4, 2021, 2:41 a.m.