You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turns out, the reference fasta I read in didn't have a sentinel character $ at the end. Lacking this terminal $ makes backward_search produce wrong results.
While the example texts do contain that character (that's how I got the idea to attach it to my reference) - it's not mentioned anywhere as far as I can see.
There should either be a note, or maybe even a check during creation of the FM index - unless there's a use case without terminal $. Or even more convenient - add a terminal $.
The text was updated successfully, but these errors were encountered:
Also, it would be nice if one didn't have to add that sentinel character manually. It forces me to do a .clone() simply so that I can tag on the $ to the end of my reference sequence when creating the index. Maybe that sentinel character could be hacked in avoiding that clone?
I spent a good hour debugging backward_search using the code fragment from backward_search:
rust-bio/src/data_structures/fmindex.rs
Lines 103 to 145 in eb9d378
Turns out, the reference fasta I read in didn't have a sentinel character
$
at the end. Lacking this terminal$
makesbackward_search
produce wrong results.While the example texts do contain that character (that's how I got the idea to attach it to my reference) - it's not mentioned anywhere as far as I can see.
There should either be a note, or maybe even a check during creation of the FM index - unless there's a use case without terminal
$
. Or even more convenient - add a terminal$
.The text was updated successfully, but these errors were encountered: