Debian Codegraph @

examples/Calibrations/test_5t_2c_e2.xml

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