mbecCLR: Centered Log-Ratio Transformation

Description Usage Arguments Value

Description

Internal function that performs CLR-transformation on input-matrix. Formula is: clr(mtx) = ln( mtx / geometric_mean(mtx_samples))

Usage

1
mbecCLR(input.mtx, offset = 0)

Arguments

input.mtx

A matrix of counts (samples x features).

offset

An (OPTIONAL) offset in case of sparse matrix. Function will add an offset of 1/#features if matrix is sparse and offset not provided.

Value

A matrix of transformed counts of same size and orientation as the input.


buschlab/MBECS documentation built on Jan. 21, 2022, 1:27 a.m.