How to use GRanges to find locations that do NOT overlap?
1
0
Entering edit mode
@sarahblackstone7734-11208
Last seen 8.3 years ago

I have two GRanges objects, G1 and G2.

I would like to subtract the ranges in G2 from G1.

findOverlaps(G1,G2) will give me the overlaps, but I want to do the opposite of this. Is it possible?

granges • 797 views
ADD COMMENT
0
Entering edit mode
@michael-lawrence-3846
Last seen 3.0 years ago
United States
G1[G1 %outside% G2]

Also in devel:

subsetByOverlaps(G1, G2, invert=TRUE)


 

ADD COMMENT

Login before adding your answer.

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