-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In many cases you can treat a Seurat object with a ChromatinAssay as the active assay like a library(Signac)
library(GenomicRanges)
# obj is an example Seurat object containing a ChromatinAssay
overlap_peaks <- findOverlaps(obj, StringToGRanges("chr1-10000000-10010000"))
granges(obj)[queryHits(overlap_peaks)] In this particular case, the region you highlighted in the box is part of a peak that seems to contain two distinct regions, so you could try adjusting the peak calling parameters to try to pick these up as two separate regions if you really want to find the coordinates of just that highlighted region. |
Beta Was this translation helpful? Give feedback.
In many cases you can treat a Seurat object with a ChromatinAssay as the active assay like a
GRanges
object, and use functions in theGenomicRanges
package for interacting with the ranges (see here for more information). In this case you can find overlaps between the region of interest and the peaks to get the index of the overlapping peaks, then extract the actual ranges of those peaks, for example:In this particular case, the region you highlighted in the box is part of…