LogNormalize: Normalize raw data

Description Usage Arguments Value Examples

View source: R/preprocessing.R

Description

Normalize count data per cell and transform to log scale

Usage

1
LogNormalize(data, scale.factor = 10000, verbose = TRUE)

Arguments

data

Matrix with the raw count data

scale.factor

Scale the data. Default is 1e4

verbose

Print progress

Value

Returns a matrix with the normalize and log transformed data

Examples

1
2
3
4
mat <- matrix(data = rbinom(n = 25, size = 5, prob = 0.2), nrow = 5)
mat
mat_norm <- LogNormalize(data = mat)
mat_norm

ibseq/scs-analysis documentation built on Feb. 27, 2021, 12:35 a.m.