Debian Codegraph @

examples/TestXML/TreePriors/testBirthDeathModel_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 Birth-Death speciation process (Gernhard 2008). -->
35 <birthDeathModel id="birthDeath" units="substitutions">
36 <birthMinusDeathRate>
37 <parameter id="birthDiffRate" value="2.0" lower="0.0" upper="1000000.0"/>
38 </birthMinusDeathRate>
39 <relativeDeathRate>
40 <parameter id="relativeDeathRate" value="0.5" lower="0.0" upper="100.0"/>
41 </relativeDeathRate>
42 </birthDeathModel>
43
44
45 <treeModel id="treeModel1">
46 <tree idref="tree1"/>
47 <rootHeight>
48 <parameter id="treeModel1.rootHeight"/>
49 </rootHeight>
50 <nodeHeights rootNode="false" internalNodes="true">
51 <parameter id="treeModel1.internalNodeHeights"/>
52 </nodeHeights>
53 <nodeHeights rootNode="true" internalNodes="true">
54 <parameter id="treeModel1.allNodeHeights"/>
55 </nodeHeights>
56 </treeModel>
57
58 <speciationLikelihood id="speciation">
59 <model>
60 <yuleModel idref="birthDeath"/>
61 </model>
62 <speciesTree>
63 <treeModel idref="treeModel1"/>
64 </speciesTree>
65 </speciationLikelihood>
66
67 <treeLengthStatistic name="TL" id="TL">
68 <treeModel idref="treeModel1"/>
69 </treeLengthStatistic>
70
71 <mcmc id="mcmc1" chainLength="2000000" verbose="false">
72 <speciationLikelihood idref="speciation"/>
73 <log id="logScreen2" logEvery="20000">
74 <column dp="4">
75 <likelihood idref="speciation"/>
76 <parameter idref="treeModel1.rootHeight"/>
77 <treeLengthStatistic idref="TL"/>
78 </column>
79 </log>
80 <log id="log1" logEvery="10" fileName="birthDeath10taxa.log">
81 <likelihood idref="speciation"/>
82 <parameter idref="treeModel1.rootHeight"/>
83 <treeLengthStatistic idref="TL"/>
84 </log>
85 <logTree id="logTree1" logEvery="100" nexusFormat="true" fileName="birthDeath10taxa.trees">
86 <treeModel idref="treeModel1"/>
87 </logTree>
88 <operators>
89 <subtreeSlide weight="1" gaussian="true" size="1">
90 <treeModel idref="treeModel1"/>
91 </subtreeSlide>
92 </operators>
93 </mcmc>
94
95 <report>
96 Time taken:
97 <property name="timer">
98 <mcmc idref="mcmc1"/>
99 </property>
100 </report>
101
102 <traceAnalysis fileName="birthDeath10taxa.log" burnIn="1000">
103 <!-- expectation of root height for 10 tips and lambda = 2
104 <expectation name="treeModel1.rootHeight" value="0.964484127"/> ? 0.70105 -->
105 <!-- expectation of tree length for 10 tips and lambda = 2
106 <expectation name="TL" value="4.5"/> ? 2.99054 -->
107 </traceAnalysis>
108
109 </beast>
110
111