harrispopgen / mutyper

Ancestral k-mer mutation types for SNP data
https://harrispopgen.github.io/mutyper/
MIT License
7 stars 3 forks source link

Proposed fix to bug #14 #24

Closed RenzoTale88 closed 3 years ago

RenzoTale88 commented 3 years ago

This patch fixes the issue reported in github issue harrispopgen#14. The issue originates from bisect.bisect using 1-based indexes, as shown here, causing the script to not extract the index correctly when the variant fall out or within the last index. Also, it causes to intersect with the wrong interval in the next if statement, since pointing to the index+1 position in the list.