Debian Codegraph @

examples/Calibrations/test_5t_1c_unif.xml

raw symbols SCIP
1 <?xml version="1.0" standalone="yes"?>
2 <!-- Test calibration implementation: 5 taxa - prior on parent of a single taxon, 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 </taxa>
11
12 <taxa id="cal">
13 <taxon idref="a"/>
14 </taxa>
15
16 <yuleModel id="yule" units="substitutions">
17 <birthRate>
18 <parameter id="yule.birthRate" value="1.0" lower="0.1" upper="10.0"/>
19 </birthRate>
20 </yuleModel>
21
22 <treeModel id="tree">
23 <newick>
24 (((a:5,b:5):1,(c:5,d:5):1):1,e:7)
25 </newick>
26 <rootHeight>
27 <parameter id="tree.rootHeight"/>
28 </rootHeight>
29 <nodeHeights rootNode="false" internalNodes="true">
30 <parameter id="tree.internalNodeHeights"/>
31 </nodeHeights>
32 <nodeHeights rootNode="true" internalNodes="true">
33 <parameter id="tree.allNodeHeights"/>
34 </nodeHeights>
35 </treeModel>
36
37 <speciationLikelihood id="speciation">
38 <model>
39 <yuleModel idref="yule"/>
40 </model>
41 <speciesTree>
42 <treeModel idref="tree"/>
43 </speciesTree>
44 <calibration>
45 <uniformDistributionModel>
46 <lower>4</lower>
47 <upper>7</upper>
48 </uniformDistributionModel>
49 <taxa idref="cal"/>
50 </calibration>
51 </speciationLikelihood>
52
53 <tmrcaStatistic id="tmrca(a)" forParent="true">
54 <treeModel idref="tree"/>
55 <mrca>
56 <taxa idref="cal"/>
57 </mrca>
58 </tmrcaStatistic>
59
60 <mcmc id="mcmc" chainLength="10000000" minOpsFullEvaluations="0" fullEvaluation="0">
61 <posterior>
62 <prior>
63 <speciationLikelihood idref="speciation"/>
64 </prior>
65 </posterior>
66
67 <log id="screen" logEvery="100000">
68 <column dp="4">
69 <speciationLikelihood idref="speciation"/>
70 <parameter idref="tree.rootHeight"/>
71 </column>
72 </log>
73
74 <log id="log" logEvery="100" fileName="test_5t_1c_unif.log">
75 <speciationLikelihood idref="speciation"/>
76 <parameter idref="tree.rootHeight"/>
77 <statistic idref="tmrca(a)"/>
78 <parameter idref="yule.birthRate"/>
79 </log>
80
81 <logTree id="logTree" logEvery="100" nexusFormat="true" fileName="test_5t_1c_unif.trees">
82 <treeModel idref="tree"/>
83 </logTree>
84
85 <operators>
86 <subtreeSlide weight="1" gaussian="true" size="3">
87 <treeModel idref="tree"/>
88 </subtreeSlide>
89
90 <scaleOperator scaleFactor="0.75" weight="1">
91 <parameter idref="yule.birthRate"/>
92 </scaleOperator>
93 </operators>
94 </mcmc>
95
96 <traceAnalysis fileName="test_5t_1c_unif.log" burnIn="1000">
97 <expectation name="tmrca(a)" value="5.5"/>
98 </traceAnalysis>
99
100 </beast>