Debian Codegraph @

examples/Calibrations/test_5t_2c_fp_unif.xml

raw symbols SCIP
1 <?xml version="1.0" standalone="yes"?>
2 <!-- Test calibration implementation: 5 taxa - prior on parent of a 2 taxa, 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 </taxa>
16
17 <yuleModel id="yule" units="substitutions">
18 <birthRate>
19 <parameter id="yule.birthRate" value="1.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 forParent="true">
47 <uniformDistributionModel>
48 <lower>4</lower>
49 <upper>7</upper>
50 </uniformDistributionModel>
51 <taxa idref="cal"/>
52 </point>
53 </calibration>
54 </speciationLikelihood>
55
56 <tmrcaStatistic id="tmrca(a)" forParent="true">
57 <treeModel idref="tree"/>
58 <mrca>
59 <taxa idref="cal"/>
60 </mrca>
61 </tmrcaStatistic>
62
63 <mcmc id="mcmc" chainLength="10000000" minOpsFullEvaluations="0" fullEvaluation="0">
64 <posterior>
65 <prior>
66 <speciationLikelihood idref="speciation"/>
67 </prior>
68 </posterior>
69
70 <log id="screen" logEvery="100000">
71 <column dp="4">
72 <speciationLikelihood idref="speciation"/>
73 <parameter idref="tree.rootHeight"/>
74 </column>
75 </log>
76
77 <log id="log" logEvery="100" fileName="test_5t_2c_fp_unif.log">
78 <speciationLikelihood idref="speciation"/>
79 <parameter idref="tree.rootHeight"/>
80 <statistic idref="tmrca(a)"/>
81 <parameter idref="yule.birthRate"/>
82 </log>
83
84 <logTree id="logTree" logEvery="100" nexusFormat="true" fileName="test_5t_2c_fp__unif.trees">
85 <treeModel idref="tree"/>
86 </logTree>
87
88 <operators>
89 <subtreeSlide weight="1" gaussian="true" size="3">
90 <treeModel idref="tree"/>
91 </subtreeSlide>
92
93 <scaleOperator scaleFactor="0.75" weight="1">
94 <parameter idref="yule.birthRate"/>
95 </scaleOperator>
96 </operators>
97 </mcmc>
98
99 <traceAnalysis fileName="test_5t_2c_fp_unif.log" burnIn="1000">
100 <expectation name="tmrca(a)" value="5.5"/>
101 </traceAnalysis>
102
103 </beast>