Learn R Programming

diem (version 1.0)

norm_counts: Normalize counts of a sparse matrix

Description

Normalize counts of a sparse matrix

Usage

norm_counts(counts, scale_factor = 10000, logt = TRUE)

Arguments

counts

A Sparse Matrix.

scale_factor

A numeric scaling factor to multiply values after dividing counts matrix by total counts.

logt

A logical indicating whether to log transform after normalizing for columns to sum to 1 and multiplying by scaling factor.

Value

Sparse Matrix