Find the nearest 10 peaks for specific gene using GRanges
0
0
Entering edit mode
4.9 years ago
myny94 • 0

Hi, I have two genomic range objects, one of them is gene genomic range which has 56925 genes and the other one is atac genomic ranges, which has 562709 peaks.

For each gene (56925 genes), I need to find 10 nearest peaks based on the location but using distance() function in GenomicRanges library gives not satisfying result, and nearest() method gives only the closest peak so I wonder if there is a straightforward way to find it.

R RNA-Seq gene atac • 1.1k views
ADD COMMENT

Login before adding your answer.

Traffic: 2973 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6