alignx · Smith–Waterman
Local pairwise alignment — same math as the C++/Java engines in the repo. Match +2, mismatch −1, gap −2 (linear).
Alignment
—
How to read
H[i,j] = max(0, diag+sub, up−gap, left−gap). The clamp to 0 makes it local. Bright cells = high score. Blue outline = traceback path from the global max back to a 0.
Score matrix heatmap