Question: Find the nearest 10 peaks for specific gene using GRanges
0
gravatar for myny94
3 months ago by
myny940
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 • 122 views
ADD COMMENTlink written 3 months ago by myny940
Please log in to add an answer.

Help
Access

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