about INCLUSIVE intersections of GRanges
1
0
Entering edit mode
9.4 years ago
Bogdan ★ 1.4k

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 • 2.0k views
ADD COMMENT
0
Entering edit mode

thanks, it works !

ADD REPLY
1
Entering edit mode
9.4 years ago
zero323 ▴ 30
If I understand correctly your goal you can use `findOverlaps` with `within`
ADD COMMENT

Login before adding your answer.

Traffic: 1987 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