Debian Codegraph @

examples/TestXML/TreePriors/testYuleModel_10taxa.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!-- $Id: testCoalescent.xml,v 1.2 2005/07/11 23:22:40 rambaut Exp $ -->
3 <!-- Tests the coalescent prior -->
4
5 <beast>
6
7 <taxa id="taxa1">
8 <taxon id="A"/>
9 <taxon id="B"/>
10 <taxon id="C"/>
11 <taxon id="D"/>
12 <taxon id="E"/>
13 <taxon id="F"/>
14 <taxon id="G"/>
15 <taxon id="H"/>
16 <taxon id="I"/>
17 <taxon id="J"/>
18 </taxa>
19
20 <!-- create a demographic model and intialize currentPopulationSize parameter -->
21 <constantSize id="demo1" units="years">
22 <populationSize>
23 <parameter id="demo1.pop1" value="10.0"/>
24 </populationSize>
25 </constantSize>
26
27 <!-- simulate a coalescent tree -->
28 <coalescentTree id="tree1">
29 <demographicModel idref="demo1"/>
30 <taxa idref="taxa1"/>
31 </coalescentTree>
32
33 <!-- A prior on the distribution node heights defined given -->
34 <!-- a Yule speciation process (a pure birth process). -->
35 <yuleModel id="yule" units="substitutions">
36 <birthRate>
37 <parameter id="yule.birthRate" value="2.0" lower="0.0" upper="100.0"/>
38 </birthRate>
39 </yuleModel>
40
41 <treeModel id="treeModel1">
42 <tree idref="tree1"/>
43 <rootHeight>
44 <parameter id="treeModel1.rootHeight"/>
45 </rootHeight>
46 <nodeHeights rootNode="false" internalNodes="true">
47 <parameter id="treeModel1.internalNodeHeights"/>
48 </nodeHeights>
49 <nodeHeights rootNode="true" internalNodes="true">
50 <parameter id="treeModel1.allNodeHeights"/>
51 </nodeHeights>
52 </treeModel>
53
54 <speciationLikelihood id="speciation">
55 <model>
56 <yuleModel idref="yule"/>
57 </model>
58 <speciesTree>
59 <treeModel idref="treeModel1"/>
60 </speciesTree>
61 </speciationLikelihood>
62
63 <treeLengthStatistic name="TL" id="TL">
64 <treeModel idref="treeModel1"/>
65 </treeLengthStatistic>
66
67 <mcmc id="mcmc1" chainLength="2000000" verbose="false">
68 <speciationLikelihood idref="speciation"/>
69 <log id="logScreen2" logEvery="20000">
70 <column dp="4">
71 <likelihood idref="speciation"/>
72 <parameter idref="treeModel1.rootHeight"/>
73 <treeLengthStatistic idref="TL"/>
74 </column>
75 </log>
76 <log id="log1" logEvery="10" fileName="yulePrior10taxa.log">
77 <likelihood idref="speciation"/>
78 <parameter idref="treeModel1.rootHeight"/>
79 <treeLengthStatistic idref="TL"/>
80 </log>
81 <logTree id="logTree1" logEvery="100" nexusFormat="true"
82 fileName="yulePrior10taxa.trees">
83 <treeModel idref="treeModel1"/>
84 </logTree>
85 <operators>
86 <subtreeSlide weight="1" gaussian="true" size="1">
87 <treeModel idref="treeModel1"/>
88 </subtreeSlide>
89 </operators>
90 </mcmc>
91
92 <report>
93 Time taken:
94 <property name="timer">
95 <mcmc idref="mcmc1"/>
96 </property>
97 </report>
98
99 <traceAnalysis fileName="yulePrior10taxa.log" burnIn="1000">
100 <!-- expectation of root height for 10 tips and lambda = 2 -->
101 <expectation name="treeModel1.rootHeight" value="0.964484127"/>
102 <!-- expectation of tree length for 10 tips and lambda = 2 -->
103 <expectation name="TL" value="4.5"/>
104 </traceAnalysis>
105
106 </beast>
107
108