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.
Fixed with seqan/seqan#2541
--
Use lib/seqan from eaasna/seqan#1
This PR investigates a segmentation fault that occurs when searching the human reference genome for matches for the mouse reference genome. There is a memory error because one of the buckets in the QGramDir is defined such that the bucketBegin > bucketEnd. For each k-mer the QGramDir stores its bucketBegin index. The bucketBegin index points to the QGramSA that stores the positions of the k-mer. The bucketEnd is inferred from the beginning of the next k-mer. Because the SWIFT index uses open addressing, there are 2 hash functions applied to the k-mer. The first (e.g hash1(AA) = 14) hash function value is stored in the BucketMap at position e.g hash2(hash1(AA)) = hash2(14). K-mer lookups probe the BucketMap until a matching hash value or empty bucket is found.
The GGramDir is built in two steps:
After this, the suffix array is built.
It is unclear why the QGramDir is sometimes faulty, but it seems to be triggered by the lexicographically last 32-mer TTTTT....