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, ...) <- valueExamples
# \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