TF.IDF: Term frequency-inverse document frequency

Description Usage Arguments Value Examples

Description

Normalize binary data per cell using the term frequency-inverse document frequency normalization method (TF-IDF). This is suitable for the normalization of binary ATAC peak datasets.

Usage

1
TF.IDF(data, verbose = TRUE)

Arguments

data

Matrix with the raw count data

verbose

Print progress

Value

Returns a matrix with the normalized data

Examples

1
2
mat <- matrix(data = rbinom(n = 25, size = 5, prob = 0.2), nrow = 5)
mat_norm <- TF.IDF(data = mat)

gcday/seurat_fresh documentation built on June 23, 2019, 12:02 a.m.