krakenuniq icon indicating copy to clipboard operation
krakenuniq copied to clipboard

Can't use k of 39 (must be <= 31)

Open ailtonpcf opened this issue 1 year ago • 1 comments

Hey, I would like to try Krakenuniq with kmers longer than 31, however I get an error: Can't use k of 39 (must be <= 31)

Is that really true that I can't use bigger kmer values, or a bug?

Thanks in advance, Ailton.

ailtonpcf avatar Jan 09 '24 14:01 ailtonpcf

yes that's correct - Krakenuniq uses an array that can only hold values up to 2^31 and there are places in the code that would break if you used longer k-mers. (And yes, I know that there are 4^31 possible DNA sequences of length 31.) Changing this would require a major code rewrite. Btw with longer k-mers you lose sensitivity rather quickly.

salzberg avatar Jan 09 '24 14:01 salzberg