Q.53 In an affine gap penalty model, if the gap opening penalty is -20, gap extension penalty is -4 and
gap length is 8, the gap score is _________.
Understanding Affine Gap Penalties
Affine gap penalties improve sequence alignment accuracy over linear models by distinguishing gap opening costs from extension costs. The standard formula is:
where o is the opening penalty (typically more negative, like -20),
e is the extension penalty (-4 here), and l is gap length (8).
This penalizes starting new gaps heavily while making extensions cheaper, matching biological insertion/deletion realities.
Correct Gap Score Calculation
For the given values, compute as follows:
= -20 + 7 × (-4) = -20 – 28 = -48
Negative scores reduce overall alignment scores in dynamic programming algorithms like Needleman-Wunsch. This exact model appears in bioinformatics exam questions.
Comparison of Gap Penalty Models
| Model | Formula | Characteristics | Use Case |
|---|---|---|---|
| Linear | -a × l | Simple, proportional to length | Basic alignments |
| Affine | o + (l-1)e | Opening >> extension; realistic | Protein/DNA sequences (BLAST, Smith-Waterman) |
| Constant | -a | Length-independent | Short gap tolerance |
Affine outperforms linear for long indels, as extension cost drops per residue.
Why This Score Matters in Bioinformatics
In tools like BLAST or Clustal, affine penalties optimize global/local alignments by discouraging fragmented short gaps. Typical values:
- Opening: -10 to -20
- Extension: -1 to -2 for proteins
- Ratio here: 10:1 for sensitivity
For exams, memorize the formula to score gaps accurately in scoring matrices.


