Count fragments within a set of regions for different groups of cells.
RegionMatrix(object, ...)
# S3 method for Seurat
RegionMatrix(
object,
regions,
key,
assay = NULL,
group.by = NULL,
idents = NULL,
upstream = 3000,
downstream = 3000,
verbose = TRUE,
...
)
# S3 method for ChromatinAssay
RegionMatrix(
object,
regions,
key,
assay = NULL,
group.by = NULL,
idents = NULL,
upstream = 3000,
downstream = 3000,
verbose = TRUE,
...
)
# S3 method for default
RegionMatrix(
object,
regions,
key,
assay = NULL,
group.by = NULL,
idents = NULL,
upstream = 3000,
downstream = 3000,
verbose = TRUE,
...
)
A Seurat or ChromatinAssay object
Arguments passed to other methods
A GRanges
object containing the
set of genomic ranges to quantify
Name to store resulting matrices under
Name of assay to use. If NULL, use the default assay
Grouping variable to use when aggregating data across cells. If NULL, use the active cell identities
Cell identities to include. If NULL, include all identities
Number of bases to extend regions upstream
Number of bases to extend regions downstream
Display messages
Returns a Seurat
object