This is a test version of Biostars. For the public version, visit https://www.biostars.org.
about INCLUSIVE intersections of GRanges

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

thanks, it works !

1 answer

If I understand correctly your goal you can use `findOverlaps` with `within`

Log in to answer this question.