1- <tool id =" trimal" name =" trimAl" version =" @TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile =" 23.0 " license =" MIT" >
1+ <tool id =" trimal" name =" trimAl" version =" @TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile =" @PROFILE@ " license =" MIT" >
22 <description >for automated alignment trimming</description >
33 <macros >
4- <token name =" @TOOL_VERSION@" >1.5.0</token >
5- <token name =" @VERSION_SUFFIX@" >1</token >
4+ <token name =" @TOOL_VERSION@" >1.5.1</token >
5+ <token name =" @VERSION_SUFFIX@" >0</token >
6+ <token name =" @PROFILE@" >23.0</token >
67 </macros >
78 <edam_topics >
89 <edam_topic >topic_3293</edam_topic > <!-- phylogenetics -->
@@ -72,11 +73,9 @@ ${out_format_selector}
7273-soverlap
7374| tee '$statsout'
7475#end if
75-
76-
7776 ]]> </command >
7877 <inputs >
79- <param argument =" -in" type =" data" format =" fasta,clustal,pir,phylip,nexus,mega,txt" label =" Alignment file (clustal, fasta, NBRF/PIR, nexus, phylip3.2, phylip)" />
78+ <param argument =" -in" type =" data" format =" fasta,clustal,pir,phylip,nexus,mega,txt" label =" Alignment file (clustal, fasta, NBRF/PIR, nexus, phylip3.2, phylip)" />
8079 <conditional name =" trimming_mode" >
8180 <param name =" mode_selector" type =" select" label =" Select trimming mode from the list" >
8281 <option value =" -nogaps" >nogaps - remove all positions with gaps in the alignment.</option >
@@ -88,7 +87,7 @@ ${out_format_selector}
8887 <option value =" custom" >custom mode - define trimming parameters yourself.</option >
8988 <option value =" manual" >manual mode - specify columns or sequences to remove</option >
9089 </param >
91- <when value =" -nogaps" />
90+ <when value =" -nogaps" />
9291 <when value =" -noallgaps" />
9392 <when value =" -gappyout" />
9493 <when value =" -strict" />
@@ -109,13 +108,10 @@ ${out_format_selector}
109108 <param argument =" -cons" type =" integer" optional =" true" value =" 50" min =" 0" max =" 100" label =" Minimum conservance percentage" help =" Minimum percentage of the positions in the original alignment to conserve." />
110109 <param argument =" -clusters" type =" integer" optional =" true" min =" 0" label =" Clusters. Get the most Nth representatives sequences from a given alignment." help =" Range: [1 - (Number of sequences)]" />
111110 <param argument =" -maxidentity" type =" float" optional =" true" min =" 0" max =" 1" label =" Max Identity. Get the representatives sequences for a given identity threshold. " help =" Range: [0 - 1]" />
112-
113111 <param argument =" -w" type =" integer" optional =" true" min =" 0" label =" Window frame size - general" help =" score of position i is the average of the window (i - n) to (i + n). Will override specific sizes set below" />
114112 <param argument =" -gw" type =" integer" optional =" true" min =" 0" label =" Window frame size applied to Gaps" help =" score of position i is the average of the window (i - n) to (i + n)." />
115113 <param argument =" -sw" type =" integer" optional =" true" min =" 0" label =" Window frame size applied to Similarity" help =" score of position i is the average of the window (i - n) to (i + n)." />
116114 <param argument =" -cw" type =" integer" optional =" true" min =" 0" label =" Window frame size applied to Consistency" help =" score of position i is the average of the window (i - n) to (i + n)." />
117-
118-
119115 </when >
120116 </conditional >
121117 <param argument =" -resoverlap" type =" float" optional =" true" min =" 0" max =" 1" label =" Residue overlap" help =" Minimum overlap of a positions with other positions in the column to be considered a “good position”. Range: [0-1]. Must be used in combination with Sequence overlap." />
@@ -139,94 +135,115 @@ ${out_format_selector}
139135 <param name =" statistics" type =" boolean" checked =" false" label =" Output trimming statistics?" />
140136 </inputs >
141137 <outputs >
142- <data name =" trimmed_output" format_source =" in" label =" ${tool.name} on ${on_string}: Trimmed alignment. " >
138+ <data name =" trimmed_output" format_source =" in" label =" ${tool.name} on ${on_string}: Trimmed alignment" >
143139 <change_format >
144- <when input =" out_format_selector" value =" -fasta" format =" fasta" />
145- <when input =" out_format_selector" value =" -fasta_m10" format =" fasta" />
146- <when input =" out_format_selector" value =" -phylip" format =" phylip" />
147- <when input =" out_format_selector" value =" -phylip_m10" format =" phylip" />
148- <when input =" out_format_selector" value =" -phylip_paml" format =" phylip" />
149- <when input =" out_format_selector" value =" -phylip_paml_m10" format =" phylip" />
150- <when input =" out_format_selector" value =" -phylip3.2" format =" phylip" />
151- <when input =" out_format_selector" value =" -phylip3.2_m10" format =" phylip" />
152- <when input =" out_format_selector" value =" -clustal" format =" clustal" />
153- <when input =" out_format_selector" value =" -mega" format =" mega" />
154- <when input =" out_format_selector" value =" -nbrf" format =" pir" />
155- <when input =" out_format_selector" value =" -nexus" format =" nexus" />
140+ <when input =" out_format_selector" value =" -fasta" format =" fasta" />
141+ <when input =" out_format_selector" value =" -fasta_m10" format =" fasta" />
142+ <when input =" out_format_selector" value =" -phylip" format =" phylip" />
143+ <when input =" out_format_selector" value =" -phylip_m10" format =" phylip" />
144+ <when input =" out_format_selector" value =" -phylip_paml" format =" phylip" />
145+ <when input =" out_format_selector" value =" -phylip_paml_m10" format =" phylip" />
146+ <when input =" out_format_selector" value =" -phylip3.2" format =" phylip" />
147+ <when input =" out_format_selector" value =" -phylip3.2_m10" format =" phylip" />
148+ <when input =" out_format_selector" value =" -clustal" format =" clustal" />
149+ <when input =" out_format_selector" value =" -mega" format =" mega" />
150+ <when input =" out_format_selector" value =" -nbrf" format =" pir" />
151+ <when input =" out_format_selector" value =" -nexus" format =" nexus" />
156152 </change_format >
157153 </data >
158154 <data name =" html_summary" format =" html" label =" ${tool.name} on ${on_string}: HTML report" >
159155 <filter > trimming_mode['mode_selector'] != 'manual' </filter >
160156 </data >
161- <data name =" statsout" format =" txt" label =" ${tool.name} on ${on_string}: statistics " >
157+ <data name =" statsout" format =" txt" label =" ${tool.name} on ${on_string}: Statistics " >
162158 <filter > statistics </filter >
163159 </data >
164160 </outputs >
165161 <tests >
166- <test expect_num_outputs =" 2" ><!-- test automated trim setting -->
162+ <!-- Test 01: automated trim setting -->
163+ <test expect_num_outputs =" 2" >
167164 <param name =" in" value =" example.009.AA.fasta" />
168- <param name =" mode_selector" value =" -gappyout" />
169- <param name =" out_format_selector" value =" -mega" />
165+ <conditional name =" trimming_mode" >
166+ <param name =" mode_selector" value =" -gappyout" />
167+ </conditional >
168+ <param name =" out_format_selector" value =" -mega" />
170169 <output name =" trimmed_output" file =" trimmed_example.009.AA.mega" ftype =" mega" lines_diff =" 2" />
171- <output name =" html_summary" file =" trimmed_example.009.AA.html" ftype =" html" />
170+ <output name =" html_summary" file =" trimmed_example.009.AA.html" ftype =" html" lines_diff = " 4 " />
172171 </test >
173- <test expect_num_outputs =" 2" ><!-- test custom trim setting -->
172+ <!-- Test 02: custom trim setting -->
173+ <test expect_num_outputs =" 2" >
174174 <param name =" in" value =" example.009.AA.fasta" />
175- <param name =" mode_selector" value =" custom" />
176- <param name =" gapthreshold" value =" 0.5" />
177- <param name =" simthreshold" value =" 0.5" />
178- <param name =" cons" value =" 5" />
179- <param name =" out_format_selector" value =" -phylip_paml_m10" />
175+ <conditional name =" trimming_mode" >
176+ <param name =" mode_selector" value =" custom" />
177+ <param name =" gapthreshold" value =" 0.5" />
178+ <param name =" simthreshold" value =" 0.5" />
179+ <param name =" cons" value =" 5" />
180+ </conditional >
181+ <param name =" out_format_selector" value =" -phylip_paml_m10" />
180182 <output name =" trimmed_output" file =" custom_trimmed_example.009.AA.phy" ftype =" phylip" />
181- <output name =" html_summary" file =" custom_trimmed_example.009.AA.html" ftype =" html" />
183+ <output name =" html_summary" file =" custom_trimmed_example.009.AA.html" ftype =" html" lines_diff = " 4 " />
182184 </test >
183- <test expect_num_outputs =" 2" ><!-- test additionalcustom trim setting -->
185+ <!-- Test 03: additional custom trim setting -->
186+ <test expect_num_outputs =" 2" >
184187 <param name =" in" value =" example.009.AA.fasta" />
185- <param name =" mode_selector" value =" custom" />
186- <param name =" gapthreshold" value =" 0.75" />
187- <param name =" simthreshold" value =" 0.8" />
188- <param name =" cons" value =" 5" />
189- <param name =" conthreshold" value =" 0.5" />
190- <param name =" clusters" value =" 4" />
191- <param name =" maxidentity" value =" 0.8" />
192- <param name =" out_format_selector" value =" -nexus" />
188+ <conditional name =" trimming_mode" >
189+ <param name =" mode_selector" value =" custom" />
190+ <param name =" gapthreshold" value =" 0.75" />
191+ <param name =" simthreshold" value =" 0.8" />
192+ <param name =" cons" value =" 5" />
193+ <param name =" conthreshold" value =" 0.5" />
194+ <param name =" clusters" value =" 4" />
195+ <param name =" maxidentity" value =" 0.8" />
196+ </conditional >
197+ <param name =" out_format_selector" value =" -nexus" />
193198 <output name =" trimmed_output" file =" custom_trimmed_example.009.AA.nexus" ftype =" nexus" />
194- <output name =" html_summary" file =" custom_trimmed_example.009.AA.html" ftype =" html" />
199+ <output name =" html_summary" file =" custom_trimmed_example.009.AA.html" ftype =" html" lines_diff = " 4 " />
195200 </test >
196- <test expect_num_outputs =" 2" ><!-- test window settings -->
201+ <!-- Test 04: Window settings -->
202+ <test expect_num_outputs =" 2" >
197203 <param name =" in" value =" example.005.AA.fasta" />
198- <param name =" mode_selector" value =" custom" />
199- <param name =" gapthreshold" value =" 0.5" />
200- <param name =" simthreshold" value =" 0.5" />
201- <param name =" conthreshold" value =" 0.5" />
202- <param name =" gw" value =" 3" />
203- <param name =" sw" value =" 4" />
204- <param name =" cw" value =" 5" />
204+ <conditional name =" trimming_mode" >
205+ <param name =" mode_selector" value =" custom" />
206+ <param name =" gapthreshold" value =" 0.5" />
207+ <param name =" simthreshold" value =" 0.5" />
208+ <param name =" conthreshold" value =" 0.5" />
209+ <param name =" gw" value =" 3" />
210+ <param name =" sw" value =" 4" />
211+ <param name =" cw" value =" 5" />
212+ </conditional >
205213 <output name =" trimmed_output" file =" custom_trimmed_window_example.005.AA.fasta" ftype =" fasta" />
206- <output name =" html_summary" file =" custom_trimmed_window_example.009.AA.html" ftype =" html" />
214+ <output name =" html_summary" file =" custom_trimmed_window_example.009.AA.html" ftype =" html" lines_diff = " 4 " />
207215 </test >
208- <test expect_num_outputs =" 3" ><!-- test with phylip input and output statistics -->
216+ <!-- Test 05: with phylip input and output statistics -->
217+ <test expect_num_outputs =" 3" >
209218 <param name =" in" value =" example.002.AA.phy" ftype =" phylip" />
210- <param name =" mode_selector" value =" -strict" />
219+ <conditional name =" trimming_mode" >
220+ <param name =" mode_selector" value =" -strict" />
221+ </conditional >
211222 <param name =" statistics" value =" true" />
212- <output name =" trimmed_output" file =" example.002.AA.out.phy" ftype =" phylip" lines_diff = " 0 " />
213- <output name =" html_summary" file =" example.002.AA.report.html" ftype =" html" lines_diff =" 0 " />
214- <output name =" statsout" file =" example.002.AA.stats.txt" ftype =" txt" lines_diff = " 0 " />
223+ <output name =" trimmed_output" file =" example.002.AA.out.phy" ftype =" phylip" />
224+ <output name =" html_summary" file =" example.002.AA.report.html" ftype =" html" lines_diff =" 4 " />
225+ <output name =" statsout" file =" example.002.AA.stats.txt" ftype =" txt" />
215226 </test >
216- <test expect_num_outputs =" 2" ><!-- test with overlap trimming -->
227+ <!-- Test 06: with overlap trimming -->
228+ <test expect_num_outputs =" 2" >
217229 <param name =" in" value =" example.005.AA.fasta" ftype =" fasta" />
218- <param name =" mode_selector" value =" -nogaps" />
230+ <conditional name =" trimming_mode" >
231+ <param name =" mode_selector" value =" -nogaps" />
232+ </conditional >
219233 <param name =" resoverlap" value =" 0.8" />
220234 <param name =" seqoverlap" value =" 6" />
221- <output name =" trimmed_output" file =" example.005.AA.out.overlaptrim.fasta" ftype =" fasta" lines_diff = " 0 " />
222- <output name =" html_summary" file =" example.005.AA.report.overlaptrim.html" ftype =" html" lines_diff =" 0 " />
235+ <output name =" trimmed_output" file =" example.005.AA.out.overlaptrim.fasta" ftype =" fasta" />
236+ <output name =" html_summary" file =" example.005.AA.report.overlaptrim.html" ftype =" html" lines_diff =" 4 " />
223237 </test >
224- <test expect_num_outputs =" 1" ><!-- test with manual trimming -->
238+ <!-- Test 07: with manual trimming -->
239+ <test expect_num_outputs =" 1" >
225240 <param name =" in" value =" example.009.AA.fasta" ftype =" fasta" />
226- <param name =" mode_selector" value =" manual" />
227- <param name =" selectcols" value =" 2,4,7-9" />
228- <param name =" selectseqs" value =" 1,3,5-7" />
229- <output name =" trimmed_output" file =" example.009.AA.out.notrim.fasta" ftype =" fasta" lines_diff =" 0" />
241+ <conditional name =" trimming_mode" >
242+ <param name =" mode_selector" value =" manual" />
243+ <param name =" selectcols" value =" 2,4,7-9" />
244+ <param name =" selectseqs" value =" 1,3,5-7" />
245+ </conditional >
246+ <output name =" trimmed_output" file =" example.009.AA.out.notrim.fasta" ftype =" fasta" />
230247 </test >
231248 </tests >
232249 <help ><![CDATA[
@@ -259,4 +276,4 @@ the Free Software Foundation, the last available version.
259276 <citations >
260277 <citation type =" doi" >10.1093/bioinformatics/btp348</citation >
261278 </citations >
262- </tool >
279+ </tool >
0 commit comments