Mercurial > repos > jtilman > flexbar
annotate flexbar.xml @ 43:afaa5daf84ac draft
Uploaded
author | jtilman |
---|---|
date | Tue, 07 May 2019 10:24:05 -0400 |
parents | b0847c1e320b |
children |
rev | line source |
---|---|
19 | 1 |
43 | 2 <!-- Flexbar tool definition for Galaxy, version 3.5.0 --> |
19 | 3 <!-- Author: Johannes Roehr --> |
4 | |
5 | |
43 | 6 <tool id="flexbar" name="Flexbar" version="3.5.0"> |
22 | 7 |
34 | 8 <description>- flexible barcode and adapter removal</description> |
19 | 9 |
10 <requirements> | |
43 | 11 <requirement type="package" version="3.5.0">flexbar</requirement> |
19 | 12 </requirements> |
13 | |
31 | 14 <version_command>flexbar --versions</version_command> |
19 | 15 |
34 | 16 <command detect_errors="aggressive"> |
19 | 17 |
34 | 18 <![CDATA[ |
19 | |
37 | 20 #if $reads.mode == "se": |
41 | 21 ln -s '$reads.rs' '$outlog'_input1.'$reads.rs.extension' && |
37 | 22 #elif $reads.mode == "pe": |
41 | 23 ln -s '$reads.r1' '$outlog'_input1.'$reads.r1.extension' && |
24 ln -s '$reads.r2' '$outlog'_input2.'$reads.r2.extension' && | |
37 | 25 #else: |
41 | 26 ln -s '$reads.rc.forward' '$outlog'_input1.'$reads.rc.forward.extension' && |
27 ln -s '$reads.rc.reverse' '$outlog'_input2.'$reads.rc.reverse.extension' && | |
37 | 28 #end if |
29 | |
41 | 30 #if $cBarcodes.select == "on": |
31 | |
32 mkdir flexbar_barcoded && | |
33 | |
34 #if $cBarcodes.bAdvanced.cbReads.select == "yes": | |
35 ln -s '$cBarcodes.bAdvanced.cbReads.bReads' '$outlog'_input3.'$cBarcodes.bAdvanced.cbReads.bReads.extension' && | |
36 #end if | |
37 #end if | |
38 | |
39 | |
37 | 40 '$__tool_directory__/flexbar.pl' flexbar |
19 | 41 |
23
0ef7736004bb
Use of galaxy variable to control number of threads.
jtilman
parents:
22
diff
changeset
|
42 --threads \${GALAXY_SLOTS:-1} |
19 | 43 |
34 | 44 #if $reads.mode == "se": |
41 | 45 --reads '$outlog'_input1.'$reads.rs.extension' |
34 | 46 #elif $reads.mode == "pe": |
41 | 47 --reads '$outlog'_input1.'$reads.r1.extension' |
48 --reads2 '$outlog'_input2.'$reads.r2.extension' | |
34 | 49 #else: |
41 | 50 --reads '$outlog'_input1.'$reads.rc.forward.extension' |
51 --reads2 '$outlog'_input2.'$reads.rc.reverse.extension' | |
19 | 52 #end if |
53 | |
54 --max-uncalled $maxUncalled | |
22 | 55 --min-read-length $minReadLen |
19 | 56 |
57 #if $trimEnds.select == "on": | |
58 --pre-trim-left $trimEnds.trimLeft | |
59 --pre-trim-right $trimEnds.trimRight | |
60 #end if | |
61 | |
34 | 62 |
63 #if $cTrimQual.select != "off": | |
64 #if $reads.mode == "se": | |
65 #if $reads.rs.ext == "fastqsanger": | |
66 --qtrim-format sanger | |
67 #end if | |
68 #if $reads.rs.ext == "fastqsolexa": | |
69 --qtrim-format solexa | |
70 #end if | |
71 #if $reads.rs.ext == "fastqillumina": | |
72 --qtrim-format i1.3 | |
73 #end if | |
74 #elif $reads.mode == "pe": | |
75 #if $reads.r1.ext == "fastqsanger": | |
76 --qtrim-format sanger | |
77 #end if | |
78 #if $reads.r1.ext == "fastqsolexa": | |
79 --qtrim-format solexa | |
80 #end if | |
81 #if $reads.r1.ext == "fastqillumina": | |
82 --qtrim-format i1.3 | |
83 #end if | |
84 #else: | |
85 #if $reads.rc.forward.ext == "fastqsanger": | |
86 --qtrim-format sanger | |
87 #end if | |
88 #if $reads.rc.forward.ext == "fastqsolexa": | |
89 --qtrim-format solexa | |
90 #end if | |
91 #if $reads.rc.forward.ext == "fastqillumina": | |
92 --qtrim-format i1.3 | |
93 #end if | |
31 | 94 #end if |
19 | 95 #end if |
96 | |
34 | 97 #if $cTrimQual.select == "tail": |
98 --qtrim TAIL | |
99 --qtrim-threshold $cTrimQual.trimQualTail | |
100 $cTrimQual.trimQualPostTail | |
101 #end if | |
102 #if $cTrimQual.select == "win": | |
103 --qtrim WIN | |
104 --qtrim-threshold $cTrimQual.trimQualWin | |
105 --qtrim-win-size $cTrimQual.trimQualWinSize | |
106 $cTrimQual.trimQualPostWin | |
107 #end if | |
108 #if $cTrimQual.select == "bwa": | |
109 --qtrim BWA | |
110 --qtrim-threshold $cTrimQual.trimQualBWA | |
111 $cTrimQual.trimQualPostBWA | |
112 #end if | |
113 | |
114 | |
41 | 115 #if $cBarcodes.select == "on": |
116 | |
117 --target flexbar_barcoded/flexbarOut | |
118 | |
119 #if $cBarcodes.ccBarcodes.select == "file": | |
120 --barcodes $cBarcodes.ccBarcodes.barcodeFile | |
121 #end if | |
122 #if $cBarcodes.ccBarcodes.select == "files": | |
123 --barcodes $cBarcodes.ccBarcodes.barcodeFile1 | |
124 --barcodes2 $cBarcodes.ccBarcodes.barcodeFile2 | |
125 #end if | |
126 | |
127 --barcode-error-rate $cBarcodes.bThresh | |
128 | |
129 --barcode-trim-end $cBarcodes.bTrimEnd | |
130 | |
131 #if $cBarcodes.bAdvanced.cbReads.select == "yes": | |
132 --barcode-reads '$outlog'_input3.'$cBarcodes.bAdvanced.cbReads.bReads.extension' | |
133 #end if | |
134 | |
135 #if $cBarcodes.bAdvanced.cbMinOverlap.select == "yes": | |
136 --barcode-min-overlap $cBarcodes.bAdvanced.cbMinOverlap.bMinOverlap | |
137 #end if | |
138 | |
139 $cBarcodes.bAdvanced.bKeep | |
140 $cBarcodes.bAdvanced.bUnassigned | |
141 | |
142 #if $cBarcodes.bAdvanced.cbTailLen.select == "yes": | |
143 --barcode-tail-length $cBarcodes.bAdvanced.cbTailLen.bTailLen | |
144 #end if | |
145 | |
146 #if $cBarcodes.bAdvanced.cbAlignScores.select == "yes": | |
147 --barcode-match $cBarcodes.bAdvanced.cbAlignScores.bMatch | |
148 --barcode-mismatch $cBarcodes.bAdvanced.cbAlignScores.bMismatch | |
149 --barcode-gap $cBarcodes.bAdvanced.cbAlignScores.bGap | |
150 #end if | |
151 #end if | |
152 | |
153 | |
19 | 154 #if $cAdapters.select == "on": |
155 | |
34 | 156 #if $cAdapters.ccAdapters.select == "file": |
157 --adapters '$cAdapters.ccAdapters.adapterFile' | |
19 | 158 #end if |
34 | 159 #if $cAdapters.ccAdapters.select == "files": |
160 --adapters '$cAdapters.ccAdapters.adapterFile1' | |
161 --adapters2 '$cAdapters.ccAdapters.adapterFile2' | |
162 #end if | |
163 #if $cAdapters.ccAdapters.select == "preset": | |
164 --adapter-preset '$cAdapters.ccAdapters.adapterPreset' | |
165 #end if | |
19 | 166 #if $cAdapters.ccAdapters.select == "seq": |
167 --adapter-seq $cAdapters.ccAdapters.adapterSeq | |
168 #end if | |
169 | |
170 --adapter-trim-end $cAdapters.aTrimEnd | |
34 | 171 --adapter-min-overlap $cAdapters.aMinOverlap |
172 --adapter-error-rate $cAdapters.aThresh | |
19 | 173 |
34 | 174 #if $cAdapters.cPairOverlap.select == "on": |
175 --adapter-pair-overlap $cAdapters.cPairOverlap.aPairOverlap | |
176 --adapter-min-poverlap $cAdapters.cPairOverlap.aMinPoverlap | |
177 #end if | |
178 | |
179 #if $cAdapters.aAdvanced.caTailLen.select == "yes": | |
180 --adapter-tail-length $cAdapters.aAdvanced.caTailLen.aTailLen | |
19 | 181 #end if |
182 | |
34 | 183 #if $cAdapters.aAdvanced.cRevComp.select == "on": |
184 --adapter-revcomp ON | |
185 #if $cAdapters.aAdvanced.cRevComp.aRevCompEnd != "off": | |
186 --adapter-revcomp-end $cAdapters.aAdvanced.cRevComp.aRevCompEnd | |
187 #end if | |
188 #end if | |
189 #if $cAdapters.aAdvanced.cRevComp.select == "only": | |
190 --adapter-revcomp ONLY | |
191 #end if | |
19 | 192 |
34 | 193 $cAdapters.aAdvanced.aReadSet |
194 | |
195 --adapter-cycles $cAdapters.aAdvanced.aCycles | |
196 | |
197 #if $cAdapters.aAdvanced.caAlignScores.select == "yes": | |
198 --adapter-match $cAdapters.aAdvanced.caAlignScores.aMatch | |
199 --adapter-mismatch $cAdapters.aAdvanced.caAlignScores.aMismatch | |
200 --adapter-gap $cAdapters.aAdvanced.caAlignScores.aGap | |
19 | 201 #end if |
202 #end if | |
203 | |
204 | |
36 | 205 #if $hTrim.select == "on": |
206 #if $hTrim.hTrimLeft != "": | |
207 --htrim-left $hTrim.hTrimLeft | |
208 #end if | |
209 #if $hTrim.hTrimRight != "": | |
210 --htrim-right $hTrim.hTrimRight | |
211 #end if | |
212 | |
213 --htrim-min-length $hTrim.hMinLength | |
214 --htrim-error-rate $hTrim.hErrorRate | |
215 | |
216 #if $hTrim.hAdvanced.hMinLength2 != "": | |
217 --htrim-min-length2 $hTrim.hAdvanced.hMinLength2 | |
218 #end if | |
219 #if $hTrim.hAdvanced.hMaxLength != "": | |
220 --htrim-max-length $hTrim.hAdvanced.hMaxLength | |
221 #end if | |
222 | |
223 $hTrim.hAdvanced.hMaxFirst | |
224 $hTrim.hAdvanced.hTrimAdapter | |
225 #end if | |
226 | |
227 | |
228 #if $cTrimLen.select == "on": | |
229 --post-trim-length $cTrimLen.trimLen | |
230 #end if | |
231 | |
34 | 232 #if $cAddOptions.select == "show": |
233 $cAddOptions.logLevel | |
234 $cAddOptions.numTags | |
235 $cAddOptions.remTags | |
236 $cAddOptions.rndTags | |
237 $cAddOptions.singleReadsP | |
238 | |
239 #if $cAddOptions.cReadBundle.select == "show": | |
240 --bundle $cAddOptions.cReadBundle.bundle | |
241 | |
242 #if $cAddOptions.cReadBundle.bundles != "": | |
243 --bundles $cAddOptions.cReadBundle.bundles | |
244 #end if | |
245 #end if | |
19 | 246 #end if |
247 | |
41 | 248 #if $cBarcodes.select == "off": |
249 #if $reads.mode == "se": | |
250 --output-reads '$rsout'.'$reads.rs.extension' | |
251 #elif $reads.mode == "pe": | |
252 --output-reads '$r1out'.'$reads.r1.extension' | |
253 --output-reads2 '$r2out'.'$reads.r2.extension' | |
254 #else: | |
255 --output-reads '$rcout.forward'.'$reads.rc.forward.extension' | |
256 --output-reads2 '$rcout.reverse'.'$reads.rc.reverse.extension' | |
257 #end if | |
34 | 258 #end if |
19 | 259 |
34 | 260 --output-log '$outlog' |
261 | |
41 | 262 #if $cBarcodes.select == "on": |
263 flexbar_barcoded | |
264 #end if | |
265 | |
34 | 266 ]]> |
19 | 267 </command> |
268 | |
22 | 269 |
19 | 270 <inputs> |
271 | |
34 | 272 <conditional name="reads"> |
273 <param name="mode" type="select" label="Sequencing reads"> | |
274 <option value="se">Single read file</option> | |
275 <option value="pe" selected="true">Paired read files</option> | |
276 <option value="pc">Paired read collection</option> | |
19 | 277 </param> |
34 | 278 <when value="se"> |
39 | 279 <param name="rs" type="data" format="fastqsanger,fastqsolexa,fastqillumina,fastqsanger.gz,fastqsolexa.gz,fastqillumina.gz,fastqsanger.bz2,fastqsolexa.bz2,fastqillumina.bz2" label="Fastq read file"/> |
20 | 280 </when> |
34 | 281 <when value="pe"> |
39 | 282 <param name="r1" type="data" format="fastqsanger,fastqsolexa,fastqillumina,fastqsanger.gz,fastqsolexa.gz,fastqillumina.gz,fastqsanger.bz2,fastqsolexa.bz2,fastqillumina.bz2" label="Fastq read file 1"/> |
283 <param name="r2" type="data" format="fastqsanger,fastqsolexa,fastqillumina,fastqsanger.gz,fastqsolexa.gz,fastqillumina.gz,fastqsanger.bz2,fastqsolexa.bz2,fastqillumina.bz2" label="Fastq read file 2"/> | |
34 | 284 </when> |
285 <when value="pc"> | |
39 | 286 <param name="rc" format="fastqsanger,fastqsolexa,fastqillumina,fastqsanger.gz,fastqsolexa.gz,fastqillumina.gz,fastqsanger.bz2,fastqsolexa.bz2,fastqillumina.bz2" type="data_collection" collection_type="paired" label="Fastq pair collection"/> |
19 | 287 </when> |
288 </conditional> | |
289 | |
34 | 290 <param name="maxUncalled" size="4" type="integer" value="0" label="1) Maximum uncalled bases"/> |
19 | 291 |
292 <conditional name="trimEnds"> | |
34 | 293 <param name="select" type="select" label="2) Trimming of read ends"> |
19 | 294 <option value="off" selected="true">Off</option> |
295 <option value="on">On</option> | |
296 </param> | |
20 | 297 <when value="off"> |
298 </when> | |
19 | 299 <when value="on"> |
34 | 300 <param name="trimLeft" size="4" type="integer" value="0" label="Left"/> |
301 <param name="trimRight" size="4" type="integer" value="0" label="Right" help="trims specified number of bases at ends"/> | |
302 </when> | |
303 </conditional> | |
304 | |
305 <conditional name="cTrimQual"> | |
306 <param name="select" type="select" label="3) Quality-based trimming"> | |
307 <option value="off" selected="true">Off</option> | |
308 <option value="tail">Tail</option> | |
309 <option value="win">Window</option> | |
310 <option value="bwa">BWA</option> | |
311 </param> | |
312 <when value="off"> | |
313 </when> | |
314 <when value="tail"> | |
315 <param name="trimQualTail" size="4" type="integer" value="20" label="Quality threshold" help="trim right end until specified quality or higher"/> | |
22 | 316 |
34 | 317 <param name="trimQualPostTail" type="select" label="After adapter removal"> |
318 <option value="" selected="true">No</option> | |
319 <option value="--qtrim-post-removal">Yes</option> | |
320 </param> | |
321 </when> | |
322 <when value="win"> | |
323 <param name="trimQualWin" size="4" type="integer" value="20" label="Quality threshold"/> | |
324 <param name="trimQualWinSize" size="4" type="integer" value="5" label="Window length" help="sliding window average quality approach from left end"/> | |
19 | 325 |
34 | 326 <param name="trimQualPostWin" type="select" label="After adapter removal"> |
327 <option value="" selected="true">No</option> | |
328 <option value="--qtrim-post-removal">Yes</option> | |
329 </param> | |
330 </when> | |
331 <when value="bwa"> | |
332 <param name="trimQualBWA" size="4" type="integer" value="20" label="Quality threshold" help="trimming approach used by BWA"/> | |
19 | 333 |
34 | 334 <param name="trimQualPostBWA" type="select" label="After adapter removal"> |
335 <option value="" selected="true">No</option> | |
336 <option value="--qtrim-post-removal">Yes</option> | |
337 </param> | |
19 | 338 </when> |
339 </conditional> | |
340 | |
341 | |
41 | 342 <conditional name="cBarcodes"> |
343 <param name="select" type="select" label="4) Barcode detection"> | |
344 <option value="off" selected="true">Off</option> | |
345 <option value="on">On</option> | |
346 </param> | |
347 <when value="off"> | |
348 </when> | |
349 <when value="on"> | |
350 <conditional name="ccBarcodes"> | |
351 <param name="select" type="select" label="Barcodes"> | |
352 <option value="file" selected="true">Barcode file</option> | |
353 <option value="files">Two barcode files</option> | |
354 </param> | |
355 <when value="file"> | |
356 <param format="fasta" name="barcodeFile" type="data" label="Fasta file with barcodes for reads 1"/> | |
357 </when> | |
358 <when value="files"> | |
359 <param format="fasta" name="barcodeFile1" type="data" label="Fasta file with barcodes for reads 1"/> | |
360 <param format="fasta" name="barcodeFile2" type="data" label="Fasta file with barcodes for reads 2"/> | |
361 </when> | |
362 </conditional> | |
363 | |
364 <param name="bThresh" size="4" type="float" value="0.0" label="Error rate" help="allowed fraction of mismatches and indels"/> | |
365 | |
366 <param name="bTrimEnd" type="select" label="Trim-end mode"> | |
367 <option value="LTAIL" selected="true">Left tail</option> | |
368 <option value="LEFT">Left</option> | |
369 <option value="RTAIL">Right tail</option> | |
370 <option value="RIGHT">Right</option> | |
371 <option value="ANY">Any</option> | |
372 </param> | |
373 | |
374 <section name="bAdvanced" title="Advanced options" expanded="false"> | |
375 | |
376 <conditional name="cbReads"> | |
377 <param name="select" type="select" label="Separate barcode reads"> | |
378 <option value="no" selected="true">No</option> | |
379 <option value="yes">Yes</option> | |
380 </param> | |
381 <when value="no"> | |
382 </when> | |
383 <when value="yes"> | |
384 <param name="bReads" type="data" label="Fastq file with separate barcode reads" format="fastqsanger,fastqsolexa,fastqillumina,fastqsanger.gz,fastqsolexa.gz,fastqillumina.gz,fastqsanger.bz2,fastqsolexa.bz2,fastqillumina.bz2"/> | |
385 </when> | |
386 </conditional> | |
387 | |
388 <conditional name="cbMinOverlap"> | |
389 <param name="select" type="select" label="Change minimum overlap" help="default: barcode length"> | |
390 <option value="no" selected="true">No</option> | |
391 <option value="yes">Yes</option> | |
392 </param> | |
393 <when value="no"> | |
394 </when> | |
395 <when value="yes"> | |
396 <param name="bMinOverlap" size="4" type="integer" value="" label="Minimum overlap"/> | |
397 </when> | |
398 </conditional> | |
399 | |
400 <param name="bKeep" type="select" label="Remove barcodes within reads"> | |
401 <option value="" selected="true">Yes</option> | |
402 <option value="--barcode-keep">No</option> | |
403 </param> | |
404 | |
405 <param name="bUnassigned" type="select" label="Include unassigned reads"> | |
406 <option value="" selected="true">No</option> | |
407 <option value="--barcode-unassigned">Yes</option> | |
408 </param> | |
409 | |
410 <conditional name="cbTailLen"> | |
411 <param name="select" type="select" label="Change tail length"> | |
412 <option value="no" selected="true">No</option> | |
413 <option value="yes">Yes</option> | |
414 </param> | |
415 <when value="no"> | |
416 </when> | |
417 <when value="yes"> | |
418 <param name="bTailLen" size="4" type="integer" value="" label="Tail length"/> | |
419 </when> | |
420 </conditional> | |
421 | |
422 <conditional name="cbAlignScores"> | |
423 <param name="select" type="select" label="Modify alignment scores"> | |
424 <option value="no" selected="true">No</option> | |
425 <option value="yes">Yes</option> | |
426 </param> | |
427 <when value="no"> | |
428 </when> | |
429 <when value="yes"> | |
430 <param name="bMatch" size="3" type="integer" value="1" label="Match"/> | |
431 <param name="bMismatch" size="3" type="integer" value="-1" label="Mismatch"/> | |
432 <param name="bGap" size="3" type="integer" value="-9" label="Gap"/> | |
433 </when> | |
434 </conditional> | |
435 </section> | |
436 </when> | |
437 </conditional> | |
438 | |
439 | |
19 | 440 <conditional name="cAdapters"> |
41 | 441 <param name="select" type="select" label="5) Adapter removal"> |
19 | 442 <option value="off" selected="true">Off</option> |
443 <option value="on">On</option> | |
444 </param> | |
20 | 445 <when value="off"> |
446 </when> | |
19 | 447 <when value="on"> |
34 | 448 <conditional name="ccAdapters"> |
449 <param name="select" type="select" label="Adapter source"> | |
450 <option value="file" selected="true">Adapter file</option> | |
451 <option value="files">Two adapter files</option> | |
452 <option value="preset">Illumina preset</option> | |
453 <option value="seq">Single sequence</option> | |
454 </param> | |
455 <when value="file"> | |
456 <param format="fasta" name="adapterFile" type="data" label="Fasta adapter file"/> | |
457 </when> | |
458 <when value="files"> | |
459 <param format="fasta" name="adapterFile1" type="data" label="Fasta adapter file for reads 1"/> | |
460 <param format="fasta" name="adapterFile2" type="data" label="Fasta adapter file for reads 2"/> | |
461 </when> | |
462 <when value="preset"> | |
463 <param name="adapterPreset" type="select" label="Adapter preset"> | |
464 <option value="TruSeq" selected="true">TruSeq LT and HT-based kits</option> | |
465 <option value="SmallRNA">TruSeq Small RNA</option> | |
466 <option value="Methyl">TruSeq DNA Methylation and ScriptSeq</option> | |
467 <option value="Ribo">TruSeq Ribo Profile</option> | |
468 <option value="Nextera">Nextera, AmpliSeq, and TruSight</option> | |
469 <option value="NexteraMP">Nextera Mate Pair</option> | |
470 </param> | |
471 </when> | |
472 <when value="seq"> | |
473 <param name="adapterSeq" size="40" label="Adapter sequence" type="text" value=""/> | |
474 </when> | |
475 </conditional> | |
476 | |
477 <param name="aMinOverlap" size="4" type="integer" value="3" label="Minimum overlap"/> | |
478 <param name="aThresh" size="4" type="float" value="0.1" label="Error rate" help="allowed fraction of mismatches and indels"/> | |
479 | |
480 <param name="aTrimEnd" type="select" label="Trim-end mode"> | |
481 <option value="RIGHT" selected="true">Right</option> | |
482 <option value="LEFT">Left</option> | |
483 <option value="RTAIL">Right tail</option> | |
484 <option value="LTAIL">Left tail</option> | |
485 <option value="ANY">Any</option> | |
486 </param> | |
487 | |
488 <conditional name="cPairOverlap"> | |
489 <param name="select" type="select" label="Pair overlap detection"> | |
490 <option value="off" selected="true">Off</option> | |
491 <option value="on">On</option> | |
492 </param> | |
493 <when value="off"> | |
494 </when> | |
495 <when value="on"> | |
496 <param name="aPairOverlap" type="select" label="Detection mode"> | |
497 <option value="ON" selected="true">Standard</option> | |
498 <option value="SHORT">Trim short</option> | |
499 </param> | |
500 <param name="aMinPoverlap" size="4" type="integer" value="40" label="Minimum pair overlap"/> | |
501 </when> | |
502 </conditional> | |
503 | |
504 <section name="aAdvanced" title="Advanced options" expanded="false"> | |
505 | |
506 <conditional name="caTailLen"> | |
507 <param name="select" type="select" label="Change tail length"> | |
508 <option value="no" selected="true">No</option> | |
509 <option value="yes">Yes</option> | |
510 </param> | |
511 <when value="no"> | |
512 </when> | |
513 <when value="yes"> | |
514 <param name="aTailLen" size="4" type="integer" value="" label="Tail length"/> | |
515 </when> | |
516 </conditional> | |
517 | |
518 <conditional name="cRevComp"> | |
519 <param name="select" type="select" label="Reverse complements of adapters"> | |
520 <option value="off" selected="true">Off</option> | |
521 <option value="on">On</option> | |
522 <option value="only">Only</option> | |
523 </param> | |
524 <when value="off"> | |
525 </when> | |
526 <when value="on"> | |
527 <param name="aRevCompEnd" type="select" label="Different trim-end for reverse complements"> | |
528 <option value="off" selected="true">Off</option> | |
529 <option value="RIGHT">Right</option> | |
530 <option value="LEFT">Left</option> | |
531 <option value="RTAIL">Right tail</option> | |
532 <option value="LTAIL">Left tail</option> | |
533 <option value="ANY">Any</option> | |
534 </param> | |
535 </when> | |
536 </conditional> | |
537 | |
538 | |
539 <param name="aReadSet" type="select" label="Removal for single read set"> | |
36 | 540 <option value="" selected="true">Off</option> |
34 | 541 <option value="--adapter-read-set 1">1st</option> |
542 <option value="--adapter-read-set 2">2nd</option> | |
543 </param> | |
544 | |
545 <param name="aCycles" size="4" type="integer" value="1" label="Number of removal cycles"/> | |
546 | |
547 <conditional name="caAlignScores"> | |
548 <param name="select" type="select" label="Modify alignment scores"> | |
549 <option value="no" selected="true">No</option> | |
550 <option value="yes">Yes</option> | |
551 </param> | |
552 <when value="no"> | |
553 </when> | |
554 <when value="yes"> | |
555 <param name="aMatch" size="3" type="integer" value="1" label="Match"/> | |
556 <param name="aMismatch" size="3" type="integer" value="-1" label="Mismatch"/> | |
557 <param name="aGap" size="3" type="integer" value="-6" label="Gap"/> | |
558 </when> | |
559 </conditional> | |
560 </section> | |
19 | 561 </when> |
562 </conditional> | |
563 | |
564 | |
36 | 565 <conditional name="hTrim"> |
41 | 566 <param name="select" type="select" label="6) Trimming of homopolymers"> |
36 | 567 <option value="off" selected="true">Off</option> |
568 <option value="on">On</option> | |
569 </param> | |
570 <when value="off"> | |
571 </when> | |
572 <when value="on"> | |
573 <param name="hTrimLeft" size="4" label="Trim homopolymers on left end" type="text" value="" optional="true"/> | |
574 <param name="hTrimRight" size="4" label="Trim homopolymers on right end" type="text" value="" optional="true" help="for example AT"/> | |
575 | |
576 <param name="hMinLength" size="4" type="integer" value="3" label="Minimum length"/> | |
577 <param name="hErrorRate" size="4" type="float" value="0.1" label="Error rate"/> | |
578 | |
579 <section name="hAdvanced" title="Advanced options" expanded="false"> | |
580 | |
581 <param name="hMaxLength" size="4" type="integer" value="" label="Maximum length" optional="true"/> | |
582 | |
583 <param name="hMaxFirst" type="select" label="Maximum length only for first one"> | |
584 <option value="" selected="true">Off</option> | |
585 <option value="--htrim-max-first">On</option> | |
586 </param> | |
587 | |
588 <param name="hMinLength2" size="4" type="integer" value="" label="Minimum length after first one" optional="true"/> | |
589 | |
590 <param name="hTrimAdapter" type="select" label="Only in case of adapter on same side"> | |
591 <option value="" selected="true">Off</option> | |
592 <option value="--htrim-adapter">On</option> | |
593 </param> | |
594 </section> | |
595 </when> | |
596 </conditional> | |
597 | |
598 | |
34 | 599 <conditional name="cTrimLen"> |
41 | 600 <param name="select" type="select" label="7) Trimming to length"> |
22 | 601 <option value="off" selected="true">Off</option> |
34 | 602 <option value="on">On</option> |
22 | 603 </param> |
604 <when value="off"> | |
605 </when> | |
34 | 606 <when value="on"> |
607 <param name="trimLen" size="4" type="integer" value="" label="Length" help="trim reads to certain length from right"/> | |
22 | 608 </when> |
609 </conditional> | |
19 | 610 |
41 | 611 <param name="minReadLen" size="4" type="integer" value="20" label="8) Minimum read length"/> |
34 | 612 |
613 <conditional name="cAddOptions"> | |
614 <param name="select" type="select" label="Additional options"> | |
615 <option value="hide" selected="true">Hide</option> | |
19 | 616 <option value="show">Show</option> |
617 </param> | |
34 | 618 <when value="hide"> |
20 | 619 </when> |
19 | 620 <when value="show"> |
621 <param name="logLevel" type="select" label="Alignment logging"> | |
622 <option value="" selected="true">Off</option> | |
31 | 623 <option value="--align-log ALL">All</option> |
624 <option value="--align-log MOD">Modified</option> | |
625 <option value="--align-log TAB">Tabular</option> | |
19 | 626 </param> |
627 | |
628 <param name="numTags" type="select" label="Number tags"> | |
629 <option value="" selected="true">Off</option> | |
630 <option value="--number-tags">On</option> | |
631 </param> | |
632 | |
633 <param name="remTags" type="select" label="Removal tags"> | |
634 <option value="" selected="true">Off</option> | |
635 <option value="--removal-tags">On</option> | |
636 </param> | |
637 | |
31 | 638 <param name="rndTags" type="select" label="UMI tags"> |
19 | 639 <option value="" selected="true">Off</option> |
31 | 640 <option value="--umi-tags">On</option> |
19 | 641 </param> |
34 | 642 |
643 <param name="singleReadsP" type="select" label="Single reads as paired"> | |
644 <option value="" selected="true">Off</option> | |
645 <option value="--single-reads-paired">On</option> | |
646 </param> | |
647 | |
648 <conditional name="cReadBundle"> | |
649 <param name="select" type="select" label="Read bundle options"> | |
650 <option value="hide" selected="true">Hide</option> | |
651 <option value="show">Show</option> | |
652 </param> | |
653 <when value="hide"> | |
654 </when> | |
655 <when value="show"> | |
656 <param name="bundle" size="4" type="integer" value="256" label="Number of paired reads per bundle"/> | |
657 <param name="bundles" size="4" type="integer" value="" optional="true" label="Only certain number of bundles for testing"/> | |
658 </when> | |
659 </conditional> | |
19 | 660 </when> |
661 </conditional> | |
662 | |
663 </inputs> | |
23
0ef7736004bb
Use of galaxy variable to control number of threads.
jtilman
parents:
22
diff
changeset
|
664 |
19 | 665 <outputs> |
34 | 666 <data name="outlog" format="txt" label="Flexbar log for ${on_string}"/> |
667 | |
668 <data name="rsout" label="Flexbar on ${reads.rs.name}" format_source="rs"> | |
669 <filter>reads['mode'] == 'se'</filter> | |
41 | 670 <filter>cBarcodes['select'] == "off"</filter> |
34 | 671 </data> |
672 | |
673 <data name="r1out" label="Flexbar on ${reads.r1.name}" format_source="r1"> | |
674 <filter>reads['mode'] == "pe"</filter> | |
41 | 675 <filter>cBarcodes['select'] == "off"</filter> |
34 | 676 </data> |
677 <data name="r2out" label="Flexbar on ${reads.r2.name}" format_source="r2"> | |
678 <filter>reads['mode'] == "pe"</filter> | |
41 | 679 <filter>cBarcodes['select'] == "off"</filter> |
34 | 680 </data> |
681 | |
682 <collection name="rcout" type="paired" label="Flexbar on ${on_string}"> | |
683 <filter>reads['mode'] == "pc"</filter> | |
41 | 684 <filter>cBarcodes['select'] == "off"</filter> |
34 | 685 <data name="forward" label="Flexbar on ${reads.rc.forward.name}" format_source="rc['forward']"/> |
686 <data name="reverse" label="Flexbar on ${reads.rc.reverse.name}" format_source="rc['reverse']"/> | |
687 </collection> | |
41 | 688 |
689 <collection type="list" label="Flexbar on ${on_string}" name="barcoded"> | |
690 <filter>cBarcodes['select'] == "on"</filter> | |
691 <discover_datasets pattern="__designation_and_ext__" directory="flexbar_barcoded" visible="true"/> | |
692 </collection> | |
693 | |
19 | 694 </outputs> |
695 | |
696 <help> | |
697 | |
698 **Description** | |
699 | |
31 | 700 The program Flexbar preprocesses high-throughput sequencing data efficiently. It demultiplexes barcoded runs and removes adapter sequences. Moreover, trimming and filtering features are provided. Flexbar increases read mapping rates and improves genome as well as transcriptome assemblies. Unique molecular identifiers can be extracted in a flexible way. The program supports sequencing data in fastq format, e.g. from the Illumina platform. Flexbar is available on the project_ page. |
19 | 701 |
24 | 702 .. _project: https://github.com/seqan/flexbar |
19 | 703 |
704 ------ | |
705 | |
706 **Trim-end modes** | |
707 | |
22 | 708 **Any:** longer side of read remains after overlap removal |
19 | 709 |
22 | 710 **Left:** right side remains after removal, align before or at read end |
19 | 711 |
22 | 712 **Right:** left part remains after removal, align after or at read start |
19 | 713 |
22 | 714 **Left tail:** consider first n bases of reads in alignment |
19 | 715 |
22 | 716 **Right tail:** use only last n bases, see tail-length options |
19 | 717 |
718 ------ | |
719 | |
720 **Documentation** | |
721 | |
31 | 722 Further documentation is available on the `manual`__ page and via the command line help screen. |
19 | 723 |
24 | 724 .. __: https://github.com/seqan/flexbar/wiki |
19 | 725 |
726 ------ | |
727 | |
31 | 728 **References** |
19 | 729 |
31 | 730 Johannes T. Roehr, Christoph Dieterich, Knut Reinert: |
731 Flexbar 3.0 – SIMD and multicore parallelization. Bioinformatics 2017. | |
732 | |
733 Matthias Dodt, Johannes T. Roehr, Rina Ahmed, Christoph Dieterich: | |
734 Flexbar – flexible barcode and adapter processing for next-generation sequencing platforms. Biology 2012. | |
19 | 735 |
736 </help> | |
737 | |
738 </tool> | |
739 |