Question: Find the nearest 10 peaks for specific gene using GRanges
gravatar for myny94
13 months ago by
myny940 wrote:

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.

rna-seq atac R gene • 335 views
ADD COMMENTlink written 13 months ago by myny940
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1435 users visited in the last hour