Question: Non overlaps seqence
gravatar for Marcin Grzybowski
4.0 years ago by
Marcin Grzybowski0 wrote:


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.



granges • 473 views
ADD COMMENTlink modified 4.0 years ago by Michael Lawrence11k • written 4.0 years ago by Marcin Grzybowski0
Answer: Non overlaps seqence
gravatar for Michael Lawrence
4.0 years ago by
United States
Michael Lawrence11k wrote:

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 COMMENTlink written 4.0 years ago by Michael Lawrence11k

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

ADD REPLYlink modified 4.0 years ago • written 4.0 years ago by Marcin Grzybowski0
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 202 users visited in the last hour