BioJulia / Bio.jl

[DEPRECATED] Bioinformatics and Computational Biology Infrastructure for Julia
http://biojulia.dev
MIT License
261 stars 65 forks source link

Checking whether or not an Interval overlaps with an Interval Collection #464

Closed phbromley closed 5 years ago

phbromley commented 7 years ago

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.

TransGirlCodes commented 7 years ago

Can you post your current effort with the eachoverlap iterator?