Ultimate Biotech Perfect Genetics Simulation

Why a perfect genome cannot be kept: mutation, selection, drift, proofreading and gene editing in a population.

What am I looking at?

Each dot is a genome, gold if it has zero harmful mutations. Every generation offspring inherit from parents chosen in proportion to fitness and receive new random mutations. The green line is the population's mean fitness; the white dashed line is the exact prediction.

Raise proofreading or gene editing and watch the perfect (gold) fraction grow. Shrink the population to see Muller's ratchet.

The science

Fitness w = (1 - s)^k for k harmful mutations; offspring get Poisson(U) new ones, with U = U0 (1 - proofreading); editing removes each existing mutation with probability e.

In an infinite population the number of mutations is Poisson with mean theta = U / (1 - (1-s)(1-e)), giving mean fitness W = exp(-theta s). With no editing this is W = exp(-U) (Haldane-Muller), independent of s, and the fraction of perfect genomes is exp(-theta).

In a small population the best class is lost by chance and cannot be rebuilt without back-mutation: Muller's ratchet.

Simplifications: asexual haploid, multiplicative fitness, every mutation equally harmful, no back or beneficial mutations, no recombination. Editing and proofreading levels are illustrative. Perfection is only reached when U is zero.