Skip to contents

Get the bias information from a ChromatinAssay5 object

Usage

Bias(object, ...)

Bias(object, ...) <- value

# S3 method for class 'ChromatinAssay5'
Bias(object, ...)

# S3 method for class 'Seurat'
Bias(object, assay = NULL, ...)

# S3 method for class 'ChromatinAssay5'
Bias(object, ...) <- value

# S3 method for class 'Seurat'
Bias(object, assay = NULL, ...) <- value

Arguments

object

A Seurat, GRangesAssay, or ChromatinAssay5 object

...

Arguments passed to other methods

value

A value to set. Can be NULL, to remove the current bias information, or a numeric vector object.

assay

Name of assay to use

Value

Returns a numeric vector or NULL

Examples

# \donttest{
Bias(atac_small[["peaks"]])
#> NULL
# }
# \donttest{
Bias(atac_small)
#> NULL
# }
bases <- c("A", "C", "G", "T")
hexamers <- apply(expand.grid(rep(list(bases), 6)), 1, paste0, collapse = "")
b <- 1:length(hexamers)
names(b) <- hexamers

# assign bias in a Seurat object
Bias(atac_small) <- b

# assign bias in a ChromatinAssay5 or GRangesAssay
Bias(atac_small[["peaks"]]) <- b