Multiple Sequence Alignment

A multiple sequence alignment (MSA) aligns homologous sequences so that columns approximate evolutionary correspondence. In protein modeling, MSAs provide conservation and coevolution signals.

An MSA can be represented as a matrix:

where is the number of homologous sequences, is alignment length, and is the residue vocabulary plus gap symbols.

A column frequency profile is:

With sequence weights , a weighted profile is:

The effective number of sequences is often summarized as:

This matters because a deep MSA and a shallow MSA do not provide the same amount of evolutionary evidence.

Modeling Uses

  • Conservation features for residue importance.
  • Coevolution signals for contact or distance prediction.
  • Homology context for structure prediction.
  • Family-level grouping for split construction.

MSA-Derived Signals

SignalSketchInterpretation
conservationlow column entropyresidue may be constrained
covariationcoupled residue changespossible contact or functional coupling
insertion/deletion patterngap distributiondomain boundary or flexible region clue
MSA depthconfidence in evolutionary statistics

Column entropy is:

Low entropy can reflect functional constraint, structural constraint, or dataset bias. It is not automatically a causal functional explanation.

MSA vs Protein Language Model

An MSA explicitly retrieves homologous sequences. A Protein language model stores statistical regularities in parameters after pretraining.

MethodUses query-time homolog search?Main risk
MSA-based modelyesdatabase and template leakage
sequence-only language modelnopretraining corpus overlap and family memorization
hybrid modeloftenboth risks apply

Leakage Risks

MSA generation can leak information when homolog or template databases include evaluation targets or close structural templates. The MSA database, search date, filtering threshold, and template policy should be treated as part of the evaluation protocol.

The data dependency is:

If the search database contains benchmark-derived structures, target proteins, or near-identical homologs, the evaluation claim changes.

Checks

  • What database and search settings produced the MSA?
  • Are low-quality, near-duplicate, or contaminated homologs filtered?
  • Does MSA depth differ systematically between train and test targets?
  • Does template or homolog retrieval leak benchmark structures?
  • Are train/test proteins separated by sequence identity before MSA-derived features are interpreted?
  • Is performance stratified by MSA depth or protein family?
  • Is the model still usable when a target has few homologs?