Count reads per cell overlapping a given set of regions
CountsInRegion(object, assay, regions, sep = c("-", "-"), ...)
A Seurat object
Name of assay in the object to use
A GRanges object
Separator to use when extracting genomic coordinates from the Seurat object
Additional arguments passed to findOverlaps
findOverlaps
Returns a numeric vector
# NOT RUN { CountsInRegion( object = atac_small, assay = 'bins', regions = blacklist_hg19 ) # }
Run the code above in your browser using DataLab