thebench.bio #1 Ecosystem for the Bio-Tech Industry
All Sequence Alignment questions

Question 3 of 6 Intermediate Scenario

How do gap penalties change a protein alignment?

Short answer

Gap-open penalties discourage starting insertions or deletions. Gap-extension penalties control how costly a longer contiguous gap becomes. Different settings can shift residue correspondence.

Why

An affine gap model typically charges an opening cost plus an incremental extension cost for each additional gap position. With a large opening penalty and small extension penalty, the algorithm often prefers one contiguous insertion over many scattered gaps. This can be appropriate for a loop insertion but can misplace residues when repeats or low-complexity segments occur.

For protein alignment, use a substitution matrix such as BLOSUM together with a defensible gap model, then assess conserved catalytic residues and structural boundaries. A changed alignment is not merely cosmetic: it can alter inferred mutation positions, domain boundaries and homology claims. Inspect alternatives and known motifs, especially when gaps cluster next to active sites.

There is no single universal penalty pair for every evolutionary distance or sequence type.

Common mistakes

  • Changing gap parameters to obtain a preferred biological story without evaluating alignment uncertainty