powered by
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.
TF.IDF(data, verbose = TRUE)
Matrix with the raw count data
Print progress
Returns a matrix with the normalized data
# 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