preprocessMatrix: Preprocess a data matrix

Description Usage Arguments Details Value See Also Examples

Description

Centers and/or scales the columns and/or rows of the input matrix.

Usage

1
2
preprocessMatrix(x, center.cols = TRUE, scale.cols = FALSE, center.rows = FALSE,
scale.rows = FALSE, verbose = TRUE)

Arguments

x

a numeric matrix(-like object), typically with genes in rows and samples (e.g., microarrays) in columns

center.cols

a logical value indicating whether to adjust columns to have 0 mean

scale.cols

a logical value indicating whether to adjust columns to have unit variance

center.rows

a logical value indicating whether to adjust rows to have 0 mean

scale.rows

a logical value indicating whether to adjust rows to have unit variance

verbose

a logical value indicating the desired level of output as the algorithm runs

Details

This function centers and/or scales the columns and/or rows of the input matrix. Default parameter values correspond to those of the fastICA algorithm.

Value

A centered and/or scaled matrix.

See Also

scale

Examples

1
2
x = matrix(rnorm(100), 10, 10)
x = preprocessMatrix(x)

MPCary/DEXICA documentation built on May 4, 2019, 2:35 p.m.