CountTransform-class: Preprocessing Transformations on Sparse Count Matrices

CountTransform-classR Documentation

Preprocessing Transformations on Sparse Count Matrices

Description

Abstraction for the preprocessing transformations that are applied to count data before statistical methods like PCA (e.g., log1p, scaling, row-centering). Note that these transformations may not necessarily preserve the sparsity of the matrix.

Slots

func

Transformation to be applied to sparse count matrix. Should be a function with a single parameter.

center_rows

Whether transformed rows should be shifted to have mean zero

center_cols

Whether transformed columns should be shifted to have mean zero

scale

Whether transformed rows should be scaled to have unit variance


rafalab/smallcount documentation built on June 1, 2025, 2:10 p.m.