|
|
|
|
|
by tstactplsignore
4131 days ago
|
|
This is a neat JS library with some possible applications, but if you're only matching substrings without gaps, then you're basically string searching, not performing alignment. Alignment is an entirely different and more complicated computational problem with decades of algoritm development (see Smith-Waterman, Needleman-Wunsch, Burrows-Wheeler transform) and implementation going into it, and it is far more biologically useful and practical than substring searching. Considering this, in practice heuristic implementations like BLAST, FASTA, and lastz are used to do most big alignment searching, and that's not even considering multiple sequence alignment, which is another problem into itself.
In other words, it's a useful JS library and interesting implementation, but it isn't alignment. |
|
Alignment is not restricted to "gapped" alignments only (or there wouldn't be a need for such a distinction!).
You can modify the algorithm to include gapped alignments (by introducing gaps in your search sequence), as it supports a "gap" character ("-"). The gap character will just always count as "not a match."
[1] http://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string_sear...