Kevin Mok — portfolio / run it yourself
Fit Lenski's long-term experiment in your browser
Twelve populations of E. coli have been evolving in identical flasks since 1988. Does their fitness level off, or does it keep rising? The measurements are public. This page fits both answers to them, on your machine.
Nothing here is simulated. The page loads the data file the authors deposited, confirms it is that file, recomputes every fitness value from the colony counts, and fits two curves. Nothing is sent anywhere.
The comparison
Loading the data and checking the code on your machine…
Fitness against generations
Fitness 1 is the ancestor. Bright points: the average over populations, with one standard error. Faint points: single populations. Where a curve is dashed, it is a forecast: those points were not used to fit it.
What each curve misses
Measured average minus curve, at each time. A curve with the right shape leaves points scattered evenly about zero. A curve with the wrong shape leaves runs of points on one side.
| Curve | a | b | Squared error | BIC score | Levels off at | At 50,000 | At 100,000 |
|---|---|---|---|---|---|---|---|
Each population by itself
| Population | Mutator | Measured to | Points | Hyperbolic ceiling | Power-law exponent | Score gap | Better fit |
|---|---|---|---|---|---|---|---|
Each population's whole record, fitted alone. “Mutator” marks the populations that evolved a raised mutation rate at some point. The score gap is the hyperbolic curve's BIC minus the power law's: positive favours the power law, and a gap under 2 either way is too close to call.
Would another draw of populations say the same?
The twelve populations are twelve runs of the same experiment. Draw twelve from them at random, allowing repeats, and fit both curves again. If the answer depended on one or two unusual populations, it would change from draw to draw.
Score gap in each draw
Right of zero, the power law fitted better in that draw.
What you are looking at
Richard Lenski started twelve populations of E. coli from one ancestor in 1988. They have grown in the same sugar-limited medium ever since, diluted into fresh medium every day, with a sample frozen every 500 generations.
Fitness is measured by competition. A sample of an evolved population is mixed with the ancestor, which carries a marker that gives its colonies a different colour on an indicator plate. The two grow together for a day, and colonies of each colour are counted at the start and at the end. Fitness is the evolved population's growth rate divided by the ancestor's: 1.5 means it grows half as fast again. The file holds those colony counts for 928 competitions.
Both curves slow down as time goes on. The hyperbolic curve, w = 1 + a t / (t + b), approaches a ceiling at 1 + a and stops there. The power law, w = (b t + 1)^a, never stops: each tenfold stretch of time adds about the same factor. Each has two adjustable numbers, so neither wins by being more flexible.
Wiser, Ribeck and Lenski reported in 2013 that the power law fits better, and that when both curves are fitted to the early generations only, the hyperbolic curve forecasts too little later improvement while the power law forecasts it well. Both findings can be repeated above from the raw file.
What this page can and cannot show
It repeats a published analysis. It is not a new result. What it adds is that you can watch the published curves come out of the published counts on your own machine, with every step open to inspection.
The “odds” come from a score, BIC, that treats every point as a separate measurement with the same scatter. They are not separate: a population's fitness at one time is tied to its fitness at the next, and the populations differ from one another. So read large odds as “clearly better”, not as a literal probability. The resampling is the rougher and more honest guide, and with twelve populations it is coarse.
Taken one at a time the populations are much less decisive, as the table shows. One population's record is noisy; the strength of the result is in the twelve together.
The file stops at generation 50,000. The experiment has run on well past that, and the authors tested the forecast on later generations in a second paper, which found the power law still fitting better. Those later measurements are not in this file and not on this page. Three populations also leave this record early, after 4,000, 30,000 and 32,000 generations, because their colonies could no longer be counted reliably by this method; from then on the average is over fewer populations.
Why this is here
The thesis I want to write claims that evolution under tight constraint leaves the same signatures in living systems and in computational ones. One of those signatures is the one on this page: improvement that slows down but does not stop. Chapter 14 proposes to look for the others in the frozen record of this same experiment. This page is the first and smallest step: the published fitness record, taken from raw counts to a comparison of models, with each step checked.
More: a physics experiment you can run the same way · lithoSpore, the offline package this is headed for · the portfolio
Check the code yourself
These checks ran on your machine when the page opened. If any fails, the page says so at the top and the numbers should not be trusted.
- Running…
Data: Wiser MJ, Ribeck N, Lenski RE (2013), Long-term dynamics of adaptation in asexual populations, Science 342:1364–1367, doi:10.1126/science.1243357; deposited at Dryad, doi:10.5061/dryad.0hc2m, public domain (CC0). The fitted curves as printed, and the later test: Lenski RE and others (2015), Proc. R. Soc. B 282:20152292, doi:10.1098/rspb.2015.2292, open access.
The whole calculation is one short file you can read: ltee-core.js. Written by Kevin Mok for ecoPrimals; AGPL-3.0. The experiment and its data are the work of the Lenski laboratory.