Non overlaps seqence
1
0
Entering edit mode
@marcin-grzybowski-8436
Last seen 8.5 years ago
Poland

Hi,

i have two Large GRanges object and i try to find ranges which are only in one object. So i think i am looking for opposite function to findOverlaps. Is it any easy way to do it?

Thx for any advice.

Best,

MarcinĀ 

granges • 921 views
ADD COMMENT
1
Entering edit mode
@michael-lawrence-3846
Last seen 3.0 years ago
United States

What exactly do you mean by "in"? To find ranges in "a" that do not overlap any range in "b", do a %outside% b. Or, if you want to know which ranges in "a" are not exactly matched in "b", do !(a %in% b). Both of those return logical subscripts that you can use to extract the ranges unique to "a". Just reverse the operation to find those unique to "b".

ADD COMMENT
0
Entering edit mode

Thank you very much! Now i see it wasn't best idea in this case but it may be usefull in the future.

ADD REPLY

Login before adding your answer.

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