Closed kreldjarn closed 2 years ago
Should be fixed in 4b2917b
Hi @kreldjarn,
This is a very good catch, thanks! The issue stems from a modification I have made some time ago to the way the Kmer
object
is initialized and checked for "emptyness". I'll approve your PR asap.
Guillaume
When iterating over a string that contains N, the KmerIterator should spool over the N and continue iterating from there. This works for the general case, but if the string starts with an N the KmerIterator returns a Kmer consisting of only A's, even though the next Kmer is a valid one containing no N's.
See reproducible example here: