Debian Codegraph @

examples/TestXML/TreePriors/testYuleOneSite.xml

raw symbols SCIP
1 <?xml version="1.0" standalone="yes"?>
2 <!--
3 ~ testYuleOneSite.xml
4 ~
5 ~ Copyright (C) 2002-2009 Alexei Drummond and Andrew Rambaut
6 ~
7 ~ This file is part of BEAST.
8 ~ See the NOTICE file distributed with this work for additional
9 ~ information regarding copyright ownership and licensing.
10 ~
11 ~ BEAST is free software; you can redistribute it and/or modify
12 ~ it under the terms of the GNU Lesser General Public License as
13 ~ published by the Free Software Foundation; either version 2
14 ~ of the License, or (at your option) any later version.
15 ~
16 ~ BEAST is distributed in the hope that it will be useful,
17 ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ~ GNU Lesser General Public License for more details.
20 ~
21 ~ You should have received a copy of the GNU Lesser General Public
22 ~ License along with BEAST; if not, write to the
23 ~ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
24 ~ Boston, MA 02110-1301 USA
25 -->
26
27 <beast>
28
29 <!-- The list of taxa analyse (can also include dates/ages). -->
30 <!-- ntax=17 -->
31 <taxa id="taxa">
32 <taxon id="A"/>
33 <taxon id="B"/>
34 <taxon id="C"/>
35 <taxon id="D"/>
36 <taxon id="E"/>
37 </taxa>
38
39 <alignment id="alignment" dataType="nucleotide">
40 <sequence>
41 <taxon idref="A"/>
42 A
43 </sequence>
44 <sequence>
45 <taxon idref="B"/>
46 A
47 </sequence>
48 <sequence>
49 <taxon idref="C"/>
50 A
51 </sequence>
52 <sequence>
53 <taxon idref="D"/>
54 A
55 </sequence>
56 <sequence>
57 <taxon idref="E"/>
58 A
59 </sequence>
60 </alignment>
61
62 <!-- The unique patterns for all positions -->
63 <!-- npatterns=138 -->
64 <patterns id="patterns" from="1">
65 <alignment idref="alignment"/>
66 </patterns>
67
68 <!-- A prior assumption that the population size has remained constant -->
69 <!-- throughout the time spanned by the genealogy. -->
70 <constantSize id="constant" units="years">
71 <populationSize>
72 <parameter id="constant.popSize" value="1.0" lower="0.0" upper="38000.0"/>
73 </populationSize>
74 </constantSize>
75
76 <!-- Generate a random starting tree under the coalescent process -->
77 <coalescentTree id="startingTree">
78 <taxa idref="taxa"/>
79 <constantSize idref="constant"/>
80 </coalescentTree>
81
82 <!-- A prior on the distribution node heights defined given -->
83 <!-- a Yule speciation process (a pure birth process). -->
84 <yuleModel id="yule" units="substitutions">
85 <birthRate>
86 <parameter id="yule.birthRate" value="1.0" lower="0.0" upper="100.0"/>
87 </birthRate>
88 </yuleModel>
89
90
91 <treeModel id="treeModel">
92 <coalescentTree idref="startingTree"/>
93 <rootHeight>
94 <parameter id="treeModel.rootHeight"/>
95 </rootHeight>
96 <nodeHeights internalNodes="true">
97 <parameter id="treeModel.internalNodeHeights"/>
98 </nodeHeights>
99 <nodeHeights internalNodes="true" rootNode="true">
100 <parameter id="treeModel.allInternalNodeHeights"/>
101 </nodeHeights>
102 </treeModel>
103
104 <speciationLikelihood id="speciationLikelihood">
105 <model>
106 <yuleModel idref="yule"/>
107 </model>
108 <speciesTree>
109 <treeModel idref="treeModel"/>
110 </speciesTree>
111 </speciationLikelihood>
112
113 <treeLengthStatistic name="TL" id="TL">
114 <treeModel idref="treeModel"/>
115 </treeLengthStatistic>
116
117 <!-- The strict clock (Uniform rates across branches) -->
118 <strictClockBranchRates id="branchRates">
119 <rate>
120 <parameter id="clock.rate" value="1" lower="0.0" upper="100.0"/>
121 </rate>
122 </strictClockBranchRates>
123
124 <!-- The HKY substitution model (Hasegawa, Kishino & Yano, 1985) -->
125 <hkyModel id="hky">
126 <frequencies>
127 <frequencyModel dataType="nucleotide">
128 <frequencies>
129 <parameter id="hky.frequencies" value="0.25 0.25 0.25 0.25"/>
130 </frequencies>
131 </frequencyModel>
132 </frequencies>
133 <kappa>
134 <parameter id="hky.kappa" value="1.0" lower="0.0" upper="100.0"/>
135 </kappa>
136 </hkyModel>
137
138 <!-- site model -->
139 <siteModel id="siteModel">
140 <substitutionModel>
141 <hkyModel idref="hky"/>
142 </substitutionModel>
143 </siteModel>
144
145 <treeLikelihood id="treeLikelihood" useAmbiguities="true">
146 <patterns idref="patterns"/>
147 <treeModel idref="treeModel"/>
148 <siteModel idref="siteModel"/>
149 <strictClockBranchRates idref="branchRates"/>
150 </treeLikelihood>
151
152 <operators id="operators">
153 <scaleOperator scaleFactor="0.75" weight="3">
154 <parameter idref="treeModel.rootHeight"/>
155 </scaleOperator>
156 <uniformOperator weight="30">
157 <parameter idref="treeModel.internalNodeHeights"/>
158 </uniformOperator>
159 <subtreeSlide size="1.0" gaussian="true" weight="15">
160 <treeModel idref="treeModel"/>
161 </subtreeSlide>
162 <narrowExchange weight="15">
163 <treeModel idref="treeModel"/>
164 </narrowExchange>
165 <wideExchange weight="3">
166 <treeModel idref="treeModel"/>
167 </wideExchange>
168 <wilsonBalding weight="3">
169 <treeModel idref="treeModel"/>
170 </wilsonBalding>
171 </operators>
172
173 <mcmc id="mcmc" chainLength="1000000" autoOptimize="true">
174 <posterior id="posterior">
175 <prior id="prior">
176 <speciationLikelihood idref="speciationLikelihood"/>
177 </prior>
178 <likelihood id="likelihood">
179 <treeLikelihood idref="treeLikelihood"/>
180 </likelihood>
181 </posterior>
182 <operators idref="operators"/>
183 <log id="screenLog" logEvery="10000">
184 <column label="Posterior" dp="4" width="12">
185 <posterior idref="posterior"/>
186 </column>
187 <column label="Root Height" sf="6" width="12">
188 <parameter idref="treeModel.rootHeight"/>
189 </column>
190 <column label="L(tree)" dp="4" width="12">
191 <treeLikelihood idref="treeLikelihood"/>
192 </column>
193 <column label="L(coalecent)" dp="4" width="12">
194 <speciationLikelihood idref="speciationLikelihood"/>
195 </column>
196 </log>
197 <log id="fileLog" logEvery="500" fileName="testYuleOneSite.log">
198 <posterior idref="posterior"/>
199 <parameter idref="clock.rate"/>
200 <parameter idref="constant.popSize"/>
201 <parameter idref="hky.kappa"/>
202 <parameter idref="treeModel.rootHeight"/>
203 <treeLikelihood idref="treeLikelihood"/>
204 <speciationLikelihood idref="speciationLikelihood"/>
205 </log>
206 <logTree id="treeFileLog" logEvery="500" nexusFormat="true" fileName="testYuleOneSite.trees">
207 <treeModel idref="treeModel"/>
208 <posterior idref="posterior"/>
209 </logTree>
210 </mcmc>
211
212
213 <report>
214 <property name="timer">
215 <object idref="mcmc"/>
216 </property>
217 </report>
218
219 <traceAnalysis fileName="testYuleOneSite.log"/>
220
221 <treeTraceAnalysis fileName="testYuleOneSite.trees"/>
222
223 <lineageCountThroughTime treeFile="testYuleOneSite.trees" maxTime="4" skip="200"/>
224
225 </beast>