vgteam / libhandlegraph

Library for the Handle Graph abstraction
MIT License
20 stars 3 forks source link

Stop parsing `ARS_UCD12#hap0#6` as PanSN #91

Closed adamnovak closed 1 year ago

adamnovak commented 1 year ago

The PanSN spec says the haplotype number has to actually be a number. Right now if it isn't a number, we match our regex but then try to parse the non-number and crash.

This should fix it to not match the regex anymore when it won't be able to be parsed due to not really being a number.