zaeleus / noodles

Bioinformatics I/O libraries in Rust
MIT License
482 stars 52 forks source link

csi/writer: End position of a chunk is using wrong virtual position #216

Closed zaeleus closed 10 months ago

zaeleus commented 10 months ago

In noodles-csi, the writer is using the chunk start position instead of the end position when writing chunk_end.

https://github.com/zaeleus/noodles/blob/bd1098699a5a0ed87dab0c3e6c496ae13faa358d/noodles-csi/src/writer.rs#L229

This was discovered while verifying #215.