Is there a quick and efficient way of just checking whether or not an interval overlaps at all with an interval collection (using Bio.Intervals)? I'm having trouble working with the iterator from eachoverlap (don't know how to check if it is length == 0) and it also seems inefficient to find all of the intersections when I can stop searching after just finding one.
Is there a quick and efficient way of just checking whether or not an interval overlaps at all with an interval collection (using Bio.Intervals)? I'm having trouble working with the iterator from eachoverlap (don't know how to check if it is length == 0) and it also seems inefficient to find all of the intersections when I can stop searching after just finding one.