low score high score traceback path
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

DNA Sequence Alignment Explorer

Comparing two DNA or protein sequences is one of the most basic operations in bioinformatics, and the Needleman-Wunsch algorithm is the classic way to do it: build a dynamic-programming score matrix cell by cell, then trace the highest-scoring path back through it to recover the optimal global alignment. This simulator renders that matrix as a live 3D bar chart — cell height and color track the running score, and a gold path marks the actual traceback — while match, mismatch and gap-penalty sliders let you watch the entire matrix and optimal alignment reshape in real time. Randomize the two DNA strands or mutate a single base to see exactly how one substitution changes the best alignment and its percent identity.