comparison fasttree.xml @ 0:c7e73acfa3eb draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fasttree commit e47dfac91821500d0fcfc43750d036662c7c43ca
author iuc
date Mon, 19 Feb 2018 11:36:31 -0500
parents
children ef46a404db96
comparison
equal deleted inserted replaced
-1:000000000000 0:c7e73acfa3eb
1 <?xml version="1.0"?>
2 <tool id="fasttree" name="FASTTREE" version="@VERSION@">
3 <description>adjust short reads</description>
4 <macros>
5 <token name="@VERSION@">2.1.10</token>
6 </macros>
7 <requirements>
8 <requirement type="package" version="@VERSION@">FastTree</requirement>
9 </requirements>
10 <version_command>FastTree</version_command>
11 <command detect_errors="aggressive">
12 <![CDATA[
13 FastTree
14
15 $model_selector.format
16 $model_selector.model
17 -nopr
18 #if $input_selector.select_format == 'fasta':
19 $input_selector.quote
20 #else if $input_selector.select_format == 'phylip':
21 -n $input_selector.num
22 #end if
23 #set $inform = $input_selector.intree_selector.intree_format
24 #if $inform == 'one':
25 -intree1 '$input_selector.intree_selector.start_tree'
26 #else if $inform == 'many':
27 -intree '$input_selector.intree_selector.start_tree'
28 #end if
29 #if $advanced_selector.maximize == 'max':
30 #if $advanced_selector.cat_selector.conrate == 'no':
31 -cat $advanced_selector.cat_selector.ratecat
32 #else if $advanced_selector.cat_selector.conrate == 'yes':
33 -nocat
34 #end if
35 $advanced_selector.gamma
36 $advanced_selector.nosupport
37 $advanced_selector.mllen
38 $advanced_selector.likelihood
39 $advanced_selector.fastest
40 $advanced_selector.pseudo
41 #end if
42
43 < '$input' > '$output'
44
45 #if $save_logfile:
46 2> '$log'
47 #end if
48
49 ]]>
50 </command>
51 <inputs>
52 <conditional name="input_selector">
53 <param name="select_format" type="select" label="Aligned sequences file (FASTA or Phylip format)">
54 <option value="fasta" selected="true">fasta</option>
55 <option value="phylip">phylip</option>
56 </param>
57 <when value="fasta">
58 <param format="fasta" name="input" type="data" multiple="false" label="FASTA file"/>
59 <param name="quote" argument="-quote" type="boolean" truevalue="-quote" falsevalue="" checked="false" label="Allow spaces and other restricted characters (but not ') in sequence and quote names in the output tree." help="This tool is only available for fasta input only; FastTree will not be able to read these trees back in." />
60 <conditional name="intree_selector">
61 <param name="intree_format" type="select" label="Set starting tree(s)">
62 <option value="none" selected="true">No starting trees</option>
63 <option value="one">Use starting tree</option>
64 </param>
65 <when value="none">
66 </when>
67 <when value="one">
68 <param format="nhx" name="start_tree" type="data" label="Newick file" />
69 </when>
70 </conditional>
71 </when>
72 <when value="phylip">
73 <param format="phylip" name="input" type="data" label="PHYLIP file" />
74 <param name="num" type="integer" value="1" optional="true" label="Number of multiple alignments" />
75 <conditional name="intree_selector">
76 <param name="intree_format" type="select" label="Set starting tree(s)">
77 <option value="none" selected="true">No starting trees</option>
78 <option value="one">One tree for multiple alignments</option>
79 <option value="many">Multiple trees for multiple alignments</option>
80 </param>
81 <when value="none">
82 </when>
83 <when value="one">
84 <param format="nhx" name="start_tree" type="data" multiple="false" label="Newick file" />
85 </when>
86 <when value="many">
87 <param format="nhx" name="start_tree" type="data" label="Newick file" multiple="false" help="The tree produced by the full alignment to be used as a starting point for each bootstrapping replicate. This will save considerable computation time." />
88 </when>
89 </conditional>
90 </when>
91 </conditional>
92 <param name="save_logfile" type="boolean" truevalue="" falsevalue="" checked="false" label="Save log file output" />
93 <conditional name="model_selector">
94 <param name="format" type="select" label="Protein or nucleotide alignment" help="Specify if the aligned sequences are nucleotide or protein sequences">
95 <option value="-nt">Nucleotide</option>
96 <option value="" selected="true">Protein</option>
97 </param>
98 <when value="-nt">
99 <param name="model" type="select" label="Nucleotide evolution model">
100 <option value="-gtr" selected="true">GTR+CAT</option>
101 <option value="">Jukes-Cantor + CAT</option>
102 </param>
103 </when>
104 <when value="">
105 <param name="model" type="select" label="Protein evolution model">
106 <option value="" selected="true">JTT + CAT</option>
107 <option value="-wag">WAG + CAT</option>
108 <option value="-lg">LG + CAT</option>
109 </param>
110 </when>
111 </conditional>
112 <conditional name="advanced_selector">
113 <param name="maximize" type="select" label="Show advanced options">
114 <option value="min" selected="true">No</option>
115 <option value="max">Yes</option>
116 </param>
117 <when value="min">
118 </when>
119 <when value="max">
120 <conditional name="cat_selector">
121 <param name="conrate" type="select" label="Use constant rates?">
122 <option value="no" selected="true">Do not use constant rates.</option>
123 <option value="yes">Use constant rates.</option>
124 </param>
125 <when value="no">
126 <param name="ratecat" type="integer" value="20" label="Specify the number of rate categories of sites (default 20)" />
127 </when>
128 <when value="yes">
129 </when>
130 </conditional>
131 <param value="gamma" argument="-gamma" type="boolean" truevalue="-gamma" falsevalue="" checked="false" label="Use Gamma20" help="After optimizing the tree under the CAT approximation, rescale the lengths to optimize the Gamma20 likelihood." />
132 <param value="nosupport" argument="-nosupport" type="boolean" truevalue="-nosupport" falsevalue="" checked="false" label="Eliminates the support value computation. Support value computation is not recommended for wide alignments."/>
133 <param name="likelihood" argument="-noml" type="boolean" truevalue="-noml" falsevalue="" checked="false" label = "Turn off maximum-likelihood." />
134 <param name="fastest" argument="-fastest" type="boolean" truevalue="-fastest" falsevalue="" checked="false" label="Speed up the neighbor joining phase and reduce memory usage (recommended for >50,000 sequences)" />
135 <param name="pseudo" argument="-pseudo" type="boolean" truevalue="-pseudo" falsevalue="" checked="false" label="Use pseudocounts" help="Recommended for highly gapped/fragmentary sequences." />
136 <param name="mllen" argument="-mllen" type="boolean" truevalue="-mllen" falsevalue="" checked="false" label="Optimize branch lengths without ML NNIs." />
137 </when>
138 </conditional>
139 </inputs>
140 <outputs>
141 <data name="output" format="nhx" label="${tool.name} on ${on_string}:tree.nhx" />
142 <data name="log" format="txt" label="${tool.name} on ${on_string}:log_FastTree_run.txt">
143 <filter>save_logfile</filter>
144 </data>
145 </outputs>
146 <tests>
147 <test>
148 <param name="select_format" value="fasta" />
149 <param name="model" value="" />
150 <param name="input" value="aligned.fasta" />
151 <param name="format" value="-nt" />
152 <param name="save_logfile" value="true" />
153 <output name="output" file="tree.nhx" ftype="nhx" lines_diff="2" />
154 <output name="log" file="log.txt" ftype="txt" compare="contains" />
155 </test>
156 </tests>
157 <help>
158 <![CDATA[
159
160 ===========
161 Description
162 ===========
163
164 .. class:: infomark
165
166 FastTree_ infers approximately-maximum-likelihood phylogenetic trees from alignments of nucleotide or protein sequences. FastTree can handle alignments with up to a million of sequences in a reasonable amount of time and memory. For large alignments, FastTree is 100-1,000 times faster than PhyML 3.0 or RAxML 7. FastTree is open-source software.
167
168 .. _FastTree: http://meta.microbesonline.org/fasttree
169
170 -----
171
172 -----
173 Input
174 -----
175
176 A) Aligned sequences file in FASTA format (e.g. the alignment from the 'PyNAST' tool) or PHYLIP format.
177 B) Newick file to set the starting tree(s) (optional)
178
179 ----------
180 Parameters
181 ----------
182
183 Nucleotide or protein alignment
184 To specify the type of sequence alignment (nucleotide or protein) you are providing.
185
186 Nucleotide evolution model
187 Specify GTR+CAT (Generalized Time Reversable Model) or Jukes-Cantor + CAT.
188
189 Protein evolution model
190 Specify JTT (Jones-Taylor-Thornton 1992 model) + CAT, WAG (Whelan-And-Goldman 2001 model) + CAT, or LG (Le-Gascuel 2008 model) + CAT.
191
192 Allow spaces and other restricted characters (but not ') in sequence and quote names in the output tree. (fasta only)
193 FastTree will not be able to read these trees back in. (-quote)
194
195 Number of multiple alignments (phylip only)
196 (-n)
197
198 -------------------
199 Advanced Parameters
200 -------------------
201
202 Number of rates of sites
203 Defaults to 20. Specify whether you wish to choose constant rates. (-cat/-nocat)
204
205 Use Gamma20
206 After optimizing the tree under the CAT approximation, rescale the lengths to optimize the Gamma20 likelihood. (-gamma)
207
208 Eliminates the support value computation. Support value computation is not recommended for wide alignments.
209 (-nosupport)
210
211 Turn off maximum-likelihood.
212 (-noml)
213
214 Speed up the neighbor joining phase and reduce memory usage
215 Recommended for >50,000 sequences. (-fastest)
216
217 Use pseudocounts
218 Recommended if you have many fragmentary sequences. (-pseudo)
219
220 Optimize branch lengths without ML NNIs.
221 (-mllen)
222
223 ------
224 Output
225 ------
226
227 This tool produces two output files, one of which is optional (the log file).
228
229 (A) The phylogenetic tree in Newick_ format (nhx).
230
231 (B) *(optional)* The log file, containing information of the FastTree run to build the phylogenetic tree.
232
233 .. class:: infomark
234
235 The placement of the root is not biologically meaningful. The local support values are given as names for the internal nodes, and range from 0 to 1, not from 0 to 100 or 0 to 1,000. If all sequences are unique, then the tree will be fully resolved (the root will have three children and other internal nodes will have two children). If there are multiple sequences that are identical to each other, then there will be a multifurcation. Also, there are no support values for the parent nodes of redundant sequences.
236
237 .. _Newick: http://en.wikipedia.org/wiki/Newick_format
238
239 -----
240
241
242 =========
243 Resources
244 =========
245
246 FastTree_v2.1.10_
247
248 .. _FastTree_v2.1.10: http://meta.microbesonline.org/fasttree/#Install
249 ]]>
250 </help>
251 <citations>
252 <citation type="doi">10.1371/journal.pone.0009490</citation>
253 </citations>
254 </tool>