center: Centering

Description Usage Arguments Value

View source: R/utils-preprocess.R

Description

Center gene expression data (before computing correlations), such that the average correlation between cells will be 0. Expression(Gene a, Cell k) - Avg(Expression(Gene a, Cell 1 to n)) mat is a matrix with cell rows and gene columns.

Usage

1
center(mat, rowWise = TRUE, center.by = "mean")

Arguments

mat

a matrix of cells-by-genes or genes-by-cells containing gene expression data.

rowWise

boolean. Center by rows if TRUE and by columns if FALSE.

Value

a matrix with centered gene expression data.


jlaffy/statistrics documentation built on May 23, 2019, 4:04 a.m.