This error in rust-mdbg is triggered because lowercase bases are passed to nthash. Possible solutions:
1) users of the crate need to provide uppercase (non-repeat masked) nucleotides. This will probably trigger another allocation, so potentially slower.
2) accept lowercase bases in nthash. One solution is modifying H_LOOKUP and RC_LOOKUP to also have the lowercase variants.
should this also have some sort of "strict mode" that doesn't accept lowercase bases, declared in the constructor?
This error in
rust-mdbg
is triggered because lowercase bases are passed tonthash
. Possible solutions: 1) users of the crate need to provide uppercase (non-repeat masked) nucleotides. This will probably trigger another allocation, so potentially slower. 2) accept lowercase bases innthash
. One solution is modifyingH_LOOKUP
andRC_LOOKUP
to also have the lowercase variants.