Debian Codegraph @

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