Debian Codegraph @

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