4
|
1 <tool id="meta-velvetg" name="meta-velvetg" version="3.0 (2013-4-30)">
|
1
|
2
|
|
3 <macros>
|
|
4 <import>velvet_macro.xml</import>
|
|
5 </macros>
|
|
6 <description>Run velvet or meta-velvetg assembly.</description>
|
|
7
|
|
8 <command interpreter="perl">velvet.pl
|
|
9
|
|
10 $meta
|
|
11
|
|
12 #for $i, $library in enumerate( $shortPaired )
|
|
13
|
|
14 #set $libNumber = $i + 1
|
|
15
|
|
16 #if $libNumber == 1
|
|
17
|
|
18 #set $libNumber = ''
|
|
19
|
|
20 #end if
|
|
21
|
|
22 #if not $library.ins_length.value is None
|
|
23
|
|
24 -ins_length$libNumber $library.ins_length
|
|
25
|
|
26 #end if
|
|
27
|
|
28 #if not $library.ins_length_sd.value is None
|
|
29
|
|
30 -ins_length_sd$libNumber $library.ins_length_sd
|
|
31
|
|
32 #end if
|
|
33
|
|
34 -shortPaired$libNumber
|
|
35
|
|
36 @PAIRED_FILES_OPTIONS@
|
|
37
|
|
38 #end for
|
|
39
|
|
40 #for $i, $library in enumerate( $short )
|
|
41
|
|
42 #set $libNumber = $i + 1
|
|
43
|
|
44 #if $libNumber == 1
|
|
45
|
|
46 #set $libNumber = ''
|
|
47
|
|
48 #end if
|
|
49
|
|
50 -short$libNumber
|
|
51
|
|
52 @UNPAIRED_FILES_OPTIONS@
|
|
53
|
|
54 #end for
|
|
55
|
|
56 #for $i, $library in enumerate( $longPaired )
|
|
57
|
|
58 #if not $library.ins_length.value is None
|
|
59
|
|
60 -ins_length_long $library.ins_length
|
|
61
|
|
62 #end if
|
|
63
|
|
64 #if not $library.ins_length_sd.value is None
|
|
65
|
|
66 -ins_length_long_sd $library.ins_length_sd
|
|
67
|
|
68 #end if
|
|
69
|
|
70 -longPaired
|
|
71
|
|
72 @PAIRED_FILES_OPTIONS@
|
|
73
|
|
74 #end for
|
|
75
|
|
76 #for $i, $library in enumerate( $long )
|
|
77
|
|
78 -long
|
|
79
|
|
80 @UNPAIRED_FILES_OPTIONS@
|
|
81
|
|
82 #end for
|
|
83
|
|
84 #if not $hash_length.value == ''
|
|
85
|
|
86 -hash_length $hash_length
|
|
87
|
|
88 #end if
|
|
89
|
|
90 $strand_specific
|
|
91
|
|
92 #if not $cov_cutoff.value == ''
|
|
93
|
|
94 -cov_cutoff $cov_cutoff
|
|
95
|
|
96 #end if
|
|
97
|
|
98 $read_trkg
|
|
99
|
|
100 #if not $min_contig_lgth.value is None
|
|
101
|
|
102 -min_contig_lgth $min_contig_lgth
|
|
103
|
|
104 #end if
|
|
105
|
|
106 $amos_file
|
|
107
|
|
108 #if not $exp_cov.value == ''
|
|
109
|
|
110 -exp_cov $exp_cov
|
|
111
|
|
112 #end if
|
|
113
|
|
114 #if not $long_cov_cutoff.value == ''
|
|
115
|
|
116 -long_cov_cutoff $long_cov_cutoff
|
|
117
|
|
118 #end if
|
|
119
|
|
120 $scaffolding
|
|
121
|
|
122 #if not $max_branch_length.value is None
|
|
123
|
|
124 -max_branch_length $max_branch_length
|
|
125
|
|
126 #end if
|
|
127
|
|
128 #if not $max_divergence.value is None
|
|
129
|
|
130 -max_divergence $max_divergence
|
|
131
|
|
132 #end if
|
|
133
|
|
134 #if not $max_gap_count.value is None
|
|
135
|
|
136 -max_gap_count $max_gap_count
|
|
137
|
|
138 #end if
|
|
139
|
|
140 #if not $min_pair_count.value is None
|
|
141
|
|
142 -min_pair_count $min_pair_count
|
|
143
|
|
144 #end if
|
|
145
|
|
146 #if not $max_coverage.value is None
|
|
147
|
|
148 -max_coverage $max_coverage
|
|
149
|
|
150 #end if
|
|
151
|
|
152 #if not $coverage_mask.value is None
|
|
153
|
|
154 -coverage_mask $coverage_mask
|
|
155
|
|
156 #end if
|
|
157
|
|
158 #if not $long_mult_cutoff.value is None
|
|
159
|
|
160 -long_mult_cutoff $long_mult_cutoff
|
|
161
|
|
162 #end if
|
|
163
|
|
164 $unused_reads
|
|
165
|
|
166 $alignments
|
|
167
|
|
168 $exportFiltered
|
|
169
|
|
170 #if not $paired_exp_fraction.value is None
|
|
171
|
|
172 -paired_exp_fraction $paired_exp_fraction
|
|
173
|
|
174 #end if
|
|
175
|
|
176 $shortMatePaired
|
|
177
|
|
178 $conserveLong
|
|
179
|
|
180 $discard_chimera
|
|
181
|
|
182 #if not $max_chimera_rate.value is None
|
|
183
|
|
184 -max_chimera_rate $max_chimera_rate
|
|
185
|
|
186 #end if
|
|
187
|
|
188 #if not $repeat_cov_sd.value is None
|
|
189
|
|
190 -repeat_cov_sd $repeat_cov_sd
|
|
191
|
|
192 #end if
|
|
193
|
|
194 #if not $min_split_length.value is None
|
|
195
|
|
196 -min_split_length $min_split_length
|
|
197
|
|
198 #end if
|
|
199
|
|
200 #if not $valid_connections.value is None
|
|
201
|
|
202 -valid_connections $valid_connections
|
|
203
|
|
204 #end if
|
|
205
|
|
206 #if not $noise_connections.value is None
|
|
207
|
|
208 -noise_connections $noise_connections
|
|
209
|
|
210 #end if
|
|
211
|
|
212 $use_connections
|
|
213
|
|
214 $report_split_detail
|
|
215
|
|
216 $report_subgraph
|
|
217
|
|
218 #if not $exp_covs.value == ''
|
|
219
|
|
220 -exp_covs $exp_covs
|
|
221
|
|
222 #end if
|
|
223
|
|
224 #if not $min_peak_cov.value is None
|
|
225
|
|
226 -min_peak_cov $min_peak_cov
|
|
227
|
|
228 #end if
|
|
229
|
|
230 #if not $max_peak_cov.value is None
|
|
231
|
|
232 -max_peak_cov $max_peak_cov
|
|
233
|
|
234 #end if
|
|
235
|
|
236 #if not $histo_bin_width.value is None
|
|
237
|
|
238 -histo_bin_width $histo_bin_width
|
|
239
|
|
240 #end if
|
|
241
|
|
242 #if not $histo_sn_ratio.value is None
|
|
243
|
|
244 -histo_sn_ratio $histo_sn_ratio
|
|
245
|
|
246 #end if
|
|
247
|
|
248 </command>
|
|
249
|
|
250 <inputs>
|
|
251
|
|
252 <param name="hash_length" type="text" value="31" label="Hash length : integer <= 150 OR m,M,s with m (min kmer length) < M (max kmer length) <= 150 and s is a step number"/>
|
|
253
|
|
254 <param name="meta" type="select" label="Perform a metagenomic assembly using meta-velvetg">
|
|
255 <option value="">Yes</option>
|
|
256 <option value="-nometa">No</option>
|
|
257 </param>
|
|
258
|
|
259 <repeat name="shortPaired" max="2" title="Short paired reads library">
|
|
260 <expand macro="paired_library_options" />
|
|
261 </repeat>
|
|
262
|
|
263 <repeat name="short" max="2" title="Short unpaired reads library">
|
|
264 <expand macro="unpaired_library_options" />
|
|
265 </repeat>
|
|
266
|
|
267 <repeat name="longPaired" max="1" title="Long paired reads library">
|
|
268 <expand macro="paired_library_options" />
|
|
269 </repeat>
|
|
270
|
|
271 <repeat name="long" max="1" title="Long unpaired reads library">
|
|
272 <expand macro="unpaired_library_options" />
|
|
273 </repeat>
|
|
274
|
|
275 <param name="reference" type="data" format="fasta" optional="true" label="VELVETH - Reference file (-reference)"/>
|
|
276
|
|
277 <param name="strand_specific" type="select" label="VELVETH - Strand specific transcriptome sequencing data. Default: No (-strand_specific)">
|
|
278 <option value="">No</option>
|
|
279 <option value="-strand_specific">Yes</option>
|
|
280 </param>
|
|
281
|
|
282 <param name="cov_cutoff" type="text" optional="true" label="VELVETG - Coverage cutoff. Float or auto (-cov_cutoff)"/>
|
|
283
|
|
284 <param name="read_trkg" type="select" label="VELVETG - Tracking of short read positions in assembly. Default: no tracking (-read_trkg)">
|
|
285 <option value="">No</option>
|
|
286 <option value="-read_trkg yes">Yes</option>
|
|
287 </param>
|
|
288
|
|
289 <param name="min_contig_lgth" type="integer" optional="true" label="VELVETG - Minimum contig length. Default: hash length * 2 (-min_contig_lgth)"/>
|
|
290
|
|
291 <param name="amos_file" type="select" label="VELVETG - Export assembly to AMOS file. Default: no export (-amos_file)">
|
|
292 <option value="">No</option>
|
|
293 <option value="-amos_file yes">Yes</option>
|
|
294 </param>
|
|
295
|
|
296 <param name="exp_cov" type="text" optional="true" label="VELVETG - Expected coverage of unique regions (float or auto). In case of metagenomic analysis it will be set to auto (-exp_cov)"/>
|
|
297 <param name="long_cov_cutoff" type="text" optional="true" label="VELVETG - Cutoff for removal of nodes with low long-read coverage (-long_cov_cutoff)"/>
|
|
298
|
|
299 <param name="scaffolding" type="select" label="VELVETG - Scaffolding of contigs used paired end information. Default: on (-scaffolding)">
|
|
300 <option value="">Yes</option>
|
|
301 <option value="-scaffolding no">No</option>
|
|
302 </param>
|
|
303
|
|
304 <param name="max_branch_length" type="integer" optional="true" label="VELVETG - Maximum length in base pair of bubble. Default: 100 (-max_branch_length)"/>
|
|
305 <param name="max_divergence" type="float" optional="true" label="VELVETG - Maximum divergence rate between two branches in a bubble. Default: 0.2 (-max_divergence)"/>
|
|
306 <param name="max_gap_count" type="integer" optional="true" label="VELVETG - Maximum number of gaps allowed in the alignment of the two branches of a bubble. Default: 3 (-max_gap_count)"/>
|
|
307 <param name="min_pair_count" type="integer" optional="true" label="VELVETG -Minimum number of paired end connections to justify the scaffolding of two long contigs. Default: 5 (-min_pair_count)"/>
|
|
308
|
|
309 <param name="max_coverage" type="float" optional="true" label="VELVETG - Cutoff for removal of high coverage nodes AFTER tour bus. Default: no removal (-max_coverage)"/>
|
|
310 <param name="coverage_mask" type="integer" optional="true" label="VELVETG - Minimum coverage required for confident regions of contigs. Default: 1 (-coverage_mask)"/>
|
|
311 <param name="long_mult_cutoff" type="integer" optional="true" label="VELVETG -Minimum number of long reads required to merge contigs. Default: 2 (-long_mult_cutoff)"/>
|
|
312
|
|
313 <param name="unused_reads" type="select" label="VELVETG - Export unused reads in UnusedReads.fa file. Default: no (-unused_reads)">
|
|
314 <option value="">No</option>
|
|
315 <option value="-unused_reads yes">Yes</option>
|
|
316 </param>
|
|
317
|
|
318 <param name="alignments" type="select" label="VELVETG - Export a summary of contig alignment to the reference sequences. Default: no (-alignments)">
|
|
319 <option value="">No</option>
|
|
320 <option value="-alignments yes">Yes</option>
|
|
321 </param>
|
|
322
|
|
323 <param name="exportFiltered" type="select" label="VELVETG - Export the long nodes which were eliminated by the coverage filters. Default: no (-exportFiltered)">
|
|
324 <option value="">No</option>
|
|
325 <option value="-exportFiltered yes">Yes</option>
|
|
326 </param>
|
|
327
|
|
328 <param name="paired_exp_fraction" type="float" optional="true" label="VELVETG -Remove all the paired end connections which less than the specified fraction of the expected count. Default: 0.1 (-paired_exp_fraction)"/>
|
|
329
|
|
330 <param name="shortMatePaired" type="select" label="VELVETG - For mate-pair libraries, indicate that the library might be contaminated with paired-end reads. Default no (-shortMatePaired)">
|
|
331 <option value="">No</option>
|
|
332 <option value="-shortMatePaired yes">Yes</option>
|
|
333 </param>
|
|
334
|
|
335 <param name="conserveLong" type="select" label="VELVETG - Preserve sequences with long reads in them. Default no (-conserveLong)">
|
|
336 <option value="">No</option>
|
|
337 <option value="-conserveLong yes">Yes</option>
|
|
338 </param>
|
|
339
|
|
340 <param name="discard_chimera" type="select" label="META-VELVETG - Discard chimera sub-graph. Default: no (-discard_chimera)">
|
|
341 <option value="">No</option>
|
|
342 <option value="-discard_chimera yes">Yes</option>
|
|
343 </param>
|
|
344
|
|
345 <param name="max_chimera_rate" type="float" optional="true" label="META-VELVETG - Maximum allowable chimera rate. Default: 0.0 (-max_chimera_rate)"/>
|
|
346 <param name="repeat_cov_sd" type="float" optional="true" label="META-VELVETG - Standard deviation of repeat node coverages. Default: 0.1 (-repeat_cov_sd)"/>
|
|
347 <param name="min_split_length" type="integer" optional="true" label="META-VELVETG - Minimum node length required for repeat resolution. Default: 0 (-min_split_length)"/>
|
|
348 <param name="valid_connections" type="integer" optional="true" label="META-VELVETG - Minimum allowable number of consistent paired-end connections. Default: 1 (-valid_connections)"/>
|
|
349 <param name="noise_connections" type="integer" optional="true" label="META-VELVETG - Maximum allowable number of inconsistent paired-end connections. Default: 0 (-noise_connections)"/>
|
|
350
|
|
351 <param name="use_connections" type="select" label="META-VELVETG - Use paired-end connections for graph splitting. Default: yes (-use_connections)">
|
|
352 <option value="">Yes</option>
|
|
353 <option value="-use_connections no">No</option>
|
|
354 </param>
|
|
355
|
|
356 <param name="report_split_detail" type="select" label="META-VELVETG - Report sequences around repeat nodes. Default: no (-report_split_detail)">
|
|
357 <option value="">No</option>
|
|
358 <option value="-report_split_detail yes">Yes</option>
|
|
359 </param>
|
|
360
|
|
361 <param name="report_subgraph" type="select" label="META-VELVETG - Report node sequences for each subgraph. Default: no (-report_subgraph)">
|
|
362 <option value="">No</option>
|
|
363 <option value="-report_subgraph yes">Yes</option>
|
|
364 </param>
|
|
365
|
|
366 <param name="exp_covs" type="text" optional="true" label="META-VELVETG - Expected coverages for each species in microbiome. Default: auto (-exp_covs)"/>
|
|
367
|
|
368 <param name="min_peak_cov" type="float" optional="true" label="META-VELVETG - Minimum peak coverage. Default: 0 (-min_peak_cov)"/>
|
|
369 <param name="max_peak_cov" type="float" optional="true" label="META-VELVETG - Maximum peak coverage. Default: 500 (-max_peak_cov)"/>
|
|
370 <param name="histo_bin_width" type="float" optional="true" label="META-VELVETG - Bin width of peak coverage histogram. Default: 1 (-histo_bin_width)"/>
|
|
371 <param name="histo_sn_ratio" type="float" optional="true" label="META-VELVETG - Signal-noise ratio to remove peak noises. Default: 10 (-histo_sn_ratio)"/>
|
|
372
|
|
373 </inputs>
|
|
374
|
|
375 <outputs>
|
|
376
|
|
377 <data format="fasta" name="meta_velvet_contigs" from_work_dir="meta-velvetg.contigs.fa" label="${tool.name} on ${on_string}: meta-velvetg.contigs.fasta">
|
|
378 <filter>(meta == '')</filter>
|
|
379 </data>
|
|
380
|
|
381 <data format="fasta" name="velvet_contigs" from_work_dir="contigs.fa" label="${tool.name} on ${on_string}: contigs.fasta">
|
|
382 <filter>(meta == '-nometa')</filter>
|
|
383 </data>
|
|
384
|
|
385 <data format="fasta" name="velvet_singlets" from_work_dir="Singlets.fasta" label="${tool.name} on ${on_string}: singlets.fasta">
|
|
386 <filter>(unused_reads == '-unused_reads yes')</filter>
|
|
387 </data>
|
|
388
|
|
389 <data format="txt" name="meta-velvetg.asm.afg" from_work_dir="meta-velvetg.asm.afg" label="${tool.name} on ${on_string}: meta-velvetg.asm.afg">
|
|
390 <filter>((meta == '') and (amos_file == '-amos_file yes'))</filter>
|
|
391 </data>
|
|
392
|
|
393 <data format="txt" name="velvet_asm.afg" from_work_dir="velvet_asm.afg" label="${tool.name} on ${on_string}: velvet_asm.afg">
|
|
394 <filter>((meta == '-nometa') and (amos_file == '-amos_file yes'))</filter>
|
|
395 </data>
|
|
396
|
|
397 <data format="tabular" name="stats.txt" from_work_dir="stats.txt" label="${tool.name} on ${on_string}: stats.txt">
|
|
398 <filter>(meta == '-nometa')</filter>
|
|
399 </data>
|
|
400
|
|
401 <data format="tabular" name="meta-velvetg.split-stats.txt" from_work_dir="meta-velvetg.split-stats.txt" label="${tool.name} on ${on_string}: meta-velvetg.split-stats.txt">
|
|
402 <filter>(meta == '')</filter>
|
|
403 </data>
|
|
404
|
|
405 <data format="txt" name="LastGraph" from_work_dir="LastGraph" label="${tool.name} on ${on_string}: LastGraph">
|
|
406 <filter>(meta == '-nometa')</filter>
|
|
407 </data>
|
|
408
|
|
409 <data format="txt" name="meta-velvetg.LastGraph" from_work_dir="meta-velvetg.LastGraph" label="${tool.name} on ${on_string}: meta-velvetg.LastGraph">
|
|
410 <filter>(meta == '')</filter>
|
|
411 </data>
|
|
412
|
|
413 <data format="tabular" name="meta-velvetg.Graph2-stats.txt" from_work_dir="meta-velvetg.Graph2-stats.txt" label="${tool.name} on ${on_string}: meta-velvetg.Graph2-stats.txt">
|
|
414 <filter>(meta == '')</filter>
|
|
415 </data>
|
|
416
|
|
417 </outputs>
|
|
418
|
|
419 </tool>
|