Debian Codegraph @

examples/TestXML/testAscertainment.xml

raw symbols SCIP
1 <?xml version="1.0" standalone="yes"?>
2 <!-- $Id: testMCMC.xml,v 1.2 2005/07/11 23:22:40 rambaut Exp $ -->
3 <!-- Tests the MCMC 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="bonobo"/>
13 <taxon id="gorilla"/>
14 <taxon id="orangutan"/>
15 <taxon id="siamang"/>
16 </taxa>
17
18 <!-- The sequence alignment (each sequence refers to a taxon above). -->
19 <!-- ntax=6 nchar=768 -->
20 <alignment id="alignment" dataType="nucleotide">
21 <sequence>
22 <taxon idref="human"/>
23 ACGTATGTTGACAATGTTGACAATGTTGACAATGTTGACAATGTTGACATTTTT
24 </sequence>
25 <sequence>
26 <taxon idref="chimp"/>
27 ACGTATGTTGCTAATGTTGCTAATGTTGCTAATGTTGCTAATGTTGCTATTTTT
28 </sequence>
29 <sequence>
30 <taxon idref="bonobo"/>
31 ACGTATGTCCCTTATGTCCCTTATGTCCCTTATGTCCCTTATGTCCCTTTTTTT
32 </sequence>
33 <sequence>
34 <taxon idref="gorilla"/>
35 ACGTATGTCCCTTATGTCCCTTATGTCCCTTATGTCCCTTATGTCCCTTTTTTT
36 </sequence>
37 <sequence>
38 <taxon idref="orangutan"/>
39 ACGTTCGTCCCTTTCGTCCCTTTCGTCCCTTTCGTCCCTTTCGTCCCTTTTTTT
40 </sequence>
41 <sequence>
42 <taxon idref="siamang"/>
43 ACGTTTATCCCTTTTATCCCTTTTATCCCTTTTATCCCTTTTATCCCTTCAGCA
44 </sequence>
45 </alignment>
46
47 <!-- The unique patterns for all positions -->
48 -->
49 <ascertainedPatterns id="patterns" from="5">
50 <alignment idref="alignment"/>
51 <!-- all constant sites (1 through 4) are excluded from the dataset -->
52 <excludePatterns from="1" to="1"/>
53 </ascertainedPatterns>
54
55 <!-- This is a simple constant population size coalescent model -->
56 <!-- that is used to generate an initial tree for the chain. -->
57 <constantSize id="initialDemo" units="substitutions">
58 <populationSize>
59 <parameter id="initialDemo.popSize" value="0.0001"/>
60 </populationSize>
61 </constantSize>
62
63 <!-- Generate a random starting tree under the coalescent process -->
64 <coalescentTree id="startingTree">
65 <taxa idref="taxa"/>
66 <constantSize idref="initialDemo"/>
67 </coalescentTree>
68
69 <treeModel id="treeModel">
70 <coalescentTree idref="startingTree"/>
71 <rootHeight>
72 <parameter id="treeModel.rootHeight"/>
73 </rootHeight>
74 <nodeHeights internalNodes="true">
75 <parameter id="treeModel.internalNodeHeights"/>
76 </nodeHeights>
77 <nodeHeights internalNodes="true" rootNode="true">
78 <parameter id="treeModel.allInternalNodeHeights"/>
79 </nodeHeights>
80 </treeModel>
81
82 <!-- The HKY substitution model (Hasegawa, Kishino & Yano, 1985) -->
83 <hkyModel id="hky">
84 <frequencies>
85 <frequencyModel dataType="nucleotide">
86 <alignment idref="alignment"/>
87 <frequencies>
88 <parameter id="hky.frequencies" dimension="4"/>
89 </frequencies>
90 </frequencyModel>
91 </frequencies>
92 <kappa>
93 <parameter id="hky.kappa" value="1.0" lower="0.0"/>
94 </kappa>
95 </hkyModel>
96
97 <!-- site model -->
98 <siteModel id="siteModel">
99 <substitutionModel>
100 <hkyModel idref="hky"/>
101 </substitutionModel>
102 <mutationRate>
103 <parameter id="siteModel.mu" value="1.0" lower="0.0"/>
104 </mutationRate>
105 </siteModel>
106
107 <treeLikelihood id="treeLikelihood">
108 <patterns idref="patterns"/>
109 <treeModel idref="treeModel"/>
110 <siteModel idref="siteModel"/>
111 </treeLikelihood>
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 <uniformOperator weight="10">
121 <parameter idref="treeModel.internalNodeHeights"/>
122 </uniformOperator>
123 <subtreeSlide weight="5" gaussian="true" size="1.0">
124 <treeModel idref="treeModel"/>
125 </subtreeSlide>
126 <narrowExchange weight="1">
127 <treeModel idref="treeModel"/>
128 </narrowExchange>
129 <wideExchange weight="1">
130 <treeModel idref="treeModel"/>
131 </wideExchange>
132 <wilsonBalding weight="1">
133 <treeModel idref="treeModel"/>
134 </wilsonBalding>
135 </operators>
136
137 <mcmc id="mcmc" chainLength="10000000" autoOptimize="true">
138 <compoundLikelihood id="likelihood">
139 <treeLikelihood idref="treeLikelihood"/>
140 <gammaPrior id="MRCAprior" scale="1" shape="0.0001" offset="0">
141 <parameter idref="treeModel.rootHeight"/>
142 </gammaPrior>
143 </compoundLikelihood>
144 <operators idref="operators"/>
145 <log logEvery="10000">
146 <column label="Likelihood" dp="4" width="12">
147 <compoundLikelihood idref="likelihood"/>
148 </column>
149 <column label="Root Height" sf="6" width="12">
150 <parameter idref="treeModel.rootHeight"/>
151 </column>
152 <column label="Kappa" sf="6" width="12">
153 <parameter idref="hky.kappa"/>
154 </column>
155 </log>
156 <log logEvery="1000" fileName="testMCMC.log">
157 <compoundLikelihood idref="likelihood"/>
158 <parameter idref="treeModel.rootHeight"/>
159 <parameter idref="hky.kappa"/>
160 </log>
161 <logTree logEvery="1000" nexusFormat="true" fileName="testMCMC.trees">
162 <treeModel idref="treeModel"/>
163 </logTree>
164 </mcmc>
165
166 <report>
167 <property name="timer">
168 <object idref="mcmc"/>
169 </property>
170 </report>
171
172 <treeTraceAnalysis fileName="testMCMC.trees"/>
173
174 </beast>