iqbal-lab-org / gramtools

Genome inference from a population reference graph
MIT License
92 stars 15 forks source link

Fix #139: Correct allele ID found even when PRG alphabet is discontinuous #140

Closed ffranr closed 5 years ago

ffranr commented 5 years ago

This edge case is currently only found in tests.

This solution handles the edge case and makes gramtools more robust in the eventuality that a single PRG is analyzed in parts.

bricoletc commented 5 years ago

Handles a case of a prg with discontinuous alphabet: meaning, that not all integers from 1 to the largest integer in the prg are present in the prg.

The case is handled for one part of the code only; to be handled more generally, more work will be needed.