-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmixture.txt
32 lines (22 loc) · 1.18 KB
/
admixture.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
admixtureGeneration = gen(15,2); # this is the generation of the admixture event
admixtureGenPlus1 = gen(admixtureGeneration,1);
nodeEuToAA = node(admixtureGeneration);
nodeAfToAA = node(admixtureGeneration);
nodeAA = node(admixtureGeneration);
sizeEuAtAdmixture = size(100000,1);
sizeAfAtAdmixture = size(70000,1);
ancestralSizeAA = size(10000,2);
EuropeansPostAdmixture = edge(node(G0), nodeEuToAA, size(1000000), size(98000,1));
AfricansPostAdmixture = edge(node(G0), nodeAfToAA, size(700000,1), size(62000,1));
AfricanAmericans = edge(node(G0), nodeAA, size(1000000,2), ancestralSizeAA);
migrationBranchEU = edge(nodeAA, nodeEuToAA, size(2000,2));
migrationBranchAf = edge(nodeAA, nodeAfToAA, size(8000,2));
nodeSplitAfEU = node(gen(400,1));
ancientBranchEU = edge(nodeEuToAA, nodeSplitAfEU, sizeEuAtAdmixture, size(50000,1));
ancientBranchAf = edge(nodeAfToAA, nodeSplitAfEU, sizeAfAtAdmixture, size(50000,1));
nodeAncestralAll = node(gen(600));
ancestralSize = size(10000);
edge(nodeSplitAfEU, nodeAncestralAll, size(100000,1), ancestralSize);
edge(nodeAncestralAll, node(Ginf), ancestralSize);
rateAf-AA=rate(0.001,1);
migration(EuropeansPostAdmixture, AfricansPostAdmixture, rateAf-AA );