Signac (version 0.2.4)

BinarizeCounts: Binarize counts

Description

Set counts >1 to 1 in a count matrix

Usage

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, ...)

Arguments

object

A Seurat object

...

Arguments passed to other methods

assay

Name of assay to use. Can be a list of assays, and binarization will be applied to each.

verbose

Display messages

Value

Returns a Seurat object

Examples

Run this code
# NOT RUN {
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