Log2Normalize: Compute log normalized expression values from count data in a...

Description Usage Arguments Details Value Examples

View source: R/normalize.R

Description

Compute log normalized expression values from count data in a SingleCellExperiment object.

Usage

1
Log2Normalize(x, return.sparse = FALSE)

Arguments

x

either a sparse or a dense matrix.

return.sparse

Logical when TRUE return type is same as input, when FLASE a dense matrix is returned.

Details

The input matrix is transformed into the log base 2 scale after addition of a pseudo count 1.

Value

log normalized matrix same as the input dimensions.

Examples

1
2
3
a = matrix(rpois(100, lambda = 10), ncol=10, nrow=10)

lnorm <- Log2Normalize(a)

debsin/dropClust documentation built on Nov. 4, 2019, 10:22 a.m.