Biotechnology · Intermediate

SCORING MATRICES

Written by SignalsLab

Early edition: these lessons are being reviewed.

Content

Summary

Scoring matrices are statistical tools that quantify the likelihood of residue substitutions in sequence alignment using log-odds scores derived from empirical data. For proteins, these matrices reflect physicochemical properties and evolutionary conservation, while for nucleotides, they account for mutation biases like transitions versus transversions.

Intuition

Think of a scoring matrix as a dictionary of evolutionary probabilities. When aligning sequences, we need to know if a mismatch is a random error or a biologically meaningful substitution. By analyzing real alignments of homologous sequences, we calculate how often specific residues replace each other compared to random chance. This allows us to distinguish between conservative changes, like swapping similar amino acids, and disruptive ones, ensuring the alignment reflects true biological relationships rather than noise.

Key equations

Log−Odds=log2⁡(Observed FrequencyRandom Chance Probability)
(1)

Calculates the log-odds score by dividing the observed substitution frequency by the probability of random occurrence, then taking the base-2 logarithm.

Derivation

  1. Collect alignments of highly related homologous sequences to gather empirical substitution data.
  2. Calculate the observed frequency of specific residue substitutions within these alignments.
  3. Determine the probability of each substitution occurring by random chance.
  4. Compute the ratio of observed frequency to random chance probability.
  5. Apply a logarithmic conversion (base 2 or 10) to this ratio to generate the final log-odds score.

Worked example

Problem

Calculate the log-odds score (base 2) for a substitution where the observed frequency is twice that expected by random chance.

  1. Identify the ratio of observed frequency to random chance probability, which is 2.
  2. Apply the log-odds formula: log2⁡(2).
  3. Calculate the result: log2⁡(2)=1.

Answer The log-odds score is 1, indicating the substitution is two times more likely than random.

Common mistakes

  • Assuming mutation frequencies are equal for all nucleotide bases, ignoring that transitions occur more frequently than transversions.
  • Relying on matrices based on genetic code interchangeability rather than empirical substitution data, as the former is less accurate.
  • Misinterpreting PAM as 'Accepted Point Mutation' instead of 'Point Accepted Mutation'.

Animation

Animation coming soon

The animated version of this lesson is being prepared for the web. In the Signals AI app, lessons are drawn step by step.

Code

This is a text lesson: it has no animation code yet.

ccBYNC© 2026 SignalsLab. Lesson text shared as is under CC BY-NC 4.0.