For research use only · We delete your sequences and results from our servers within 1 hour of your job finishing · Details

Learn/Mutation Effect Prediction
What NeuroAutomata Does

Mutation Effect Prediction

7 min read

Before running a mutagenesis experiment, you want to know: if I swap amino acid X for Y at position Z, will it break the protein — or could it improve it? NeuroAutomata's mutation effect prediction uses ESM-2 to score substitutions across your sequence, giving you a computational basis for deciding which variants are worth making in the lab.

This article explains how the scoring works, how to read the results, and where to be cautious.


The Core Idea: Evolutionary Plausibility as a Proxy for Fitness

ESM-2 was trained on approximately 250 million protein sequences from UniRef using masked language modeling: amino acids in each sequence were hidden, and the model learned to predict them from context. This trained the model to recognize which amino acid fits each position given the surrounding sequence — effectively internalizing the rules that evolution has selected for.

In plain terms: A mutation that violates those rules scores negatively. One that is consistent scores near zero or positively. The score measures evolutionary plausibility — not a specific property like melting temperature or catalytic rate.


How Masked Marginal Scoring Works

The specific scoring method NeuroAutomata uses is called masked marginal scoring, introduced by Meier et al. in their 2021 NeurIPS paper, "Language models enable zero-shot prediction of the effects of mutations on protein function." Among the scoring approaches they compared, masked marginal consistently performed best (Meier et al., NeurIPS 2021).

The procedure for scoring a mutation — say, changing leucine (L) to alanine (A) at position 47 — works like this:

  1. Replace position 47 in your sequence with a mask token, hiding the amino acid identity.
  2. Feed the masked sequence into ESM-2. The model predicts which amino acid belongs at position 47 from context alone.
  3. Read the model's predicted probability for both the wildtype (L) and mutant (A) amino acid at that position.
  4. Compute the log-likelihood ratio: log probability of the mutant minus log probability of the wildtype.

The Formula

For those who want the mathematics:

Score(L47A) = log P(A | context) − log P(L | context)

Where context is the full sequence with position 47 masked. This is the log-likelihood ratio (LLR) of the mutant amino acid relative to the wildtype.

In plain terms: The model sees the masked position and asks, "Given everything around this spot, what amino acid fits best?" If alanine scores almost as well as leucine, the mutation is probably tolerated. If alanine scores far worse, something important about leucine — its size, its hydrophobicity, its role in packing the core — is being disrupted.


Reading the Score: What the Numbers Mean

The score is a log-likelihood ratio expressed in nats (natural log units). Here is how to interpret it:

Score RangeInterpretation
Less than -6Likely deleterious — strongly disfavored by evolutionary logic
-6 to -2Mildly damaging — substitution is tolerated in some contexts but generally disfavored
-2 to +1Neutral — within the range of tolerated natural variation
Greater than +1Potentially beneficial — substitution is favored over the wildtype at this position

In plain terms: Scores near zero mean the model treats the mutant and wildtype amino acids roughly equally at that position. Large negative scores mean the model strongly "expects" the wildtype and is surprised by the mutation. Positive scores mean the mutant amino acid actually fits better than the wildtype in evolutionary terms — rare, but meaningful when it occurs.

To make the range concrete: a score of -8 on a catalytic residue means the model strongly "expects" the wildtype — that position has been conserved across millions of evolutionary examples and swapping it violates something fundamental. A score of +1.5 on a surface-exposed residue means the proposed substitution is actually slightly more common than the wildtype among evolutionary homologs, a weak but real signal of tolerance.

Important: These thresholds are interpretive guidelines based on the distribution of ESM-2 log-likelihood ratios. There are no universally fixed numeric cutoffs in the published literature — appropriate boundaries can vary by protein and assay. Use these ranges as starting points, not hard rules.


Single Mutation Scoring: Testing a Specific Hypothesis

When you have a specific variant in mind — a site-directed mutagenesis target, a clinical variant of uncertain significance, a known mutation from the literature — single mutation scoring gives you a focused prediction.

Enter your protein sequence, specify the position, wildtype amino acid, and proposed substitution, and NeuroAutomata returns the masked marginal score along with an interpretation.

Why this matters: If you are planning a library of 50 variants, single mutation scoring lets you quickly screen the candidates computationally and deprioritize those with scores below -6. You can then focus wet-lab resources on the variants most likely to retain function or show improvement.


The Fitness Landscape Heatmap: Scanning All Possible Mutations

The fitness landscape heatmap scores all 19 possible amino acid substitutions at every position in your selected region, giving you a systematic view of mutational tolerance without requiring a prior hypothesis. The result is a matrix where:

  • Rows represent sequence positions (e.g., positions 10 through 150)
  • Columns represent the 20 standard amino acids
  • Cell color represents the masked marginal score for that substitution at that position

The wildtype amino acid at each position scores zero by definition (it is the reference point).

Reading the Heatmap

Dark rows (strongly negative scores across all amino acids): A position where every substitution scores below -4 is a conserved position — a hotspot where the wildtype amino acid is critical and almost nothing else works. These are often catalytic residues, buried structural anchors, or residues at the core of binding interfaces.

Light or positive rows (scores near zero or positive across many amino acids): These are evolvable positions — the protein tolerates a range of amino acids here. Surface-exposed loops, linker regions, and positions distant from active sites often show this pattern.

Isolated bright cells: A single substitution that scores distinctly higher than its neighbors is worth flagging. The model is predicting that this specific amino acid fits even better than the wildtype at that position. These are candidates for your top mutations list.

Why this matters: Before committing to a saturation mutagenesis library, the heatmap helps you identify which regions are flexible enough to engineer and which positions are off-limits. This can substantially reduce the size of a physical library.


Top Mutations: How the Suggested List Is Generated

The top mutations panel ranks substitutions by masked marginal score, filtered to those above the neutral threshold. This is not a biological recommendation — it is the model's ranked output of evolutionarily compatible substitutions. Whether a top-scoring mutation produces the effect you want depends on the specific property you are engineering. Use the list for prioritization, not prediction of outcome.


What the Scores Can and Cannot Tell You

What the model is good at

Masked marginal scoring is most reliable for identifying mutations that disrupt existing function. Our benchmarks across five proteins from the ProteinGym database showed a median Spearman correlation of 0.515 with experimental deep mutational scanning data — exceeding the published ESM-2 baseline of 0.414. Activity predictions were strongest (beta-lactamase: rho = 0.731; PTEN fitness: rho = 0.519). The method is well-suited for flagging conserved positions, screening libraries for tolerated substitutions, and identifying likely destabilizing mutations.

Known limitations

Limitation: Masked marginal scoring evaluates each position independently and does not model epistasis — the interactions between mutations at different positions. For double or triple mutants, treat the summed score as a rough approximation.

Limitation: The training data reflects evolutionary selection against loss of function. Gain-of-function mutations — those that create new or enhanced activity — may score as neutral or even negative, because they represent departures from the existing evolutionary distribution. A positive score means evolutionary tolerance, not functional enhancement.

Limitation: Binding predictions are weaker than activity or stability predictions. Our calmodulin benchmark (scored against binding affinity data) yielded a Spearman correlation of 0.212 — statistically significant but below the threshold for confident use. Binding involves partner-specific interface geometry that sequence-only models capture poorly.

Limitation: In low-signal regions — positions with thin evolutionary coverage (low MSA depth), which often includes intrinsically disordered sequence — scores compress toward neutral and carry little information. A near-zero score there can mean the model has no opinion at this position, not this substitution is safe. Our applicability-domain benchmark (verified) shows reliability tracking MSA depth; the disorder-specific reading rests on a single preprint (Sharma & Gitter 2025, arXiv:2504.16886) as of 2026-06-13, not an established result.

Limitation: This is a research tool. Scores correlate with experimental outcomes across populations of variants but cannot replace measurements for individual variants. Use mutation scores to prioritize what to test, not to substitute for testing it.


Further Reading

  • Meier, J., Rao, R., Verkuil, R., Liu, J., Sercu, T., & Rives, A. (2021). Language models enable zero-shot prediction of the effects of mutations on protein function. NeurIPS, 34, 29287–29303. Link
  • Notin, P., et al. (2023). ProteinGym: Large-Scale Benchmarks for Protein Fitness Prediction and Design. NeurIPS, 36. ProteinGym
  • Lin, Z., et al. (2023). Evolutionary-scale prediction of atomic-level protein structure with a language model. Science, 379(6637), 1123–1130. DOI