Debian Codegraph @

examples/Calibrations/test_7t_2c_4c_unif.xml

raw symbols SCIP
1 <?xml version="1.0" standalone="yes"?>
2 <!-- Test calibration implementation: 5 taxa - prior on root, uniform prior -->
3 <beast>
4 <taxa id="taxa">
5 <taxon id="a"/>
6 <taxon id="b"/>
7 <taxon id="c"/>
8 <taxon id="d"/>
9 <taxon id="e"/>
10 <taxon id="f"/>
11 <taxon id="g"/>
12 </taxa>
13
14 <taxa id="cal1">
15 <taxon idref="a"/>
16 <taxon idref="b"/>
17 </taxa>
18
19 <taxa id="cal2">
20 <taxon idref="a"/>
21 <taxon idref="b"/>
22 <taxon idref="c"/>
23 <taxon idref="d"/>
24 </taxa>
25
26 <yuleModel id="yule" units="substitutions">
27 <birthRate>
28 <parameter id="yule.birthRate" value="1.0" lower="0.1" upper="10.0"/>
29 </birthRate>
30 </yuleModel>
31
32 <treeModel id="tree">
33 <newick>
34 ((((((a:2.5,b:2.5):2.5,c:5):1,d:6):1,e:7):1,f:8):1,g:9)
35 </newick>
36 <rootHeight>
37 <parameter id="tree.rootHeight"/>
38 </rootHeight>
39 <nodeHeights rootNode="false" internalNodes="true">
40 <parameter id="tree.internalNodeHeights"/>
41 </nodeHeights>
42 <nodeHeights rootNode="true" internalNodes="true">
43 <parameter id="tree.allNodeHeights"/>
44 </nodeHeights>
45 </treeModel>
46
47 <speciationLikelihood id="speciation">
48 <model>
49 <yuleModel idref="yule"/>
50 </model>
51 <speciesTree>
52 <treeModel idref="tree"/>
53 </speciesTree>
54 <calibration>
55 <point>
56 <uniformDistributionModel>
57 <lower>2</lower>
58 <upper>3</upper>
59 </uniformDistributionModel>
60 <taxa idref="cal1"/>
61 </point>
62 <point>
63 <uniformDistributionModel>
64 <lower>5.5</lower>
65 <upper>6.5</upper>
66 </uniformDistributionModel>
67 <taxa idref="cal2"/>
68 </point>
69 </calibration>
70 </speciationLikelihood>
71
72 <tmrcaStatistic id="tmrca(ab)">
73 <treeModel idref="tree"/>
74 <mrca>
75 <taxa idref="cal1"/>
76 </mrca>
77 </tmrcaStatistic>
78
79 <tmrcaStatistic id="tmrca(abcd)">
80 <treeModel idref="tree"/>
81 <mrca>
82 <taxa idref="cal2"/>
83 </mrca>
84 </tmrcaStatistic>
85
86 <mcmc id="mcmc" chainLength="10000000" minOpsFullEvaluations="0" fullEvaluation="0" autoOptimize="true">
87 <posterior>
88 <prior>
89 <speciationLikelihood idref="speciation"/>
90 </prior>
91 </posterior>
92
93 <log id="screen" logEvery="100000">
94 <column dp="4">
95 <speciationLikelihood idref="speciation"/>
96 <parameter idref="tree.rootHeight"/>
97 </column>
98 </log>
99
100 <log id="log" logEvery="100" fileName="test_7t_2c_4c_unif.log">
101 <speciationLikelihood idref="speciation"/>
102 <parameter idref="tree.rootHeight"/>
103 <statistic idref="tmrca(ab)"/>
104 <statistic idref="tmrca(abcd)"/>
105 <!-- <parameter idref="yule.birthRate"/> -->
106 </log>
107
108 <logTree id="logTree" logEvery="100" nexusFormat="true" fileName="test_7t_2c_4c_unif.trees">
109 <treeModel idref="tree"/>
110 </logTree>
111
112 <operators>
113 <subtreeSlide weight="1" gaussian="true" size="3">
114 <treeModel idref="tree"/>
115 </subtreeSlide>
116
117 <!-- <scaleOperator scaleFactor="0.75" weight="1"> -->
118 <!-- <parameter idref="yule.birthRate"/> -->
119 <!-- </scaleOperator> -->
120 </operators>
121 </mcmc>
122
123 <traceAnalysis fileName="test_7t_2c_4c_unif.log" burnIn="1000">
124 <expectation name="tmrca(ab)" value="2.5"/>
125 <expectation name="tmrca(abcd)" value="6"/>
126 </traceAnalysis>
127
128 </beast>