Question: about INCLUSIVE intersections of GRanges
0
gravatar for Bogdan
4.4 years ago by
Bogdan750
Palo Alto, CA, USA
Bogdan750 wrote:

Dear all,

would appreciate your help with a simple question :

I am working with a set of GRanges : eg : (chr1: 100 - 200) and  (chr1: 200 - 300)

and 

I would like to get the OVERLAP/ INTERSECTION only the GRanges within a special interval :

eg : (chr1 : 0 - 250), in an INCLUSIVE WAY, namely only the interval (chr1: 100 - 200), that is completely included in the region (chr1 : 0 - 250) ..

is there any function in GRanges I could quickly use in this regard ? thank you ;) !

 

-- bogdan

granges • 1.1k views
ADD COMMENTlink modified 4.4 years ago • written 4.4 years ago by Bogdan750

thanks, it works !

ADD REPLYlink written 4.4 years ago by Bogdan750
1
gravatar for zero323
4.4 years ago by
zero32320
Poland
zero32320 wrote:
If I understand correctly your goal you can use `findOverlaps` with `within`
ADD COMMENTlink modified 4.4 years ago • written 4.4 years ago by zero32320
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: 1787 users visited in the last hour