Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

S5a. Network state and drift: results, choices and limits

This page belongs to tutorial S5. All tables are generated from the CSV files in examples/mtdna_network/results/, and validation/check_mtdna_network.py compares them with this page.

The primary check

The three conditions fixed in manifest.json before the runs: turnover E:0 (μ = 0.01725 per day), copy number F:0 and the nominal H:60. Each has 2,000 paths over 0–2 days. The ratio is the measured slope of Var(h) divided by the Equation 13 slope.

ConditionPathsRatio99% simultaneous, 600 replicatesSame, 20,000 replicatesInside 0.80–1.20
E:02,0000.9860.904–1.0740.903–1.073yes
F:02,0000.9860.903–1.0620.904–1.065yes
H:602,0001.0100.935–1.0840.929–1.096yes

All three intervals lie inside the declared band: numerical agreement. The shipped intervals used 600 bootstrap replicates, so each end rests on about one replicate (tail 0.01/6). Rerunning the same paths (identical seeds give identical paths) with 20,000 replicates moves the ends by up to 0.012; five other 600-replicate seeds differ from the 20,000-replicate ends by up to 0.017 (review-primary-intervals.csv). The decision is the same either way.

Early variance in four sweeps, with the Equation 13 lines dashed

Every source condition

The same estimator for all 39 conditions. Intervals use the same Bonferroni tails as the primary check and are descriptive. “Archive” is the authors’ 10,000-path variance series regressed through the origin over 0–100 days, divided by the same Equation 13 slope.

ConditionVariedPathsWindow (days)f_sEq. 13 (1e-6/day)Ratio99% intervalArchive 0–100 d / Eq. 13
E:0μ = 0.01725/day2,00020.4663.3850.9860.904–1.0741.004
E:1μ = 0.0345/day2,00020.4666.7701.0420.965–1.1301.041
E:2μ = 0.04025/day2,00020.4667.8781.0100.930–1.0911.005
E:3μ = 0.046/day2,00020.4669.0030.9550.888–1.0511.007
F:0κ = 02,00020.4724.6530.9860.903–1.0621.011
F:1κ = 5832,00020.3221.6941.0050.929–1.0801.020
F:2κ = 11662,00020.2560.9700.9850.910–1.0580.994
F:3κ = 23332,00020.1860.4671.0470.960–1.1260.997
F:4κ = 34992,00020.1470.2801.0670.987–1.1551.000
G:0δ = -52,00020.1890.2081.0180.933–1.0900.990
G:1δ = -12,00020.1890.4841.0050.923–1.0841.011
G:2δ = -0.12,00020.2390.9741.0150.937–1.1161.019
G:3δ = -0.012,00020.2571.1630.9820.907–1.0560.996
G:4δ = 0.012,00020.2621.2090.9950.922–1.0731.001
G:5δ = 0.12,00020.2811.4271.0210.950–1.1041.017
G:6δ = 12,00020.4714.6521.0120.943–1.0900.976
G:7δ = 1.52,00020.57810.3200.9800.900–1.0621.019
G:8δ = 22,00020.5676.2401.0280.955–1.1060.993
H:5R = 0.01, M = 12,00020.9879.5201.0270.946–1.1201.010
H:16R = 0.0251, M = 12,00020.9719.3801.0180.947–1.1101.008
H:27R = 0.0631, M = 12,00020.9328.9990.9820.901–1.0600.986
H:38R = 0.158, M = 12,00020.8468.1720.9940.916–1.0820.992
H:49R = 0.398, M = 12,00020.6876.6361.0130.940–1.0901.015
H:55R = 1, M = 0.012,00020.4464.3191.0090.943–1.0801.023
H:56R = 1, M = 0.02512,00020.4584.4160.9440.880–1.0151.004
H:57R = 1, M = 0.06312,00020.4634.4731.0080.920–1.0910.998
H:58R = 1, M = 0.1582,00020.4654.5121.0350.949–1.1170.990
H:59R = 1, M = 0.3982,00020.4664.5131.0110.940–1.0861.006
H:60R = 1, M = 12,00020.4674.5001.0100.935–1.0840.996
H:61R = 1, M = 2.512,00020.4674.5111.0160.938–1.0981.016
H:62R = 1, M = 6.311,0240.9570.4674.5110.9960.883–1.1170.990
H:63R = 1, M = 15.81,0240.3810.4674.5110.9980.896–1.0941.022
H:64R = 1, M = 39.81,0240.1520.4674.5111.0280.909–1.1801.002
H:65R = 1, M = 1001,0240.06040.4674.5110.8790.755–1.0331.021
H:71R = 2.51, M = 12,00020.2582.4830.9840.912–1.0710.995
H:82R = 6.31, M = 12,00020.1221.1870.9650.895–1.0401.001
H:93R = 15.8, M = 12,00020.0520.5081.0380.936–1.1301.008
H:104R = 39.8, M = 12,00020.0220.2040.9710.872–1.0810.981
H:115R = 100, M = 12,00020.0090.0930.9050.819–1.0280.945

38 of the 39 intervals lie inside 0.80–1.20. The exception is H:65, the fastest switching magnitude (β = 3,312 per day). Its window is 0–0.060 days, in which a path sees about 1.3 births or deaths, so its interval is 0.28 wide, against 0.13–0.21 for the 2,000-path rows over 2 days. Its rerun is below.

What the two-day window can and cannot show

At time zero every path is in the same state, and the variance grows only through births and deaths. A birth or death changes h by about h/n or (1−h)/n. If the singletons have the same mutant fraction as the whole cell and births balance deaths (λn = μ·n·f_s), the sum of hazard times squared jump is exactly 2μ f_s h(1−h)/n, Equation 13, whatever the fusion and fission rates are. So the early ratios check the hazards and the estimator. They cannot show the failure of Equation 13 when fusion and fission are slow; that failure builds up over many turnover times, as the singleton and fused pools drift apart.

The authors’ archived runs cover 500 days (about 17 half-lives). By their own estimator (the mean finite-difference gradient of Var(h) over 0–500 days), the largest deviation in the whole 121-condition network sweep is 9% (magnitude 0.01, ratio 0.063, a row not among the 39); H:55 (magnitude 0.01, ratio 1) deviates by 7%. No path reaches fixation by day 500 in any of the 39 archived conditions.

Review runs

Four runs, each declared with its decision rule before it ran (review.py, results/review-*.csv):

  1. H:65 again, same window, fresh seed, 2,000 paths. Rule: a single 99% interval containing 1 means the shipped 0.879 is sampling noise.
  2. H:55, the slowest switching magnitude of Figure S3D, 2,000 paths over 0–500 days, and H:60 (nominal), 400 paths over 0–100 days, on the archive’s 10-day grid with the authors’ estimator. Rule: the 99% interval of fresh/archived containing 1 means numerical agreement.
RunPathsDaysQuantityValue (99% interval)
H:65 again, fresh seed2,0000–0.060fresh / Equation 131.042 (0.925–1.187)
H:55 fresh vs archive2,0000–500fresh / archived0.938 (0.864–1.016)
H:55 vs Equation 132,0000–500fresh / Equation 131.004 (0.925–1.088); archived 1.070
H:60 fresh vs archive4000–100fresh / archived0.879 (0.720–1.063)
H:60 vs Equation 134000–100fresh / Equation 130.885 (0.725–1.070); archived 1.007
  • H:65: the interval contains 1. The shipped 0.879 was sampling noise of the short window, not a loss of accuracy.
  • Both fresh-versus-archive intervals contain 1: numerical agreement with the authors’ simulations. The nominal run is small (400 paths), so its interval, 0.72–1.06, is wide.
  • H:55 against Equation 13: inconclusive. The fresh interval contains both 1 and the archive’s 1.070, so this run cannot tell whether slow switching makes the drift 7% faster.

Long-time variance: fresh, archived and Equation 13

results/nominal-long.csv holds the smaller H:60 run of the full campaign (96 paths to day 50); its variance at day 50, 2.40e-4, is close to the Equation 13 value 2.25e-4.

Reconstruction choices

ChoiceAlternativeMeasured effect
Equation 13 evaluated at the integer initial counts, as the authors’ analysis doesthe floating-point deterministic steady state reached from them≤ 0.2% in all rows except H:93 (0.5%), H:104 (2.2%) and H:115 (3.6%), where only 9–22 copies are singletons
Slope from 0–2 days, through the originthe authors’ mean gradient over 0–500 dayschanges the question (see above); archive ratios are 0.96–1.07 over 0–500 days and 0.94–1.04 over 0–100 days
Window 2·100/β days and 1,024 paths for H:62–H:652 days and 2,000 pathsinterval widths 0.20–0.28, against 0.13–0.21 for the 2-day rows
Bootstrap of the variance with divisor ndivisor n − 1, as in the archive0.05%
600 bootstrap replicates20,000interval ends move by up to 0.017
Fused copies never degradedthe authors’ xi > 0 variantnot run; outside Figure 2
Pair hazard γ·k(k−1)/2 for identical singletonsγ·k²/2identical to the authors’ simulator; the check would catch either factor-two error

What the check guards

validation/check_mtdna_network.py runs in under a second and offline. It compares hand-computed hazards with finite state projection over one tiny time step: identical-singleton fusion at 0, 1, 2 and 3 copies, all 13 one-event destinations of a mixed state with feedback b > 0, the clamp of a negative replication rate at zero, and that fused copies are never degraded. It checks that a single-genotype cell never gains a mutant, the Equation 13 value for one state, the row and value counts of the reference files, the structure of the saved results, and that the three tables above equal the saved CSV files.

Limits and what was not verified

  • The supplement (Table S2) was not read; parameter values come from the authors’ parameter tables at the pinned revision, which match conditions.csv exactly.
  • Figure S4A (the error heatmap over the full network grid) is not reproduced; only the archive was read for it.
  • The review reran only the three primary conditions of the full campaign (bit-identical to the shipped rows; one and two threads give identical paths). The other 36 rows were not rerun.
  • The early-window ratios do not test the fast-switching assumption of Equation 13, and the slow-switching deviation in the archive (7% for H:55) is not resolved by the fresh runs.
  • conditions.csv and reference-variance.csv are derived from the data files of a GPL-3.0 repository. They are not covered by this repository’s MIT license and stay under the terms of their source (notice); fetch.py regenerates both from the pinned revision.

Exercises

  1. Multiply early_days in manifest.json by 400 and run study.py --size quick (a 0–100 day window, about two minutes). Does the ratio for H:60 stay near 1?
  2. Change the fusion hazard in study.py to count ordered pairs (γ·k(k−1)) and run the check. Which line fails?
  3. Raise the H:55 path count in review.py from 2,000 to 8,000 (about seven minutes). Does the interval against Equation 13 still contain 1?