ARGweaver-D is an extension of ARGweaver that allows ARGs to be sampled conditional on a user-defined demographic model that includes population splits and migration events. The ARGweaver-D code is built into the ARGweaver software base, and only requires extra options to the command-line programs to invoke. It is recommended that you first familiarize yourself with basic ARGweaver usage before reading this manual. However, note that ARGweaver-D has only been added to the C++ component of the ARGweaver codebase, and has not been incorporated into ARGweaver's python library.
Demography-aware ARGs can be sampled with the command arg-sample. Here, we document the options specific to ARGweaver-D:
npop 5 ## Neanderthal(1)/Denisova(2) div at 415kya div 14310 2 1 ## Archaic(1)/African(0) div at 575kya div 19827 1 0 ## Super-archaic(3)/Hominin(0) div at 1.0mya div 34483 3 0 ## Hominin(0)/Chimp(4) div at 11Mya div 379310 4 0 ## Afr-Nea migration @ 250kya mig 8621 1 0 0.01 mig 8621 2 0 0.01 ## Super-archaic migrations @ 250kya mig 8621 0 3 0.01 mig 8621 1 3 0.01 mig 8621 2 3 0.01
chimp 4 Mandenka_2F 0 Khomani_San_1F 0 Vindija 1 Altai 1 Denisova 2
hToN 1 0 8621 hToD 2 0 8621 sToH 0 3 8621 sToN 1 3 8621 sToD 2 3 8621
A slight variant of this option is --hap-mig-file, which takes a slightly different intput file, described below:
hToN.alt_1 1 0 8621 Altai_1 hToN.alt_2 1 0 8621 Altai_2 hToN.vin_1 1 0 8621 Vindija_1 hToN.vin_2 1 0 8621 Vindija_2 hToD.den_1 2 0 8621 Denisova_1 hToD.den_2 2 0 8621 Denisova_2 sToA.afr1_1 0 3 8621 Khomani_San_1F_1 sToA.afr1_2 0 3 8621 Khomani_San_1F_2 sToA.afr2_1 0 3 8621 Mandenka_2F_1 sToA.afr2_2 0 3 8621 Mandenka_2F_2 sToN.alt_1 1 3 8621 Altai_1 sToN.alt_2 1 3 8621 Altai_2 sToN.vin_1 1 3 8621 Vindija_1 sToN.vin_2 1 3 8621 Vindija_2 sToD.den_1 2 3 8621 Denisova_1 sToD.den_2 2 3 8621 Denisova_2