Region enrichment analysis
Count fragments within a set of regions for different groups of cells.
RegionMatrix(object, ...) ## S3 method for class 'Seurat' RegionMatrix( object, regions, key, assay = NULL, group.by = NULL, idents = NULL, upstream = 3000, downstream = 3000, verbose = TRUE, ... ) ## S3 method for class 'ChromatinAssay' RegionMatrix( object, regions, key, assay = NULL, group.by = NULL, idents = NULL, upstream = 3000, downstream = 3000, verbose = TRUE, ... ) ## Default S3 method: RegionMatrix( object, regions, key, assay = NULL, group.by = NULL, idents = NULL, upstream = 3000, downstream = 3000, verbose = TRUE, ... )
object
: A Seurat or ChromatinAssay object...
: Arguments passed to other methodsregions
: A GRanges
object containing the set of genomic ranges to quantifykey
: Name to store resulting matrices underassay
: Name of assay to use. If NULL, use the default assaygroup.by
: Grouping variable to use when aggregating data across cells. If NULL, use the active cell identitiesidents
: Cell identities to include. If NULL, include all identitiesupstream
: Number of bases to extend regions upstreamdownstream
: Number of bases to extend regions downstreamverbose
: Display messagesReturns a Seurat
object
Useful links