Repository navigation
Honor k-mer alphabet traits in lookup and streaming - #101
Closed
adamant-pwn wants to merge 11 commits into
Closed
adamant-pwn wants to merge 11 commits into
adamant-pwn wants to merge 11 commits into
Conversation
Express the doubled distance from the minimizer window centre with std::abs. Skip the checker's reverse-orientation expectation for alphabets without reverse complements.
Merged
Owner
|
Closing this in favour of #109. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lookup and streaming do not consistently honor
kmer_t::has_reverse_complementandbits_per_char. Streaming uses two-bit offsets and rolls a reverse-complement state even when that operation is defined as the identity.Use the declared traits for rolling state, iterator offsets, and minimizer tie-breaking. For types without a reverse complement, check only the forward representation and report forward orientation. Share tie-breaking between direct lookup and the incremental iterator, and update the generic checker to expect the same orientation.
Our use case is protein queries through the existing
aa_uint_kmer_t: forward-only lookup ofMKWcurrently fails after indexingMKWVTFISRLDPQEAHNYCGwith k=3 and m=1.