Evolutionary Diagnostics: Scientific Rationale
This pipeline is built on a paradigm called evolutionary diagnostics — the use of population genomics and molecular evolution data to engineer assay components that are resistant to viral mutation. This page explains the problem, the two-signal framework, and why naive approaches fail.The Diagnostic Escape Problem
Standard PCR and isothermal assay design assumes that the target sequence is stable. For slowly-evolving pathogens (bacteria, DNA viruses), this assumption holds. For RNA viruses — which have error-prone RNA-dependent RNA polymerases (RdRp) with mutation rates of to substitutions/site/replication cycle — this assumption is routinely violated. Diagnostic escape occurs when a virus accumulates sufficient mutations at the primer or probe binding site that the assay no longer amplifies efficiently. The clinical consequence is a false-negative result: an infected patient is classified as disease-free. Historical examples include:- A 2009 H1N1 outbreak in which a widely-distributed PCR kit missed the pandemic strain due to a single mismatch at the 3’ end of the forward primer.
- SARS-CoV-2 Alpha (B.1.1.7) and Delta variants that reduced sensitivity of several commercial diagnostic kits targeting the N and ORF1a genes.
Why Physical Conservation Is Insufficient
The naive approach to mutation-resistant design is to find conserved regions — positions where the nucleotide is identical across all known sequences. This is a necessary condition, but not sufficient for three reasons:1. Conservation Reflects History, Not Future Constraint
A position that is identical in all currently-deposited sequences may be conserved by chance (founder effect, sampling bias) rather than by functional necessity. If that position is not under evolutionary constraint, a single selective sweep can fix a new variant globally within one influenza season.2. Episodic Diversification Is Invisible to Sequence Counts
Some positions undergo bursts of selection in specific lineages or time windows — they appear highly conserved when looking at the global alignment but are actually under active diversifying pressure in a subset of circulating strains. Standard conservation metrics (proportion identical, Shannon entropy) cannot distinguish between these scenarios.3. Recombination Creates Local Instability
In some RNA viruses (coronaviruses, picornaviruses), intragenic recombination can dramatically reshuffle local sequence composition even in regions that appear conserved in the absence of recombination. Designing primers that span recombination breakpoints risks false-negative results in recombinant lineages.The Two-Track Framework
This pipeline integrates two independent evidence tracks to address all three limitations:Track A — Shannon Entropy
Shannon entropy quantifies the randomness (uncertainty) of nucleotide identity at a given alignment position: where is the proportion of base at position . A perfectly conserved position has ; a position with equal proportions of all four bases and a gap has . The conservation score normalises entropy to : means the position is 100% identical across all sequences. means completely random. Limitation: is a historical frequency metric. It cannot distinguish between positions constrained by function and those that happen to be uniform due to founder effects.Track B — Evolutionary Selection Pressure
HyPhy models the ratio of non-synonymous to synonymous substitution rates (, also written ) at each codon position across the phylogeny:- (purifying/negative selection): Non-synonymous mutations are deleterious and are purged from the population by natural selection. The encoded amino acid is functionally critical.
- (neutral evolution): Mutations have no fitness effect.
- (positive/diversifying selection): Non-synonymous mutations confer a fitness advantage (e.g., immune escape, receptor-binding adaptation).
The Composite Score and Grading
The Bridge Builder (M07) computes a weighted composite score for each candidate region: Where:- = conservation score from Track A entropy analysis
- = FUBAR purifying selection posterior probability
- Multipliers are applied (not subtracted linearly) for MEME episodic sites, recombination proximity, GC content deviation, and homopolymer runs
Why Both Tracks Are Necessary
The synergy between the two tracks is best illustrated by contrasting three scenarios:
A design based solely on Track A would miss the “historically conserved, evolutionarily neutral” risk. A design based solely on Track B would miss regions that are evolutionarily constrained at the molecular level but happen to have low current sequence diversity.
Further Reading
For the statistical models underlying this framework:- Murrell et al. (2013). FUBAR: A Fast, Unconstrained Bayesian AppRoximation for Inferring Selection. Molecular Biology and Evolution.
- Murrell et al. (2012). Detecting Individual Sites Subject to Episodic Diversifying Selection. PLOS Genetics.
- Pond et al. (2006). GARD: a genetic algorithm for recombination detection. Bioinformatics.
- Shannon, C.E. (1948). A Mathematical Theory of Communication. Bell System Technical Journal.
