Run term frequency inverse document frequency (TF-IDF) normalization
RunTFIDF(object, ...)# S3 method for default RunTFIDF( object, assay = NULL, method = 1, scale.factor = 10000, verbose = TRUE, ... )# S3 method for Assay RunTFIDF( object, assay = NULL, method = 1, scale.factor = 10000, verbose = TRUE, ... )# S3 method for Seurat RunTFIDF( object, assay = NULL, method = 1, scale.factor = 10000, verbose = TRUE, ... )
# S3 method for default RunTFIDF( object, assay = NULL, method = 1, scale.factor = 10000, verbose = TRUE, ... )
# S3 method for Assay RunTFIDF( object, assay = NULL, method = 1, scale.factor = 10000, verbose = TRUE, ... )
# S3 method for Seurat RunTFIDF( object, assay = NULL, method = 1, scale.factor = 10000, verbose = TRUE, ... )
A Seurat object
Arguments passed to other methods
Name of assay to use
Which TF-IDF implementation to use. Choice of:
1: The LSI implementation used by Stuart & Butler et al. 2019 (https://doi.org/10.1101/460147).
2: The standard LSI implementation used by Cusanovich & Hill et al. 2018 (https://doi.org/10.1016/j.cell.2018.06.052).
3: The log-TF method
4: The 10x Genomics method (no TF normalization)
Which scale factor to use. Default is 10000.
Print progress
Returns a Seurat object
Seurat
# NOT RUN { mat <- matrix(data = rbinom(n = 25, size = 5, prob = 0.2), nrow = 5) RunTFIDF(object = mat) RunTFIDF(atac_small[['peaks']]) RunTFIDF(object = atac_small) # }
Run the code above in your browser using DataLab