Open rulixxx opened 2 years ago
Thanks for this report.
If it were bgzipped files, there is a known issue that affects the calculation of the virtual offset. The issue occurs when multiple threads are in use.
I think this issue will be addressed upstream with https://github.com/BioJulia/BGZFStreams.jl/pull/27.
Expected Behavior
Terminate correctly when iterating over a BED file for intersecting intervals.
Current Behavior
Error caused by trying to read pass the end of the stream.
Possible Solution / Implementation
This worked for me:
Added an extra condition in the loop of function Indexes.done
Steps to Reproduce (for bugs)
Sorry I encountered this sometime ago so I no longer have the BED files. Might have been brought about when working with concatenated bgzipped files.