Can BLAST and Smith-Waterman return the same alignment?
Can BLAST and Smith-Waterman return the same alignment?
As both are local alignment algorithms, the answer is yes. However, there is no guarantee that will be the case. BLAST takes some shortcuts in creating seed alignments and high-scoring pairs, which makes it quite a bit faster than SW. SW alignments are locally optimal and will in some cases be different from BLAST, and sometimes of higher quality. These are often marginal cases, and not scoring and aligning some sequences properly is usually worth it given the BLAST speed advantage over SW.
There is a longer explanation:
Some of the comparisons may not be valid now as this article is 15 years old, but the main message about pros and cons still holds.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
on top of what Mensur Dlakic already posted below: SW is an alignment tool, BLAST is a search tool making use of alignments (== the "google" for sequences), so their goals are somewhat different ...
SW wants to output the best alignment between two sequences, BLAST wants to output as fast as possible similar sequences to your query.