powered by
Set counts >1 to 1 in a count matrix
BinarizeCounts(object, ...)# S3 method for default BinarizeCounts(object, assay = NULL, verbose = TRUE, ...)# S3 method for Assay BinarizeCounts(object, assay = NULL, verbose = TRUE, ...)# S3 method for Seurat BinarizeCounts(object, assay = NULL, verbose = TRUE, ...)
# S3 method for default BinarizeCounts(object, assay = NULL, verbose = TRUE, ...)
# S3 method for Assay BinarizeCounts(object, assay = NULL, verbose = TRUE, ...)
# S3 method for Seurat BinarizeCounts(object, assay = NULL, verbose = TRUE, ...)
Returns a Seurat object
Seurat
A Seurat object
Arguments passed to other methods
Name of assay to use. Can be a list of assays, and binarization will be applied to each.
Display messages
x <- matrix(data = sample(0:3, size = 25, replace = TRUE), ncol = 5) BinarizeCounts(x) BinarizeCounts(atac_small[['peaks']]) BinarizeCounts(atac_small)
Run the code above in your browser using DataLab