Learn R Programming

Signac (version 1.10.0)

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

Value

Returns a Seurat object

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

Examples

Run this code
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