Mainspring: Threading ARG Inference (with Branch Insertion)

12 samples  |  44 sites  |  Loss: 2.081.28  |  Parent acc: 50% (random: 9%)  |  Trees: 49 true / 39 inf  |  Max depth: 8 true / 8 inf

Threading Diagram

Samples threaded sequentially (like Singer/Threads). Each bar = a copying segment; color = which previous sample it copies from. When a sample threads onto a target that already has a parent, the new node is inserted on the branch — building deep hierarchy.

s1 →0 1 segs, 0 recombs
s2 →0→1→0→1→0→1→0→1→0→1→0→1→0 13 segs, 12 recombs
s3 →0→1→0→1→2→1→0→2→1→2→1 11 segs, 10 recombs
s4 →2→0→3→2→0→3→0→3→1→0→2→0→2→3→1→3→1→3→1→3 20 segs, 19 recombs
s5 →4→0→4→0→4→0→2→0→1→0→4→1→0→1→3→1→3 17 segs, 16 recombs
s6 →4 1 segs, 0 recombs
s7 →0→3→0→3→1→3→1→3→1→3→1→3→2→3 14 segs, 13 recombs
s8 →0→3→0→3→1→3→2→7→2→7→0→7→3→7→1→7→5→2→1→7→1→7 22 segs, 21 recombs
s9 →8→3→8→3→7→3→1→3→1→3 10 segs, 9 recombs
s10 →8→7→8→7→8→1→7→2→3→8→3→8→7→8 14 segs, 13 recombs
s11 →9→7→10→8→10→8→0→8→10→8→0→10→8→6→0→2→0→2→6→2→0→7→2→0→10→8 26 segs, 25 recombs

Full Tree Sequences

TRUE — 49 trees, 67 nodes, depth ≤ 8

Genome position049310551563292039024487467449715549563458377693822384319326944894641027311167113001150711569120701220612430127271301013902154081747617556179921804920230206012117221549218842322023652247002474424923264872776428398288862963130000Time0.00286.77790.101282.931420.041537.171683.771778.541837.482351.202460.452508.502799.492990.533070.483189.073723.204355.124875.115562.705600.745905.666258.988126.928393.388446.128548.899171.049265.899588.6810896.0511311.2811426.1311457.2211852.8712063.9513459.0714264.0214530.4019929.3420931.4823035.7524407.8027512.4429327.5730672.5335955.1535962.5647147.7947884.0649315.4751233.3751321.8551430.18101548.86112784.69546121521110378913141701202232395360111037891314170120223239254612150546011103789131417012022323925461215406011103789131417012022323932546121512440646111037891314170120223239254612155740591110378913141701202232392546129158406511103789131417012022323925461215406611103789131417012022323925461215405711103789131417012022321039461225405257461211103789131417012022323925404357111037891314171223239254043046123357121111103789131417122323921343514046123347575046123347112103789131417122324353575046123347103789131417122322114453575046123347103789131417122153221144536350472161144461210378913141712232435363504710378913141712232114612414325363103789131417122321146124143182175305496305192049103789131417122321146124143221536205491037891314171223211461241432535810378913141712222321154612404143253058010378913141712232115461240414325355103789131417122321154143253046124255389131712271021321154143253046231242550461242389131712271021325211364143550461242538913171227102132211364353550461242511389131712271021322434653550461242511391712271021322838434624535551139172512271021273220827384346285346261255293154612113917122710213220830273843465153546121139171227322081018273843465153461239171227322081018273843515113553461239171227322081018272932435151135533917122337323420810182729434612511353550511922732208101827294346121135243550511135243546122081018272937501922367325111352435461220810182729315019227325135241146123035208101827295019227325120810182729352450114612301922732345111461230192273234352420810182729485119227324612393435372411208101827294538485191111922732461234352420810182729485191111922272532461234354024081018274851272581018419111192226324612343524048512725810189111192242263246123435240486127258101891111922263246123443503234861503234827254612810189111192226283261503234827254612911119228101626283261503234811272546129122810162628325661

INFERRED — 39 trees, 113 nodes, depth ≤ 8

Genome position02494269429093699373144215534595861366658748688409441997610110106811078110936113591220013048139951477314899151261582116026167691801618145201722018420628242122486926032275302800630000Time0.003695.084507.564797.565247.945477.585526.935798.065891.895955.456273.426549.598347.388412.028600.868611.169165.719622.459682.9010289.8810389.6510872.3010902.3711602.5611983.7912299.6712782.5013204.3213413.8513687.6413818.1613994.6514283.7614917.2015022.4315125.2115189.2715265.1915479.3916106.5916872.7417328.1217394.9418260.3819928.0420247.0920427.1721099.4021302.4021887.0922250.6622425.2622434.2722990.6123139.3623301.6123593.7923902.8924773.1125207.2825752.1126025.3626371.4526552.4227071.2227974.3928609.7230332.0634835.1335030.6635638.6236205.3036814.0237182.2037674.0938012.9939394.8239491.4639492.4644208.0446288.1646288.4146819.3347206.9051569.6560574.3262833.9969469.5575785.4881732.3381732.3488761.20104188.11117990.99117991.9912520370810139111497102109110111112469112520308101399710271144109110111112469112520309897102710114380109110111112469112520309108112453971027109110111112469112520309897102710118599109110111112469112520309108111937971027109110111112469112520037551101111124691910811193797011671108725203711011146919897021108710611237884691598114597021101162871061123788469159897021108710611273811298388469159021108778112939278388104106112469152011307111087739278838846915021121101161877392788388469152054711211087739278114683884691205761121108773927811468388469121058111239278114683469171041205811710417811239278114683469105812106913768101112461170918940011218940175210125751123103546911501121381122731035100469189401058211325884112731035910046911057311221132810265837925100469110573469196112211329310728678495011507328424691959619310728675011507329617810517410793864691078105174157710721115938646912111550854791121710281079386469121115507911219386469178108902821938646114891578108902111693865173192107108112469181089201160931559938646917810892056593171166103938646918108902111293571810899410310593864691201123931933359846917810892011239335981127193310346918108920112393152211273936564691810890273493196311235574691810116489029315739173957901124691108111889

Local Tree Comparisons

True (left) vs inferred (right). Trees built by sequential threading with branch insertion — each new sample splits an existing branch, producing proper multi-level coalescent structure.

pos 1006 bp — 50% match (depth 7)

TRUE
1110378913141701202232392546121505460
INFERRED
125203708101391114971021091101111124691
SampTrue→Inf→
018
100
244
370
466
544
644
780
890
988
1008
1109

pos 4863 bp — 50% match (depth 4)

TRUE
111037891314170120223239254612154057
INFERRED
12520037551101111124691910811193797
SampTrue→Inf→
018
108
2410
378
466
544
644
788
899
988
1008
1108

pos 8720 bp — 42% match (depth 6)

TRUE
50461233471037891314171221532211445363
INFERRED
02110877811293927838810410611246915
SampTrue→Inf→
0411
137
21111
379
466
504
644
789
899
983
1011
1120

pos 12577 bp — 33% match (depth 3)

TRUE
046124253891317122710213221136435355
INFERRED
150112138112273103510046918940
SampTrue→Inf→
0411
133
2111
3810
466
5110
644
7103
892
988
1073
1150

pos 16434 bp — 50% match (depth 3)

TRUE
461211139172271021322083027384346512931553
INFERRED
21115508547911217102810739864691
SampTrue→Inf→
082
133
2011
391
466
500
644
71010
8010
933
1078
1102

pos 20291 bp — 67% match (depth 2)

TRUE
352411354612502081018272991227324351
INFERRED
20565931711661033986469181089
SampTrue→Inf→
082
133
200
391
466
51111
644
7110
81010
933
1088
1157

pos 24148 bp — 83% match (depth 4)

TRUE
461291227323934353724112081018272945384851
INFERRED
02111293571810899410310539864691
SampTrue→Inf→
086
199
200
351
466
533
644
711
81010
911
1088
1100

pos 28005 bp — 33% match (depth 3)

TRUE
43503234846122725911119228101826323461
INFERRED
0273493196311253574691810116489
SampTrue→Inf→
032
1113
270
301
466
503
644
723
81010
913
1088
1118