Debian Codegraph @

examples/TestXML/testPosteriorIBD.xml

raw symbols SCIP
1 <?xml version="1.0" standalone="yes"?>
2 <!-- $Id: testML.xml,v 1.2 2005/07/11 23:22:40 rambaut Exp $ -->
3 <!-- Tests the ML engine -->
4
5 <beast>
6
7 <!-- The list of taxa analyse (can also include dates/ages). -->
8 <!-- ntax=6 -->
9 <taxa id="taxa">
10 <taxon id="human"/>
11 <taxon id="chimp"/>
12 <taxon id="mouse"/>
13 </taxa>
14
15 <alignment id="alignment1" dataType="nucleotide">
16 <sequence>
17 <taxon idref="human"/>
18 AAAACCCCGGGG
19 </sequence>
20 <sequence>
21 <taxon idref="chimp"/>
22 AAAGGCCCGGTG
23 </sequence>
24 <sequence>
25 <taxon idref="mouse"/>
26 ATAGTGCCTTTG
27 </sequence>
28 </alignment>
29
30 <patterns id="patterns1" from="1">
31 <alignment idref="alignment1"/>
32 </patterns>
33
34 <constantSize id="initialDemo" units="substitutions">
35 <populationSize>
36 <parameter id="initialDemo.popSize" value="0.0001"/>
37 </populationSize>
38 </constantSize>
39
40 <!-- Generate a random starting tree under the coalescent process -->
41 <coalescentTree id="startingTree">
42 <taxa idref="taxa"/>
43 <constantSize idref="initialDemo"/>
44 </coalescentTree>
45
46 <newick id="shortTree"> <!-- rescaleHeight="0.1"> -->
47 ((human:1.0,chimp:1.0):1.0,mouse:2.0);
48 </newick>
49
50 <treeModel id="treeModel">
51 <!-- <coalescentTree idref="startingTree"/> -->
52 <tree idref="shortTree"/>
53 <rootHeight>
54 <parameter id="treeModel.rootHeight"/>
55 </rootHeight>
56 <nodeHeights internalNodes="true">
57 <parameter id="treeModel.internalNodeHeights"/>
58 </nodeHeights>
59 <nodeHeights internalNodes="true" rootNode="true">
60 <parameter id="treeModel.allInternalNodeHeights"/>
61 </nodeHeights>
62 </treeModel>
63
64 <!-- The HKY substitution model (Hasegawa, Kishino & Yano, 1985) -->
65 <hkyModel id="hky">
66 <frequencies>
67 <frequencyModel dataType="nucleotide">
68 <!--<alignment idref="alignment"/>-->
69 <frequencies>
70 <parameter id="hky.frequencies" value="0.1 0.3 0.2 0.4"/>
71 </frequencies>
72 </frequencyModel>
73 </frequencies>
74 <kappa>
75 <parameter id="hky.kappa" value="1.0" lower="0.0" upper="5.0"/>
76 </kappa>
77 </hkyModel>
78 <!-- site model -->
79 <siteModel id="siteModel">
80 <substitutionModel>
81 <hkyModel idref="hky"/>
82 </substitutionModel>
83 <mutationRate>
84 <parameter id="siteModel.mu" value="1.0" lower="0.0"/>
85 </mutationRate>
86 </siteModel>
87
88
89 <nodePosteriorLikelihood id="treeLikelihood1">
90 <patterns idref="patterns1"/>
91 <treeModel idref="treeModel"/>
92 <siteModel idref="siteModel"/>
93 <hkyModel idref="hky"/>
94 </nodePosteriorLikelihood>
95
96 <yuleModel id="yule" units="substitutions">
97 <birthRate>
98 <parameter id="yule.birthRate" value="1.0" lower="0.0"
99 upper="1000000.0"/>
100 </birthRate>
101 </yuleModel>
102
103 <speciationLikelihood id="speciation">
104 <model>
105 <yuleModel idref="yule"/>
106 </model>
107 <speciesTree>
108 <treeModel idref="treeModel"/>
109 </speciesTree>
110 </speciationLikelihood>
111
112
113 <operators id="operators">
114 <scaleOperator scaleFactor="0.5" weight="1">
115 <parameter idref="hky.kappa"/>
116 </scaleOperator>
117 <!-- <scaleOperator scaleFactor="0.5" weight="1">
118 <parameter idref="treeModel.rootHeight"/>
119 </scaleOperator> -->
120 <scaleOperator scaleFactor="0.75" weight="1">
121 <parameter idref="yule.birthRate"/>
122 </scaleOperator>
123 <uniformOperator weight="10">
124 <parameter idref="treeModel.internalNodeHeights"/>
125 </uniformOperator>
126 <subtreeSlide weight="5" gaussian="true" size="1.0">
127 <treeModel idref="treeModel"/>
128 </subtreeSlide>
129 <narrowExchange weight="1">
130 <treeModel idref="treeModel"/>
131 </narrowExchange>
132 <wideExchange weight="1">
133 <treeModel idref="treeModel"/>
134 </wideExchange>
135 <wilsonBalding weight="1">
136 <treeModel idref="treeModel"/>
137 </wilsonBalding>
138 </operators>
139
140 <mcmc id="mcmc" chainLength="3000000">
141 <posterior id="posterior">
142 <likelihood id="likelihood">
143 <treeLikelihood idref="treeLikelihood1"/>
144 </likelihood>
145 <prior id="priors">
146 <speciationLikelihood idref="speciation"/>
147 <jeffreysPrior>
148 <parameter idref="yule.birthRate"/>
149 </jeffreysPrior>
150 <jeffreysPrior>
151 <parameter idref="hky.kappa"/>
152 </jeffreysPrior>
153 </prior>
154 </posterior>
155 <operators idref="operators"/>
156 <log logEvery="100000">
157 <column label="Posterior" dp="4" width="12">
158 <likelihood idref="posterior"/>
159 </column>
160 <column label="Likelihood" dp="4" width="12">
161 <likelihood idref="likelihood"/>
162 </column>
163 <column label="Prior" dp="4" width="12">
164 <prior idref="priors"/>
165 </column>
166 <column label="Root Height" sf="6" width="12">
167 <parameter idref="treeModel.rootHeight"/>
168 </column>
169 <column label="Kappa" sf="6" width="12">
170 <parameter idref="hky.kappa"/>
171 </column>
172 <column label="MutationRate" sf="6" width="12">
173 <parameter idref="siteModel.mu"/>
174 </column>
175 </log>
176 <logTree logEvery="100000" nexusFormat="true" fileName="ancestor.trees">
177 <treeModel idref="treeModel"/>
178 <!-- <nodePosteriorLikelihood idref="treeLikelihood1"/> -->
179 <avgPosteriorIBDReporter id="posteriorIBD">
180 <nodePosteriorLikelihood idref="treeLikelihood1"/>
181 <treeModel idref="treeModel"/>
182 <parameter idref="siteModel.mu"/>
183 <hkyModel idref="hky"/>
184 </avgPosteriorIBDReporter>
185 </logTree>
186 </mcmc>
187
188 <report>
189 <property name="timer">
190 <object idref="mcmc"/>
191 </property>
192 </report>
193
194 </beast>