comparison mrbayes.xml @ 0:25da76152cf2 draft

planemo upload commit 9d6eccd6006feba67862137cb9a1d743798f71d3-dirty
author nml
date Tue, 15 Dec 2015 14:26:53 -0500
parents
children bd36a094f934
comparison
equal deleted inserted replaced
-1:000000000000 0:25da76152cf2
1 <?xml version="1.0"?>
2 <tool id="mrbayes" name="MrBayes" version="1.0.0">
3 <description>with options and commands</description>
4 <requirements>
5 <requirement type="package" version="3.2.6">mrbayes</requirement>
6 </requirements>
7 <command> mb $command_file > $outfile
8 ## print list of avaialble variables
9 #silent sys.stderr.write("\n \n \n ======== Cheetah template variables ========\n")
10 #for k,v in $searchList[2].items()
11 #silent sys.stderr.write(" %s = %s\n" % (str(k), str(v) ))
12 #end for
13 #silent sys.stderr.write("======== End of Cheetah template variables ========\n \n \n")
14 </command>
15 <configfiles>
16 <configfile name="command_file">
17 begin mrbayes;
18 set seed=$seed;
19 set quitonerror=no;
20 execute $data;
21 outgroup $outgroup;
22 $model;
23 lset rates=$rates;
24 #if str($filename) != ""
25 mcmcp filename=$filename;
26 #end if#
27 mcmcp ngen=$ngen nrun=$nrun nchain=$nchain checkfreq=$checkfreq samplefreq=$samplefreq printfreq=$printfreq stoprule=$stoprule burninfrac=$burninfrac;
28 #if int($ngen) >= int($checkfreq)
29 $append;
30 #end if#
31 mcmc;
32 $sump
33 $sumt
34 #if str($plot) == "plot"
35 plot;
36 #end if#
37 end;
38 </configfile>
39 </configfiles>
40 <inputs>
41 <param name="data" type="data" format="nex" label="Nexus input file"/>
42
43 <param name="filename" type="text" label="Output filename" size="10" value=""
44 help="Output files will be named this with .p, .t, .mcmc extensions. Use to avoid overwriting files when running repeated analyses on the same dataset." />
45
46 <param name="ngen" type="integer" label="&lt;hr&gt;Number of generations" value="10000" >
47 <validator type="in_range" min="1" max="inf" message="Must be greater than or equal to 1"/>
48 </param>
49 <param name="nchain" type="integer" label="Number of chains" value="2" >
50 <validator type="in_range" min="1" max="inf" message="Must be greater than or equal to 1"/>
51 </param>
52 <param name="nrun" type="integer" label="Number of runs" value="2" >
53 <validator type="in_range" min="1" max="inf" message="Must be greater than or equal to 1"/>
54 </param>
55
56 <param name="outgroup" type="text" label="&lt;hr&gt;Outgroup" size="10" value="1"
57 help="The name or number identifying one taxon from the data." />
58 <param name="model" type="select" label="Choose model">
59 <sanitizer sanitize="False" />
60 <option value="lset nst=6" >GRT</option>
61 <option value="lset nst=6; prset statefreqpr=fixed(equal)">SYM</option>
62 <option value="lset nst=2" >HKY</option>
63 <option value="lset nst=2; prset statefreqpr=fixed(equal)">K2P</option>
64 <option value="lset nst=1" >F81</option>
65 <option value="lset nst=1; prset statefreqpr=fixed(equal)">JC </option>
66 <option value="lset nst=mixed" >Mixed </option>
67 <help>Models are defined below and are only valid for nucleotide data.</help>
68 </param>
69 <param name="rates" type="select" label="Choose rates">
70 <option value="equal"/>
71 <option value="gamma"/>
72 <option value="propinv"/>
73 <option value="invgamma"/>
74 <option value="adgamma"/>
75 </param>
76 <param name="samplefreq" type="integer" label="&lt;hr&gt;Sample frequency" value="500" >
77 <validator type="in_range" min="1" max="inf" message="Must be greater than or equal to 1"/>
78 <help>Frequency with which output it written to files." </help>
79 </param>
80 <param name="printfreq" type="integer" label="Print frequency" value="500" >
81 <validator type="in_range" min="1" max="inf" message="Must be greater than or equal to 1"/>
82 <help>Frequency with which output is printed to the screen.</help>
83 </param>
84 <param name="burninfrac" type="float" label="Burn-in fraction" value="0.25">
85 <validator type="in_range" min="0.01" max=".50" message="Must be between 0.01 and .50"/>
86 <help>Fraction of samples to discard when summarizing. </help>
87 </param>
88 <param name="stoprule" type="select" label="Stop rule?" >
89 <option value="no">No</option>
90 <option value="yes">Yes</option>
91 </param>
92 <param name="sump" type="boolean" truevalue="sump;" falsevalue="" label="&lt;hr&gt;Include sump?"
93 help="Summarizes sampled parameter value."/>
94 <param name="sumt" type="boolean" truevalue="sumt;" falsevalue="" label="Include sumt?"
95 help="Summarizes the trees."/>
96 <param name="plot" type="boolean" truevalue="plot" falsevalue="" label="Include plot?"
97 help="Creates an x-y graph of the parameter over the course of the chain."/>
98
99 <param name="checkfreq" type="integer" label="&lt;hr&gt;Checkpoint frequency" value="100000" >
100 <validator type="in_range" min="100" max="inf" message="Must be greater than or equal to 100"/>
101 <help>Frequency with which checkpoints are written. Used for continuing analysis with append.</help>
102 </param>
103 <param name="append" type="boolean" truevalue="mcmcp append=yes" falsevalue="mcmcp append=no" label="Append to last checkpoint?"
104 help="Requires .ckp file (i.e. that number of generations > checkpoint frequency for previous analysis)." />
105 <param name="seed" type="integer" label="&lt;hr&gt;Seed" optional="false" value="5"
106 help="Specify a seed with which to run the job.">
107 <validator type="in_range" min="1" max="inf" message="Must be greater than or equal to 1"/>
108 </param>
109 </inputs>
110 <outputs>
111 <data name="outfile" format="txt"/>
112 </outputs>
113
114 <tests>
115 <test>
116 <param name="data" value="avian_ovomucoids.nex"/>
117 <output name="outfile">
118 <assert_contents>
119 <has_text text=" 500 -- [-6144.805] (-6235.323) * [-5853.458] (-5936.317)"/>
120 <has_text text=" 3000 -- (-4258.327) [-3872.656] * [-3961.044] (-3988.174)"/>
121 <has_text text=" 5000 -- (-3805.933) [-3708.438] * [-3704.553] (-3727.547)"/>
122 <has_text text=" 8000 -- [-3676.746] (-3665.247) * [-3621.851] (-3665.758)"/>
123 <has_text text=" 10000 -- [-3639.639] (-3639.407) * [-3613.090] (-3667.495)"/>
124 <has_text text=" 13.4 % ( 11 %) TLMultiplier(V)"/>
125 <has_text text=" 12.4 % ( 10 %) TLMultiplier(V)"/>
126 <has_text text=" 1 | 0.14 "/>
127 <has_text text=" 1 | 0.19 "/>
128 </assert_contents>
129 </output>
130 </test>
131 </tests>
132
133 <help>
134
135 .. class:: warningmark
136
137 This tool takes as input a Nexus file (.nex), described here_, that should only contain a data block, without commands. If a command block exists in the file, it will be executed first, followed by the ones specified above.
138
139 .. _here: http://en.wikipedia.org/wiki/Nexus_file.
140
141 -----
142
143 **What it does**
144
145 MrBayes is a program for Bayesian inference and model choice across a wide range of phylogenetic and evolutionary models. MrBayes uses Markov chain Monte Carlo (MCMC) methods to estimate the posterior distribution of model parameters.
146
147 See the manual_ or the `command reference`_ for more information.
148
149 .. _manual: http://mrbayes.sourceforge.net/manual.php
150 .. _command reference: http://mrbayes.sourceforge.net/commref_mb3.2.pdf
151
152 -----
153
154 **Model Definitions**
155
156 Models are defined by the following MrBayes options::
157
158 GRT: lset nst=6;
159 SYM: lset nst=6; prset statefreqpr=fixed(equal);
160 HKY: lset nst=2;
161 K2P: lset nst=2; prset statefreqpr=fixed(equal);
162 F81: lset nst=1;
163 JC: lset nst=1; prset statefreqpr=fixed(equal);
164 Mixed: lset nst=mixed;
165
166 Each model makes different assumptions about nucelotide substitution rates and state frequencies.
167
168 The mixed model performs Markov chain sampling over the space of all possible reversible substitution models, by grouping the six rates in various combinations.
169
170 -----
171
172 .. class:: infomark
173
174 **Tip for repetitive analyses**
175
176 Note that running the same analysis on the same dataset in Galaxy will overwrite .p, .t, and .mcmc files for that dataset. This can be avoided by copying the dataset or re-uploading it, or by specifying a new filename.
177
178 .. class:: infomark
179
180 **Tip for using append**
181
182 If you want to use the append functionality, all parameters will have to be identical to your initial analysis. The easiest way to ensure this is by using the blue "Run this job again" arrow on the dataset, and checking the additional append box. Note also that ngen will be the total number of generations, not the number of generations to add, so you should increase this value except if a run was interrupted. Selecting append while checkfreq > ngen will have no effect.
183
184 -----
185
186 Wrapper originally created by AAFC-MBB -> https://github.com/AAFC-MBB/
187 </help>
188 <citations>
189 <citation type="bibtex">@ARTICLE {huelsenbeckjpronquistf.2001,
190 author = {Huelsenbeck JP, Ronquist F.},
191 title = {MRBAYES: Bayesian inference of phylogenetic trees.},
192 journal = {Bioinformatics},
193 year = {2001},
194 volume = {17},
195 pages = {754-755},
196 url = {http://www.ncbi.nlm.nih.gov/pubmed/11524383}
197 }</citation>
198 </citations>
199 </tool>