Learn R Programming

Seurat (version 3.0.1)

TF.IDF: Term frequency-inverse document frequency

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

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

Run this code
# NOT RUN {
mat <- matrix(data = rbinom(n = 25, size = 5, prob = 0.2), nrow = 5)
mat_norm <- TF.IDF(data = mat)

# }

Run the code above in your browser using DataLab