A useful, openly released tool whose headline accuracy numbers reproduce from the figures. However, the proportion proposal is not symmetric as the paper claims, credible intervals are badly miscalibrated (9/21 coverage at 16X), the code version behind the simulations is unclear, and several conclusions (1-2X recommendation, 3-way deconvolution at 1X, 1-5% archaic proportions 'correctly estimated') go beyond the evidence.
Soundness
2/4
Presentation
3/4
Contribution
3/4
Confidence
4/5
✓ 11 confirmed✕ 6 discrepancy◐ 1 inconclusive
Summary
The paper introduces TrailMix, a vgan subcommand that models hominin mtDNA reads from ancient sediments as a mixture of k sources. Each source has a continuous placement βi on a 64-tip hominin mitochondrial tree (with 62 reconstructed ancestors in a pangenome graph) and a proportion Θi. A per-read likelihood combines HKY private mutations, position-specific deamination, sequencing error and an ad hoc penalty for unsupported bases. Metropolis-Hastings sampling, initialised by RPVG, returns posterior means and credible intervals, and minor sources can be placed on internal (ancestral) branches.
Strengths
Held-out simulation design with verified distances
Sec. 2.1 p.5; Sec. 3.1 p.15; Sec. 3.1.1 p.16
None of the simulated mitogenomes is in the reference, so placement is tested against nearest relatives rather than exact matches. I rebuilt all 126 paths of the publication database and confirmed the stated closest tips for all five sources. Chagyrskaya 8 is 34 substitutions from Les Cottés and 23 from their shared ancestor, exactly as stated (check 09). The graph (5,425 nodes / 6,664 edges) and tree (64 tips, 125 branches) also match (check 15).
Headline accuracy numbers reproduce from the figures
Fig. 4 p.19; Fig. 5 p.21; Sec. 3.1.2 pp.18-22
Digitising Fig. 5A-D recovers the Chagyrskaya 8 RMSE as 0.0562/0.0317/0.0274/0.0268 (paper: 0.056/0.032/0.027/0.027) and the quoted 1% estimates (checks 06). The pooled RMSE curves in Fig. 5E match the text (TrailMix 0.152 to 0.096; lowest at all 7 depths; check 05). Design denominators (735, 14, 112, 132, 51/55, 15/55) are internally consistent (check 07), and the Fig. 4 intervals and k=2 mirror posteriors are coherent (checks 12, 13).
Candid reporting of failure modes
Sec. 2.3 p.14; Sec. 3.1.2 pp.20-22; Discussion pp.27-28
The paper openly reports the upward bias of small proportions (a 1% source estimated at about 4% even at 16X), credible-interval under-coverage (14/21 at 1X, 9/21 at 16X), spurious archaic components in modern+modern mixtures, misplacement of small modern components, the ~6% label-switching rate, and the M76 discordance. It also concedes that summed kallisto gives better archaic fractions below 4X. Few method papers are this explicit about where their tool fails.
Fills a real methodological gap
Introduction pp.2-4; Sec. 2.2 pp.5-11
Existing contamination tools (schmutzi, contamMix) assume a present-day contaminant. Sediment studies have used kallisto heuristics or diagnostic-position counts without uncertainty. A joint model of proportions and continuous placements, including ancestral branches, with credible intervals is a meaningful step for sediment mtDNA work.
Open code that matches the described model
Sec. 2.2 pp.7-13; vgan src/MCMC.cpp, src/MCMC.h, src/precompute.h
The implementation in vgan matches the Methods on all eight items I extracted: the λ mixture bounds, uniform source choice, truncated-normal Θ proposal, log 1e-10 read floor, every-fourth-base Q50 penalty, --depth 10, κ=22 and gap probability 0.02 (check 11). The full likelihood is written out in the text.
Weaknesses
Θ proposal is not symmetric; sampler does not target the stated posterior
major · Sec. 2.2.1 p.12; vgan src/MCMC.cpp:508-541, 1614-1680, 1955-1956
The paper says the Θ proposal (each component drawn from N(Θi,0.1) truncated to [0,1], then renormalised) is symmetric and needs no Hastings correction. It is not. I computed the exact density for k=2: , , and the ratio is close to 1 only near 0.5 (check 01). In a toy with a known Beta posterior, the stationary mean for a 1% truth is shifted by +9% relative (0.0196 vs 0.0214), and with no data the 90% interval is [0.085, 0.915] instead of [0.05, 0.95] (check 02). The bias is small in absolute terms and cannot alone explain the reported 1% to 0.04-0.10 overestimation, but it affects exactly the near-boundary regime the paper emphasises. The code also clamps acceptance to [1e-5, 0.99999] (MCMC.cpp:1955), which is undocumented and breaks detailed balance (check 03). A whitelist repair loop re-moves sources with the absolute proposed position as displacement, the same pattern the authors fixed as asymmetric in the main move (check 11). Fix: add the Hastings ratio (or use a Dirichlet / logit-scale proposal), remove the clamp, and rerun the 735 mixtures.
Questions for the authors
Which exact vgan commit produced the 735 simulated runs and the nine empirical runs, and were all of them regenerated after the 2-3 November 2026 fixes (κ integer division, asymmetric tree move, srand reseeding, accepted-only statistics)?
After adding a Hastings correction to the Θ proposal and removing the acceptance clamp, do the upward bias of 1-5% components and the 90% interval coverage (9/21 at 16X) change?
How do the reported coverage and RMSE change if chains are pooled (with R^ reported) instead of selecting the chain with the highest minimum ESS, and if chains start from dispersed states rather than the shared RPVG initialisation?
What does TrailMix return when a single-source sample is analysed with k=2, and for a simulated Neanderthal+Denisovan mixture? This decides whether the 7-9% modern components in the Vernot libraries and the archaic+archaic calls for E256/E227 are trustworthy.
Why does MCMC refinement worsen the RPVG starting estimate for T2a1 at every depth from 2X upward (≈0.20 vs ≈0.15 RMSE)?
Verification
I ran 18 checks with scripts: 11 confirmed, 6 discrepancies and 1 inconclusive. Reported numbers hold up well. The Chagyrskaya 8 RMSEs and 1% estimates (Fig. 5A-D), the pooled RMSE curves (Fig. 5E), the design denominators, the Fig. 4 intervals, the reference graph and tree counts, the closest-relative distances and the GenBank accessions all reproduce within digitisation tolerance. The discrepancies concern the method rather than the arithmetic. The Θ proposal is provably asymmetric near the simplex boundary; in a toy it biases a 1% posterior by about +9% relative, which is too small to explain the reported overestimation by itself. The acceptance clamp is undocumented. TrailMix is worse than its RPVG initialisation for several sources in ways the paper does not mention. The novelty claim conflicts with soibean, and one citation is misplaced. Credible-interval coverage of 9/21 at 16X is significantly below nominal (p=1.2e-7). The code version used for the simulations could not be pinned. No TrailMix runs were re-executed, because the benchmark data and commands are not released.
[1] Andrews et al. 1999, Reanalysis and Revision of the Cambridge Reference Sequence for Human Mitochondrial DNA, Nature Genetics 23:147
Cited (as [46, 1], Introduction p.3) for the statement that mixEMT does not let the user specify the number of contributing sources. The rCRS paper predates mixEMT (2017) by 18 years and says nothing about it; the citation looks misplaced (only [46], Vohr et al. 2017, supports the statement).
[45] Vogel et al. 2024, soibean, Mol. Biol. Evol. msae203
Exists and is the basis of TrailMix's model and sampler (pp.5, 11-12), yet the Introduction (p.3) states that no extant program uses MCMC for phylogenetic placement. soibean's MCMC moves source positions along the tree (vgan src/MCMC.cpp:543ff, called from src/soibean.cpp:820), so the reference contradicts the novelty claim it sits beside.
[12] Garrison et al., Building Pangenome Graphs, Nature Methods (2024)
Exists (PGGB paper); Crossref fuzzy match returned the 2022 bioRxiv preprint 'Unbiased pangenome graphs'. Volume and page numbers ('pp. 1-5') are placeholders; the citation should give the full bibliographic details.
[9] Felsenstein, Newick tree format (web page, accessed 2024-07-18)
Web resource, not indexed in Crossref; lookup returned an unrelated item. Not a problem in itself, listed for completeness.
[4] Brown et al., The earliest Denisovans and their cultural adaptation, Nature Ecology & Evolution 6:28-35
Exists (DOI 10.1038/s41559-021-01581-2, online 2021, issue 2022). Minor: the GenBank record of the cited accession MT576653.1 carries the pre-publication title, so readers may not connect the two easily; a DOI would help.
Suggestions
Replace the truncated-and-renormalised Θ proposal with a proposal whose density is tractable (e.g. Dirichlet centred on the current state, or a random walk on the additive log-ratio scale) and include the Hastings ratio; remove the [1e-5, 0.99999] acceptance clamp and rewrite the whitelist repair as a proper (or rejected) proposal.
Pin and report the exact vgan commit for every result, and state the burn-in, thinning and number of chains used.
Pool chains (or report all chains) and give R^ and ESS per parameter; start chains from dispersed states to make multi-chain diagnostics meaningful.
Add archaic+archaic mixtures, k-misspecified runs (true k= analysed with , true with ), a varied second source and empirical-length fragments (~50 bp) to the simulation grid, and propose a criterion for choosing .
Ethics and integrity
No integrity concerns. Use of ChatGPT (graphical abstract figure) and Claude (Snakemake files, code debugging and extension, manuscript revision) is disclosed in the Acknowledgements, and the initial developer is credited. Given that AI assistance extended the TrailMix code, and that the git history shows substantive correctness fixes shortly before posting, pinning the exact code version used for the results (see weaknesses) is particularly important. Empirical data are previously published sediment libraries; no consent issues arise. No instructions addressed to reviewers were found in the materials.
Scope of this review
Only the main PDF (33 pp.) was available. The supplement (S1-S7, Supp. Figs S1-S130, Supp. Tables S3-S4) was not provided, so the database composition, RPVG initialisation, full placement-accuracy table, summed kallisto analysis and single-source empirical runs could not be examined. Benchmark data and commands are not yet deposited, so no TrailMix run was reproduced. Figure values were obtained by digitisation (tolerance stated per check). The code was inspected at vgan HEAD acdc5ad (26 Nov 2026), which postdates the preprint. The publication database was obtained from the link in the vgan README. Sampler properties were tested on exact toy models, not on the real likelihood.
The evaluation uses held-out sources: five single sources simulated with gargammel at a range of depths, and 735 two-source mixtures. Each of the five sources is mixed with a fixed U5a2a genome at 21 proportions and 7 depths, and TrailMix is compared with kallisto and with its own RPVG initialisation. The tool is then run with k=2 on nine published sediment libraries (Zavala et al. 2021; Vernot et al. 2021). The main claims are: reliable single-source placement from about 0.1 to 0.5X; low proportion error for archaic+modern mixtures (RMSE 0.027 at 8 to 16X for Chagyrskaya 8); the lowest pooled RMSE of the three methods at every depth; correct placement of both sources at 4X or more when the minor source contributes at least 25%; and broad agreement with the original sediment analyses.
q(0.10∣0.01)/q(0.01∣0.10)=1.96
q(0.05∣0.01)/q(0.01∣0.05)=1.43
Credible intervals badly miscalibrated, and calibration worsens with depth
major · Sec. 2.2.2 p.12; Sec. 2.3 pp.13-14; Fig. 5A-D p.21; Discussion p.27
Nominal 90% intervals (Fig. 5, which uses 5-95% bars although Sec. 2.3.2 describes 95% intervals) contain the truth in 14/21 mixtures at 1X and 9/21 at 16X. Exact binomial tests give p=3.3e-3 and p=1.2e-7 (check 06). At 16X the interval for the 1% U5a2a component (99% Chagyrskaya 8) excludes 0.01. Providing credible intervals is the tool's main selling point over kallisto (abstract; Discussion p.28), so this undercuts a central claim. The paper acknowledges it but does not diagnose it. Likely contributors include reporting a single 'best' chain rather than pooling, identical starting states for all chains, the improper proposal above, and the independence-of-bases approximation. Fix: report coverage for all sources and depths, use pooled chains with R^, and test calibration after correcting the sampler.
Code version behind the reported simulations cannot be determined
major · Sec. 6 p.29; Sec. 2.1 p.5; vgan git history
Sec. 6 gives only 'development version of 3.1.0 built against vg v1.75'. That matches any commit from 2026-10-01 to 2026-11-21. Inside this window, commits 1518c4f/7474a46 (2-3 Nov 2026) fixed an HKY κ integer division that made κ=0, an asymmetric tree move ('the chain did not target the posterior'), srand reseeding on every iteration, summary statistics computed over accepted states only, and k≥3 sampling the prior (check 04). The graph size and node names in the paper match the database rebuilt on 6 Nov 2026, but the database README notes an earlier draft cited the old graph, and only a 3-sample functional test is documented on the rebuilt database. Fix: state the exact commit and confirm that all 735 simulations and the empirical runs were regenerated after the fixes.
Conclusions and recommendations go beyond the evidence
major · Introduction p.4; Sec. 3.1.2 pp.20-22; Discussion p.27
(i) p.4 claims TrailMix can resolve a Neanderthal + Denisovan + modern mixture 'at a coverage of even 1X'. No k=3 or archaic+archaic mixture was simulated, and p.28 states that k>2 was not evaluated. (ii) p.27 recommends '1-2X for two sources', yet both sources are placed correctly in only 15/55 (27%) mixtures at 2X and almost none at ≤1X (p.22; check 07). (iii) p.27 says 1-5% archaic contributors have 'their proportions correctly estimated', but 1% is estimated at 0.04-0.10 and 1% Denisova 21 at 0.41 at 2X (p.20). That single error accounts for 88% of the Denisova 21 2X MSE (check 14). (iv) The text quotes only the 1%-Chagyrskaya 8 points. The other 1% minor (1% U5a2a) is estimated at 0.071/0.066 at 8/16X, worse than the quoted 0.05/0.04 (check 06). Fix: align the abstract, introduction and discussion with the measured operating range.
Simulation design too narrow for the empirical use cases
major · Sec. 2.4 pp.14-15; Sec. 3.1 p.15; Sec. 3.2 pp.23-26
Every mixture uses the same second source (U5a2a, damage ×0.75), and only archaic+modern and modern+modern pairs are simulated. No archaic+archaic mixture, no single-source sample analysed with k=2, and no k=3 case is tested. The empirical conclusions rely on exactly these untested settings: E256 and E227 are inferred as Neanderthal + Denisovan, and k=2 is imposed on every library, so the 7-9% modern components in all three Vernot libraries could be artefacts of forced k (check 08). The held-out Denisovan is also easy: Denisova 21 is 4 substitutions from Denisova 20 and identical to Denisova 19, versus 34 substitutions for the Neanderthal (check 09). Simulated fragments average about 97 bp versus 49 bp in M76 (check 16). Fix: add archaic+archaic, misspecified-k and short-fragment simulations, plus a model-selection criterion for k.
Empirical concordance overstated
minor · Sec. 3.2.1 pp.23-25; Figs. 6-7; Discussion p.27
TrailMix agrees with the original archaic assignment in 7/9 libraries but gives the same contributor set in only 4/9 (check 08). Both discordances (M76: Neanderthal to Denisovan stem 0.61; E221: Neanderthal+Denisovan to Denisovan+modern) concern whether a Neanderthal is present, which is usually the key question. Placements on the Denisovan stem are presented as 'more biologically accurate' (p.25), but an uninformative Denisova 21 at 0.05X also lands on the stem (p.16), so stem placement may reflect low information rather than a deep lineage. The discordances need a dedicated analysis.
Per-source comparison with RPVG and kallisto is incomplete
minor · Sec. 3.1.2 p.22; Fig. 5E p.21; Discussion p.28
The pooled claim holds (check 05), but the listed exceptions are incomplete. TrailMix is worse than its own RPVG initialisation for T2a1 at every depth ≥2X (e.g. 0.199-0.201 vs 0.147-0.148 at 4-8X), for D4a1d at 2/8/32X (0.156 vs 0.110 at 2X), and for L2 at 0.5X (0.220 vs 0.185). For these sources, MCMC refinement makes the RPVG estimate worse, which deserves explanation. 'Most accurate at every coverage depth' (p.28) should say 'pooled'.
Novelty claim contradicts the paper's own predecessor
minor · Introduction p.3
p.3 states that 'no extant program of which we are aware uses MCMC methods' for phylogenetic placement. Yet TrailMix's model and tree moves are adapted from soibean [45] (pp.5, 11), whose MCMC samples source positions along branches (vgan src/soibean.cpp:820 → MCMC.cpp:543; check 17). pplacer [26] also gives Bayesian posterior placement probabilities. The novelty should be restated as joint proportion+placement inference for hominin mtDNA mixtures.
Ad hoc likelihood components without sensitivity analysis; Methods describe unused model parts
minor · Sec. 2.2 pp.7-8, 10-11
The Q50 penalty on the first and every fourth base of unsupported segments, the log 1e-10 floor on fragment likelihoods and the 0.02 indel probability are described as empirically derived, with no ablation. The detailed mismapping/NuMT model on p.7 is then said not to be used. The total-probability expression on p.7 is written with conditionals instead of joints. Fix: add a sensitivity analysis and move unused model parts to a 'future work' remark.
Results not reproducible from released materials
minor · Sec. 5 p.28; Sec. 2.2.1-2.3 pp.11-14
The simulation Snakefile, command lists and plotting configurations are 'to be deposited on Zenodo (DOI to be added upon publication)', and the run-level outputs are not available. The supplement (database composition S2, RPVG initialisation S3, Supp. Table S3 with placement accuracy for all mixtures, summed kallisto S7, single-source empirical runs Fig. S127) was not part of the submission. Burn-in for --iter 100000 is not stated (code default 100). Fix: deposit data and commands with the preprint and pin the commit.
For M76 and E221, where TrailMix disagrees with the original studies on whether a Neanderthal component is present, which result do the authors consider correct, and on what independent evidence (e.g. diagnostic positions)?
Simulated source accessions and their cited sources are as stated
All 7 accessions exist and describe the stated samples (Chagyrskaya8 16569 bp, Denisova21 16571 bp, L2 16568 bp, Bargut_Bt16 16570 bp, T2a1 16569 bp, rCRS 16569 bp, U5a2a 16570 bp); reference titles match the cited works (MT576653.1 carries the pre-publication title of Brown et al. 2022). FJ951517.1 has no haplogroup qualifier; its D4a1d label is not stated in the record, though its closest DB tip is D4a3a at 8 substitutions (check 09), consistent with haplogroup D4.
NCBI efetch GenBank records: definition, length, haplogroup qualifier, reference titles vs the cited works
Implementation details described in the paper match the released code
All 8 described items are implemented as written: six-component lambda mixture with the paper bounds; one source chosen uniformly; N(theta,0.1) truncated + renormalised; per-read clamp log 1e-10; Q50 penalty on s%4==0 positions of unsupported segments; --depth 10; HKY kappa=22; gap probability 0.02. Undocumented in the paper: acceptance clamp [1e-5,0.99999]; a whitelist repair loop that re-moves every source (up to 100,000 times) using the absolute proposed position as displacement, the same pattern fixed as asymmetric in the main move by commit 7474a46; default burn-in 100 with the paper never stating the burn-in used with --iter 100000.
Static regex extraction from vgan HEAD acdc5ad, printing the matching lines
Fig. 4: Denisovan 30% estimated 0.34 [0.24,0.45], 0.33 [0.25,0.41], 0.35 [0.29,0.41], 0.31 [0.28,0.34] at 0.5/1/2/8X; intervals span the truth and narrow with coverage
All four 95% intervals contain 0.30; widths 0.21, 0.16, 0.12, 0.06 decrease close to the 1/sqrt(depth) expectation (0.148, 0.105, 0.052 from the 0.5X width). Medians are all above the truth (+0.01 to +0.05) and at 2X the truth sits at the lower edge (0.29), consistent with the upward bias seen in Fig. 5. Only one mixture of 105 is illustrated.
Containment of 0.30 and width scaling vs 1/sqrt(depth) from the reported numbers
Empirical k=2 posteriors are mirror images (theta2 = 1-theta1) for M76, E251, E256, Ch-3007
All consistent: max deviation 0.010 (M76 upper bound 0.46 vs 1-0.55=0.45, a rounding difference), 0.000 for E251, E256 and Ch-3007; GE-I-B09 1-0.906=0.094 matches ~9%.
Recomputed 1-median and 1-CI endpoints from the reported numbers, tolerance one unit in the last digit
1% Denisova 21 overestimated at 0.41 at 2X, consistent with the Denisova 21 RMSE in Fig. 5E
A single 0.40 error gives RMSE 0.0873 on its own, 88% of the 2X MSE (Fig. 5E 0.093); the other 20 mixtures then have RMSE ~0.033. Text and figure are consistent, and the non-monotone Denisova 21 curve (0.093 at 2X vs 0.026 at 4X) is driven by this single failure.
RMSE contribution of a single 0.40 error over 21 mixtures vs the digitised 2X RMSE (0.093, check 05)
Reference: 126 sequences (64 tips, 62 ancestral), 5,425 nodes, 6,664 edges, 7 archaic (4 Neanderthal, 3 Denisovan), tree with 64 tips and 125 branches
5425 segments, 6664 links, 126 paths (64 tips + 62 ancestral); archaic tips Neanderthal_Hohlenstein/Lescottes/Siberia/Stajnia and Denisova2/20/8; tree 64 leaves, 62 internal nodes, 125 branches (unrooted, root trifurcation). The two unnamed Denisovans in the paper are Denisova 2 and Denisova 8; the paper defers composition to the missing Supp. S2.
Parsed pub.graph.gfa and haps.treefile of the publication database archive linked in the vgan README (files dated 2026-11-06)
D4a1d: 0.1X = 17 reads; 0.05X = fewer than a dozen reads
17 reads at 0.1X imply a mean fragment length of 97.5 bp; at 0.05X this gives 8.5 reads (<12), consistent. Whether ~97 bp matches the ATP2 length distribution (Supp. Fig. S1, not provided) cannot be checked; it is about twice the 49 bp mean of the empirical library M76 (p.23), so simulated fragments may be longer than in typical sediment libraries.
Implied mean fragment length from depth x genome length / reads; consistency of the two statements
No extant program uses MCMC methods for phylogenetic placement
soibean (src/soibean.cpp:820) calls MCMC::run_tree_proportion (MCMC.cpp:543), whose active tree moves (updatePosition at MCMC.cpp:658, 678) sample source positions along tree branches, i.e. MCMC-based phylogenetic placement. The paper itself says its model is adapted from soibean (p.5) and that it follows soibean in using the tree topology to guide sampling of placements (p.11), referring to soibean supplement S2.3 for the tree moves. The soibean abstract does not use the word MCMC, but the novelty claim on p.3 contradicts the paper own description of its predecessor (and pplacer [26] already provides Bayesian posterior placement probabilities).
Static code check of the soibean subcommand in vgan; soibean abstract via Europe PMC; text search of the paper
References exist and support the statements they are cited for
All 49 references resolve to existing works (2 fuzzy title mismatches: [9] a web page, [12] matched to the PGGB preprint). One misplaced citation: [1] (rCRS, Andrews 1999) cited for mixEMT lacking a k hyperparameter. [45] soibean contradicts the novelty claim on p.3 (see check 17). [20] AdDeam is a damage-profile estimation tool, consistent with its use for bam2prof damage rates. Details in work/ref_issues.json.
tools/check_refs.py on all 49 references (Crossref/arXiv), fuzzy title comparison and citation-context extraction (18_refs.py); Europe PMC abstract of AdDeam [20]
Theta proposal (each component ~ N(Theta_i,0.1) truncated to [0,1], then renormalised) is symmetric, so no Hastings correction is needed
Proposal is not symmetric near the simplex boundary: q(0.05|0.01)=6.97 vs q(0.01|0.05)=4.87 (ratio 1.43); q(0.10|0.01)/q(0.01|0.10)=1.96; q(0.15|0.05)/q(0.05|0.15)=1.74; near 0.5 ratio 0.98-0.99. Without a Hastings term the chain is pushed away from small proportions, i.e. exactly where the 1-5% mixtures sit.
Exact proposal density for k=2 by change of variables + quadrature (normalisation 1.000000), cross-checked by 4e6-draw Monte Carlo (agreement within ~1.3 SE); compared q(b|a) with q(a|b)
With the paper Theta proposal and no Hastings term the sampler targets the posterior; the reported upward bias of small proportions is a data/model effect
Stationary distribution differs from the posterior, but the effect is small: posterior mean 0.0196 vs sampler 0.0214 (+9%) for x=1/n=100; +2.4% (n=400), +1.0% (n=1000), +3.7% for 5% truth (n=200), +0.5% for 30%. With no data the 90% interval is [0.085,0.915] instead of [0.05,0.95] (mass pushed off the simplex edges). The sampler is formally invalid, but this mechanism shifts small proportions by ~0.002 in absolute terms and cannot by itself explain the reported 1% -> 0.04-0.10 overestimation (toy only; real likelihood not reproduced).
k=2 toy with perfectly diagnostic fragments and flat prior (exact posterior Beta(x+1,n-x+1)); exact stationary distribution of the MH kernel on a 500-cell grid plus literal simulation of the code algorithm (4000 chains x 3000 iterations, seed 7)
The sampler is standard Metropolis-Hastings with acceptance min(1, ratio)
Code clamps acceptance to [1e-5, 0.99999] (MCMC.cpp:1955-1956, present since commit 65b2bff, 2026-10-01); the paper does not mention it. In the toy, mass at placements >=3 branches from the mode is floored at 9.6e-5 regardless of how bad they are (exact 1.8e-26 at 20 log-units/branch), i.e. ~0.04 accepted wild jumps per 10,000-iteration chain. Detail balance is broken, but the practical effect on reported summaries is small (order 1e-4 of iterations); it should be documented or removed.
Static extraction of the acceptance code and search of the paper text; exact stationary distribution of a 125-state toy with the paper lambda-mixture random walk, with and without the clamp
Published results were generated with the corrected sampler and likelihood (code version identifiable)
The paper gives only the development version of 3.1.0 built against vg v1.75, which matches any commit from 2026-10-01 to 2026-11-21. Inside that window, commits 1518c4f (2026-11-02) and 7474a46 (2026-11-03) fixed: HKY kappa = 1/22 integer division = 0 (transitions less likely than transversions, contrary to p.9); wrong alignment/damage indexing; an asymmetric tree move (the chain did not target the posterior); srand reseeded every iteration; summary statistics over accepted states only; k>=3 sampling the prior. The graph size (5,425/6,664) and stem names (Node45/Node47, p.23) in the paper match the database rebuilt on 2026-11-06, after the fixes, which suggests the Methods text and empirical figures used post-fix builds. The database README says an earlier manuscript draft reported the previous graph (5,513/6,753), and the only documented rerun on the rebuilt database is a 3-sample functional test. Whether the 735 simulation runs were regenerated after the fixes cannot be determined.
git history of github.com/grenaud/vgan (dates of tags, vg-1.75 port, TrailMix fix commits); file dates, README_rebuilt.md and node names of the publication database archive
Pooled RMSE: TrailMix 0.15 (0.5X) -> 0.10 (32X), RPVG 0.14-0.17, kallisto 0.21 -> 0.14; TrailMix most accurate at every depth; exceptions only T2a1 (kallisto, >=2X) and D4a1d (2X, 32X)
Pooled values confirmed: recomputed pooled curves match the pooled panel within 0.0013; TrailMix 0.152 -> 0.096, RPVG 0.137-0.168, kallisto 0.210 -> 0.133 (text 0.14; 0.133 within digitisation tolerance of rounding). TrailMix is best in the pooled panel at all 7 depths. The kallisto exceptions in the text are confirmed (T2a1 2-32X; D4a1d 2X and 32X). The list of exceptions is incomplete, though: TrailMix is also worse than its own RPVG initialisation for T2a1 at every depth >=2X (e.g. 0.199-0.201 vs 0.147-0.148 at 4-8X), for D4a1d at 2X (0.156 vs 0.110), 8X, 32X (and marginally 16X), for L2 at 0.5X (0.220 vs 0.185) and marginally Denisova 21 at 8X (0.054 vs 0.048). Two hidden TrailMix points (L2 1X, D4a1d 16X) were estimated from line segments.
Automatic digitisation of Fig. 5E at 400 dpi (pixel colour per series at each x tick; y calibrated on grid lines, max calibration residual 0.0004); pooled RMSE recomputed as sqrt(mean of per-source MSE); cellwise comparison with tolerance 0.005
Chagyrskaya 8 mixtures: RMSE 0.056 (1X), 0.032 (4X), 0.027 (8X, 16X); 1% minor estimated 0.10/0.06/0.05/0.04; 90% CIs contain truth in 14/21 (1X) and 9/21 (16X)
RMSE recomputed from the dots: 0.0562, 0.0317, 0.0274, 0.0268 vs 0.056, 0.032, 0.027, 0.027 (tol 0.004); mean bias +0.037, +0.021, +0.018, +0.018 (text: 0.02-0.04). 1% Chagyrskaya 8 points: 0.103, ~0.06, 0.046, 0.039 (text 0.10/0.06/0.05/0.04). However the other 1% minor (99% Chagyrskaya 8, i.e. 1% U5a2a) is estimated at 0.087, ~0.06, 0.071, 0.066, worse than the quoted values at 8X and 16X, and its 16X interval excludes 0.01. Coverage counts could only be bounded (overlapping bars merge): <=15/21 at 1X and <=12/21 at 16X, consistent with 14/21 and 9/21. Against nominal 0.90, 14/21 gives p=3.3e-3 and 9/21 gives p=1.2e-7 (exact binomial): the intervals are significantly miscalibrated, worsening with depth.
Automatic digitisation of the 21 posterior-mean dots and interval bars per panel (axes calibrated on tick marks), RMSE recomputed; exact binomial tests of coverage counts vs nominal 0.90
Design denominators: 735 mixtures; 14 archaic samples at 1-5%; 112 modern samples at 1-5%; 132 modern+modern at >=4X with minor >=25%; 93-100% and 27% attainable
735 mixtures; 14 per archaic source at 1-5%; 112 modern minor 1-5% (28 U5a2a in archaic series + 84 in modern series); 132 modern+modern at >=4X with minor >=25%; 55 mixtures per depth with minor >=25% -> 93% = 51/55, 27% = 15/55; 27% of 441 modern+modern = 117-121. All consistent. Note the 2X figure means only 15 of 55 two-source samples were both placed correctly.
Enumerated the 5 sources x 21 proportions (1,5,...,95,99) x 7 depths grid and recomputed each denominator; checked integer attainability of percentages
On empirical sediment libraries (Zavala 2021; Vernot 2021) TrailMix largely concords with the original findings
Archaic component(s) concordant in 7/9 libraries (4/6 Zavala, 3/3 Vernot); identical contributor sets only 4/9. The two discordances (M76: Neanderthal -> Denisovan stem 0.61; E221: Neanderthal+Denisovan -> Denisovan+modern) both concern whether a Neanderthal is present, the core question for such samples. All three Vernot libraries acquire a 7-9% modern component not in the original assignment, and E221 a modern one, under k=2 imposed for every library. Literature search supports HST-related mtDNA at Estatuas (consistent with the GE-I-A4 placement). "Largely concords" is defensible at the 7/9 level but the discordances deserve more weight.
Tabulated original vs TrailMix assignment for all 9 libraries from the paper text; classified concordance of archaic components and of contributor sets; literature search on Vernot et al. 2021 Estatuas mtDNA
Closest reference relatives: Les Cottes, Denisova 20, L2a1d, D4a3a, T1a1a1; Chagyrskaya 8 differs from Les Cottes at 34 and from the Les Cottes/Denisova 17 ancestor at 23 substitutions; none of the five in the reference
Closest tips exactly as claimed for all five (Chag8 -> Les Cottes 34 subs; Den21 -> Denisova20 4 subs; L2 -> L2a1d 37; D4a1d -> D4a3a 8; T2a1 -> T1a1a1 18). Chag8 vs Node49 (Les Cottes/Neanderthal_Siberia ancestor) = 23 substitutions, exactly as claimed. None of the simulated genomes is identical to a tip. Note: Denisova 21 is only 4 substitutions from Denisova 20 (and identical to Denisova 19, which is not in the database), so the held-out Denisovan test is much easier than the Neanderthal one.
Spelled all 126 paths of the publication database (pub.graph.gfa from the vgan README link); fetched simulated mitogenomes from NCBI; edlib global alignment vs all 64 tips and the ancestor node
1
k=2
k=3
k=2
k
Report interval coverage for all five sources and seven depths (e.g. a table), not only for Chagyrskaya 8 at two depths.
Revise the 1-2X recommendation, the 1X three-way-deconvolution sentence (p.4), the 'proportions correctly estimated' sentence for 1-5% archaic sources (p.27) and the 'no MCMC placement' novelty claim (p.3) to match the results.
Add a per-source table of RMSE for TrailMix, RPVG and kallisto, and discuss cases where MCMC refinement worsens the RPVG initialisation (T2a1, D4a1d, L2).
Run a sensitivity analysis on the every-fourth-base Q50 penalty, the log 1e-10 fragment floor and the 0.02 indel probability.
Deposit the simulation Snakefile, command lists, raw TrailMix outputs and the supplement alongside the preprint; fix reference [1] in the mixEMT sentence and complete reference [12].