Update match function#164
Conversation
Pushing back search2 result to vector v if it's kmer exist.
|
This seems to overlap with #166. Current master seems to contain a definition of Line 1124 in 554da09 Now you re-indroduce it with Lines 1103 to 1104 in bfa8edd valE in Lines 1103 to 1104 in 256efcf val3 in Line 1127 in 256efcf |
Short explanationIn the following lines at kmerindex::match() function the right logic in the if condition is followed.
Detailed explanationData used in the test1- Reference
2- Reads
The unexpected behavior happends when pseudo-aligning the 6.fa with reference1 which has the original 4 unique transcripts. 3- ResultsVector V after pseudo-alignment
(Debugging_Print) SORTED KmerEntry vector(V)KmerEntry: pos:91 | contig: 2 | contig_Length: 2588 | read_pos: 0
KmerEntry: pos:92 | contig: 2 | contig_Length: 2588 | read_pos: 1
KmerEntry: pos:93 | contig: 2 | contig_Length: 2588 | read_pos: 2
KmerEntry: pos:94 | contig: 2 | contig_Length: 2588 | read_pos: 3
KmerEntry: pos:95 | contig: 2 | contig_Length: 2588 | read_pos: 4
KmerEntry: pos:106 | contig: 3 | contig_Length: 965 | read_pos: 2496The last
KmerEntry: pos:91 | contig: 2 | contig_Length: 2588 | read_pos: 0
KmerEntry: pos:91 | contig: 2 | contig_Length: 2588 | read_pos: 0
KmerEntry: pos:91 | contig: 2 | contig_Length: 2588 | read_pos: 0
KmerEntry: pos:91 | contig: 2 | contig_Length: 2588 | read_pos: 0
KmerEntry: pos:139 | contig: 3 | contig_Length: 965 | read_pos: 69That makes sense, there's no need in this case to enter the this is weird, let's try the middle k-mer section or to backOff Side NoteThis bug was discovered unintentionally when adding the option Union of Compatibility classes instead of the default Intersect |
|
@abuelanin: Thx for the detail. However, there are still two PR (this one and #166) suggesting similar fixes for the same problem. Which one do you want to see merged in the end? |
|
@mschilli87 I created #166 and it's updated in my forked repo, also It's more clean and straightforward, this PR has problems as the merge has unknown repository now. Thanks. |

Pushing back search2 result to vector v if it's kmer exist and found2 is already true.