Ecology and Evolution · Unit 2: Genomes, development and diversification

Molecular Evolution

How can the differences between two species' genes tell you when they split, and whether selection or chance shaped those differences? This lesson treats sequence differences as historical evidence, dates a split with a fossil-calibrated molecular clock, sets out what the neutral and nearly neutral theories predict, and reads dN/dS and the McDonald-Kreitman test. Afterwards you can date a divergence from a calibration, state what the calibration assumes, and say what a test for positive selection can and cannot show.

Watch first Genes Date a Split Without Fossils · 3:01

Two living species may have left no fossil of the moment they split. Their genes can still tell you, roughly, when it happened, and whether selection or chance shaped what changed.

This lesson reads DNA and protein sequences the way a geologist reads layers of rock: as a record laid down over time. You will date a split from sequence differences, see why most of those differences are thought to be selectively neutral, and learn to tell, with caution, when selection has been at work.

The idea: sequences as a record of time

When one ancestral population splits into two lineages, each keeps acquiring mutations. Some spread until every member of the lineage carries them. A mutation that has reached fixation in a lineage is a substitution: the rate of substitution is the rate at which mutations arise and then fix. Compare the same gene in two species and you see the substitutions that built up on both branches since their common ancestor.

The gene must be orthologous: two copies descended from one gene in the common ancestor by speciation, rather than by duplication within a genome (the copies How Signaling Evolved traces through gene families are mostly the duplicated kind). How the sequences are obtained belongs to sequencing and genomes; here you start from an alignment.

Counting differences is like counting the scratches on two copies of a record that have been played for years. A new scratch over an old one goes unseen. In the same way, a site can change twice, or change and change back, so the observed proportion of differing sites, p, underestimates the true number of substitutions as sequences diverge. A corrected distance, d, estimates the real number. The simplest correction (Jukes and Cantor, assuming all four bases interchange at one rate) is:

d = -(3/4) x ln(1 - (4/3) x p)

If 30% of aligned sites differ (p = 0.30), then 1 - 0.40 = 0.60, ln 0.60 = -0.511, and d = 0.383 substitutions per site. More than a quarter more change happened than you can see. For small p the correction is tiny: p = 0.012 gives d = 0.0121.

The tree that relates the sequences is itself an inference with a stated support, as in reading phylogenetic trees.

The clock and its calibration

In the early 1960s Emile Zuckerkandl and Linus Pauling noticed that amino-acid differences between the hemoglobins of different mammals were roughly proportional to the time since their lineages split, as judged from fossils. That is the molecular clock: the expected number of changes on a branch is its rate times its duration.

Sequences alone cannot separate rate from time. A distance of 0.02 could mean a fast rate over a short time or a slow rate over a long one. You need a calibration: an age from outside the sequences. A fossil is the commonest. The oldest fossil that can be correctly assigned to a group shows the group existed by then, so it gives a minimum age; the actual split was earlier by an unknown margin. Sequences sampled at sufficiently different known dates, such as virus samples or ancient DNA, can also calibrate a tree.

Worked problem (illustrative data). Two species known from fossils to have split 3.0 million years ago differ by a corrected 0.012 substitutions per site in a gene. A second pair differs by 0.024 in the same gene. When did the second pair split? Assume both lineages in each pair evolve at the same constant rate, the calibration date is exact, and variation already present in the ancestral population adds negligible time.

  1. Set up the model. Substitutions accumulate along both branches from the common ancestor, so the distance between two tips is D = rt + rt = 2rt, where r is the rate per lineage and t the time since the split.
  2. Calibrate. r = 0.012 / (2 x 3,000,000 years) = 2.0 x 10^-9 substitutions per site per year.
  3. Date the target. t = 0.024 / (2 x 2.0 x 10^-9) = 0.024 / (4.0 x 10^-9) = 6.0 million years. Check: 2 x 2.0 x 10^-9 x 6,000,000 = 0.024 substitutions per site, the stated distance.

The commonest error is forgetting the factor 2 in step 3, which gives 0.024 / 2.0 x 10^-9 = 12 million years. And since the calibration is a minimum, both splits may be older than these figures.

Calibrating a molecular clock: D = 2rt⚙ original · interactive
  • D = 2rt, through the calibration
  • fossil calibration (3.0 million years)
  • target distance
  • date read from the line
1. Calibrate: r = D / (2t)
2. Date the target: t = D / (2r)

In this sketch: slider values other than 0.012 and 0.024 are illustrative; one constant rate on both lineages, the calibration date treated as exact, and ancestral polymorphism ignored. The fossil date is a minimum, so the dates may be older.

Distance builds up on two branches, so D = 2rt: use the factor 2 when you find the rate and again when you find the date.

Real lineages do not run at one rate. Relaxed clocks let branch rates vary: in Drummond and colleagues’ 2006 method, each branch draws its own rate, and calibration uncertainty enters as a probability distribution on node ages. In their marsupial analysis the fastest branch of the most probable tree was estimated to evolve 2.7 times faster than the slowest. Even with abundant data, the dates such methods return stay sensitive to the assumptions about rates and times put in.

The neutral theory and what it predicts

Why would a protein change at a roughly steady rate? In 1968 Motoo Kimura argued that the substitution rate implied by protein comparisons was too high to be explained if each substitution had been driven by selection. His neutral theory holds that most substitutions that fix are neutral or nearly neutral, fixed by random drift, while most strongly harmful mutations are removed by selection before they spread. It does not say that all mutations are neutral, or that selection is unimportant for the traits organisms show.

The model makes a clean prediction. In an ideal diploid population of N individuals there are 2N copies of each site. If neutral mutations arise at rate mu per copy per generation:

new neutral mutations per generation = 2N x mu; fixation probability of each = 1/2N; so K = 2N x mu x 1/2N = mu

The neutral substitution rate K equals the neutral mutation rate and does not depend on population size: a large population makes more mutations, but each has a smaller chance of fixing. The derivation of the fixation probability belongs to population genetics. Note that mu is the neutral mutation rate, not the total; mutations removed by selection never become substitutions.

In 1973 Tomoko Ohta proposed the nearly neutral theory. Many mutations are slightly deleterious, with effects on fitness of the order of 1/Ne, where Ne, the effective population size, measures how strongly drift acts. In a small population drift can fix them; in a large one selection removes them. So for this class the substitution rate does depend on Ne.

Mutation input also varies. Bergeron and colleagues in 2023 sequenced 151 parent-offspring trios from 68 vertebrate species and found per-generation germline mutation rates differing 40-fold across species. The 36 mammals sampled averaged 7.97 x 10^-9 mutations per site per generation, and the four classes sampled did not differ significantly overall. That is a per-generation mutation rate; the clock rate above is a per-year substitution rate. Linking them takes assumptions about neutrality and generation time.

Reading selection in coding sequences

In a coding gene, a nonsynonymous change alters the amino acid and a synonymous change does not, because the genetic code has several codons for most amino acids. dN is nonsynonymous substitutions per nonsynonymous site; dS is synonymous substitutions per synonymous site. If synonymous changes are neutral, dS is a built-in control and their ratio omega = dN/dS reads selection on the protein:

  • omega below 1: most amino-acid changes were removed (purifying selection).
  • omega near 1: consistent with neutrality.
  • omega above 1: amino-acid changes fixed faster than silent ones (positive selection).

Worked problem, step 4. In the same gene from the second pair, dN = 0.004 and dS = 0.040 substitutions per site. Omega = 0.004 / 0.040 = 0.10. Amino-acid changes fixed at a tenth the rate of silent ones, so most were removed by purifying selection, even though the gene is still evolving.

A second signal comes from polymorphism. Under neutrality, variants within a species are transient stages on their way to fixation or loss, so the ratio of replacement to synonymous changes should be the same among polymorphisms as among fixed differences between species. In 1991 John McDonald and Martin Kreitman applied this to the Adh gene in three Drosophila species and found an excess of fixed replacement differences, which they suggested reflected adaptive fixation. The McDonald-Kreitman test uses each class of change as the control for the other, so it needs no clock.

When the signal misleads

Each of these tests is a model inference, and each model can fail.

A gene-wide omega averages over sites. If most codons are strongly constrained, a few positively selected sites barely lift the average, so the test has little power. Within a single population, omega near 1 can arise under selection and does not establish neutrality. Synonymous sites are not always neutral: Rahman and colleagues in 2021 found evidence of non-neutral synonymous substitutions in Enterobacterales, which undermines the denominator. And in 2018 Venkat, Hahn and Thornton showed with simulations based on mammal and fly alignments, containing no positive selection, that mutations changing several adjacent nucleotides at once can make the branch-site test report positive selection on a lineage.

Design problem

A branch-site test flags positive selection in an immune gene on one primate lineage. Before you believe it, what would you check?

One way to do it

Start with the data. Inspect the alignment around the flagged codons for errors, and confirm that every sequence is a true ortholog rather than a duplicated paralog or a misassembled copy.

Then test the model. Simulate alignments on the same tree with no positive selection but with realistic multinucleotide mutations and the observed base composition, and see how often the test fires; if it fires often, the empirical result is weak. Check codon-usage bias, since selection on synonymous sites changes dS.

Seek an independent signal. Build a McDonald-Kreitman table for the lineage from polymorphism data: replacement and synonymous changes, polymorphic and fixed. An excess of fixed replacements would support the inference by a different route.

Finally, test function. Reconstruct the ancestral and derived proteins, express both, and measure the property that matters, such as binding to a pathogen protein. Even then, report the result as a model inference supported by evidence, not as an observation of adaptation.

How we measure it

Fossil-calibrated molecular dating

Branch lengths estimated from sequences are converted to time with external age information: a fossil that sets a minimum age for a node, or sequences sampled at known, sufficiently different dates. Bayesian relaxed-clock methods let rates vary among branches and represent calibration uncertainty as a prior distribution on node ages.

Codon-model estimation of dN/dS

Aligned coding sequences are analysed on a phylogeny with a model that separates nonsynonymous from synonymous substitutions, each counted per available site. The ratio omega = dN/dS, estimated by maximum likelihood for a gene, a branch or a class of sites, measures how amino-acid changes have fared relative to silent ones.

McDonald-Kreitman test

Changes at one locus are sorted into a two-by-two table: replacement or synonymous, and polymorphic within species or fixed between species. Under neutrality the replacement to synonymous ratio is expected to be the same in both rows; an excess of fixed replacements suggests adaptive fixation, and an excess of replacement polymorphisms suggests weakly harmful variants.

Parent-offspring trio sequencing

The genomes of two parents and their offspring are sequenced at high coverage, and sites where both parents carry the reference base and the offspring is heterozygous are taken as candidate new mutations. Correcting for the callable part of the genome and for missed mutations gives a per-generation germline mutation rate.

Finish line

Test yourself

8 questions

Practice and MCAT-style, with explained answers.

Next · Lesson 6

Evolution of Development

Some lake sticklebacks have almost no pelvis, yet their Pitx1 protein is unchanged. Where did the change happen?

Continue →

← Lesson 4 · Drift, Gene Flow and Competing Explanations

↑ Top