norm_counts: Normalize counts of a sparse matrix

Description Usage Arguments Value

View source: R/normalize.R

Description

Normalize counts of a sparse matrix

Usage

1
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


diem documentation built on Nov. 16, 2019, 1:08 a.m.