iqbal-lab-org / gramtools

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

Add size equal asserts for: linear PRG, site mask, and allele mask #46

Closed sm0179 closed 6 years ago

sm0179 commented 7 years ago

add assertion that linear PRG, site mask and allele mask have the same size

ffranr commented 7 years ago

Where should we add this insert?

sm0179 commented 7 years ago

I guess after the masks are parsed? and before starting k-mer precalc/mapping, since the backward search won't work if any of these data structures are incomplete

ffranr commented 7 years ago

We should also add error handling in case the assertions fail.