Mercurial > repos > jtilman > flexbar
annotate flexbar.xml @ 28:6536146320ef draft
Uploaded
author | jtilman |
---|---|
date | Mon, 02 May 2016 05:19:43 -0400 |
parents | db26fb0c6389 |
children | 18acb52de258 |
rev | line source |
---|---|
19 | 1 |
27 | 2 <!-- Flexbar tool definition for Galaxy, version 2.7 --> |
19 | 3 <!-- Author: Johannes Roehr --> |
4 | |
5 | |
27 | 6 <tool id="flexbar" name="Flexbar" version="2.7" force_history_refresh="True"> |
22 | 7 |
19 | 8 <description>flexible barcode and adapter removal</description> |
9 | |
10 <requirements> | |
27 | 11 <requirement type="binary" version="2.7">flexbar</requirement> |
19 | 12 </requirements> |
13 | |
14 <version_command>flexbar --version</version_command> | |
15 | |
16 <command interpreter="perl"> | |
17 | |
18 flexbar.pl flexbar | |
19 | |
23
0ef7736004bb
Use of galaxy variable to control number of threads.
jtilman
parents:
22
diff
changeset
|
20 --threads \${GALAXY_SLOTS:-1} |
19 | 21 |
22 --reads $reads | |
23 | |
24 #if $cReads2.select == "on": | |
25 #if $cReads2.reads2.ext == $reads.ext: | |
26 --reads2 $cReads2.reads2 | |
27 #end if | |
28 #end if | |
29 | |
30 #if $reads.ext == "fastqsanger": | |
27 | 31 --qtrim-format sanger |
19 | 32 #end if |
33 #if $reads.ext == "fastqsolexa": | |
27 | 34 --qtrim-format solexa |
19 | 35 #end if |
36 #if $reads.ext == "fastqillumina": | |
27 | 37 --qtrim-format i1.3 |
19 | 38 #end if |
39 | |
40 | |
41 --max-uncalled $maxUncalled | |
22 | 42 --min-read-length $minReadLen |
19 | 43 |
44 #if $trimEnds.select == "on": | |
45 --pre-trim-left $trimEnds.trimLeft | |
46 --pre-trim-right $trimEnds.trimRight | |
47 #end if | |
48 | |
49 #if $cTrimPhred.select == "on": | |
27 | 50 --qtrim TAIL --qtrim-threshold $cTrimPhred.trimPhred |
19 | 51 #end if |
52 | |
53 #if $cTrimLen.select == "on": | |
54 --post-trim-length $cTrimLen.trimLen | |
55 #end if | |
56 | |
57 | |
58 #if $cBarcodes.select == "on": | |
59 --barcodes $cBarcodes.barcodes | |
60 | |
61 #if $cBarcodes.cbReads.select == "yes": | |
62 --barcode-reads $cBarcodes.cbReads.bReads | |
63 #end if | |
64 | |
65 #if $cBarcodes.cbReads.select == "no": | |
66 $cBarcodes.cbReads.bKeep | |
67 #end if | |
68 | |
22 | 69 $cBarcodes.bUnassigned |
70 | |
19 | 71 --barcode-trim-end $cBarcodes.bTrimEnd |
72 | |
73 #if $cBarcodes.cbTailLen.select == "yes": | |
74 --barcode-tail-length $cBarcodes.cbTailLen.bTailLen | |
75 #end if | |
76 | |
77 #if $cBarcodes.cbMinOverlap.select == "yes": | |
78 --barcode-min-overlap $cBarcodes.cbMinOverlap.bMinOverlap | |
79 #end if | |
80 | |
22 | 81 --barcode-threshold $cBarcodes.bThresh |
19 | 82 |
83 #if $cBarcodes.cbAlignScores.select == "yes": | |
84 --barcode-match $bMatch | |
85 --barcode-mismatch $bMismatch | |
86 --barcode-gap $bGap | |
87 #end if | |
88 #end if | |
89 | |
90 | |
91 #if $cAdapters.select == "on": | |
92 | |
93 #if $cAdapters.ccAdapters.select == "data": | |
94 --adapters $cAdapters.ccAdapters.adaptersData | |
95 #end if | |
96 | |
97 #if $cAdapters.ccAdapters.select == "seq": | |
98 --adapter-seq $cAdapters.ccAdapters.adapterSeq | |
99 #end if | |
100 | |
101 --adapter-trim-end $cAdapters.aTrimEnd | |
102 | |
103 #if $cAdapters.caTailLen.select == "yes": | |
104 --adapter-tail-length $cAdapters.caTailLen.aTailLen | |
105 #end if | |
106 | |
22 | 107 $cAdapters.aReadSet |
108 | |
19 | 109 --adapter-min-overlap $cAdapters.aMinOverlap |
110 --adapter-threshold $cAdapters.aThresh | |
111 | |
112 #if $cAdapters.caAlignScores.select == "yes": | |
113 --adapter-match $aMatch | |
114 --adapter-mismatch $aMismatch | |
115 --adapter-gap $aGap | |
116 #end if | |
117 #end if | |
118 | |
119 | |
22 | 120 #if $cOutput.select == "show": |
121 $cOutput.fastaOutput | |
122 $cOutput.lenDist | |
123 $cOutput.singleReads | |
124 #end if | |
125 | |
19 | 126 #if $cLogging.select == "show": |
127 $cLogging.logLevel | |
128 $cLogging.numTags | |
129 $cLogging.remTags | |
130 $cLogging.rndTags | |
131 #end if | |
132 | |
133 | |
134 $output $output.id $__new_file_path__ $reads.ext | |
135 | |
136 </command> | |
137 | |
22 | 138 |
19 | 139 <inputs> |
140 | |
27 | 141 <param format="fasta,fastq,fastqsanger,fastqsolexa,fastqillumina" name="reads" type="data" label="Sequencing reads" optional="false"/> |
19 | 142 |
143 | |
144 <conditional name="cReads2"> | |
145 <param name="select" type="select" label="2nd read set (paired)"> | |
146 <option value="off" selected="true">Off</option> | |
147 <option value="on">On</option> | |
148 </param> | |
20 | 149 <when value="off"> |
150 </when> | |
19 | 151 <when value="on"> |
27 | 152 <param format="fasta,fastq,fastqsanger,fastqsolexa,fastqillumina" name="reads2" type="data" label="Reads 2" optional="false" help="same format as first read set"/> |
19 | 153 </when> |
154 </conditional> | |
155 | |
156 | |
157 <param name="maxUncalled" size="4" type="integer" value="0" label="1) Max uncalled" optional="false" help="allowed uncalled bases per read"/> | |
158 | |
159 <conditional name="trimEnds"> | |
160 <param name="select" type="select" label="2) Trimming of ends"> | |
161 <option value="off" selected="true">Off</option> | |
162 <option value="on">On</option> | |
163 </param> | |
20 | 164 <when value="off"> |
165 </when> | |
19 | 166 <when value="on"> |
167 <param name="trimLeft" size="4" type="integer" value="0" label="Left" optional="false"/> | |
168 <param name="trimRight" size="4" type="integer" value="0" label="Right" optional="false" help="trims specified number of bases from read ends"/> | |
169 </when> | |
170 </conditional> | |
171 | |
172 <conditional name="cTrimPhred"> | |
173 <param name="select" type="select" label="3) Phred-trimming"> | |
174 <option value="off" selected="true">Off</option> | |
175 <option value="on">On</option> | |
176 </param> | |
20 | 177 <when value="off"> |
178 </when> | |
19 | 179 <when value="on"> |
180 <param name="trimPhred" size="4" type="integer" value="10" label="Threshold" optional="false" help="trim right end until specified or higher quality reached"/> | |
181 </when> | |
182 </conditional> | |
183 | |
184 | |
185 <conditional name="cBarcodes"> | |
186 <param name="select" type="select" label="4) Barcode detection"> | |
187 <option value="off" selected="true">Off</option> | |
188 <option value="on">On</option> | |
189 </param> | |
20 | 190 <when value="off"> |
191 </when> | |
19 | 192 <when value="on"> |
193 <param format="fasta" name="barcodes" type="data" label="Barcodes" optional="false"/> | |
22 | 194 |
19 | 195 <conditional name="cbReads"> |
196 <param name="select" type="select" label="Separate barcode reads"> | |
197 <option value="no" selected="true">No</option> | |
198 <option value="yes">Yes</option> | |
199 </param> | |
200 <when value="yes"> | |
27 | 201 <param format="fasta,fastq,fastqsanger,fastqsolexa,fastqillumina" name="bReads" type="data" label="Separate barcode reads" optional="false"/> |
19 | 202 </when> |
203 <when value="no"> | |
204 <param name="bKeep" type="select" label="Remove barcodes within reads"> | |
205 <option value="" selected="true">Yes</option> | |
206 <option value="--barcode-keep">No</option> | |
207 </param> | |
208 </when> | |
209 </conditional> | |
22 | 210 |
211 <param name="bUnassigned" type="select" label="Include unassigned reads"> | |
212 <option value="" selected="true">No</option> | |
213 <option value="--barcode-unassigned">Yes</option> | |
214 </param> | |
215 | |
19 | 216 <param name="bTrimEnd" type="select" label="Trim-end mode" optional="false"> |
217 <option value="ANY" selected="true">Any</option> | |
218 <option value="RIGHT">Right</option> | |
219 <option value="RIGHT_TAIL">Right tail</option> | |
220 <option value="LEFT">Left</option> | |
221 <option value="LEFT_TAIL">Left tail</option> | |
222 </param> | |
22 | 223 |
19 | 224 <conditional name="cbTailLen"> |
225 <param name="select" type="select" label="Change tail length"> | |
226 <option value="no" selected="true">No</option> | |
227 <option value="yes">Yes</option> | |
228 </param> | |
20 | 229 <when value="no"> |
230 </when> | |
19 | 231 <when value="yes"> |
232 <param name="bTailLen" size="4" type="integer" value="10" label="Tail length" optional="false"/> | |
233 </when> | |
234 </conditional> | |
235 | |
236 <conditional name="cbMinOverlap"> | |
237 <param name="select" type="select" label="Change min-overlap" help="default: barcode length"> | |
238 <option value="no" selected="true">No</option> | |
239 <option value="yes">Yes</option> | |
240 </param> | |
20 | 241 <when value="no"> |
242 </when> | |
19 | 243 <when value="yes"> |
244 <param name="bMinOverlap" size="4" type="integer" value="8" label="Min-overlap" optional="false"/> | |
245 </when> | |
246 </conditional> | |
247 | |
248 <param name="bThresh" size="4" type="integer" value="1" label="Threshold" optional="false" help="allowed mismatches and indels per 10 bases"/> | |
249 | |
250 <conditional name="cbAlignScores"> | |
251 <param name="select" type="select" label="Modify alignment scores"> | |
252 <option value="no" selected="true">No</option> | |
253 <option value="yes">Yes</option> | |
254 </param> | |
20 | 255 <when value="no"> |
256 </when> | |
19 | 257 <when value="yes"> |
258 <param name="bMatch" size="3" type="integer" value="1" label="Match" optional="false"/> | |
259 <param name="bMismatch" size="3" type="integer" value="-1" label="Mismatch" optional="false"/> | |
22 | 260 <param name="bGap" size="3" type="integer" value="-9" label="Gap" optional="false"/> |
19 | 261 </when> |
262 </conditional> | |
263 </when> | |
264 </conditional> | |
265 | |
266 | |
267 <conditional name="cAdapters"> | |
268 <param name="select" type="select" label="5) Adapter removal"> | |
269 <option value="off" selected="true">Off</option> | |
270 <option value="on">On</option> | |
271 </param> | |
272 | |
20 | 273 <when value="off"> |
274 </when> | |
19 | 275 <when value="on"> |
276 <conditional name="ccAdapters"> | |
277 <param name="select" type="select" label="Adapter source"> | |
278 <option value="data" selected="true">Fasta</option> | |
279 <option value="seq">Sequence</option> | |
280 <!-- <option value="file">File</option> --> | |
281 </param> | |
282 <when value="data"> | |
283 <param format="fasta" name="adaptersData" type="data" label="Adapters" optional="false"/> | |
284 </when> | |
285 <when value="seq"> | |
286 <param name="adapterSeq" size="40" label="Adapter" type="text" value="AAAAAAAAAAAAAA" optional="false"/> | |
287 </when> | |
288 <!-- <when value="file"> | |
289 <param name="adaptersFile" type="file" label="Adapters file" optional="false"/> | |
290 </when> --> | |
291 </conditional> | |
292 | |
293 <param name="aTrimEnd" type="select" label="Trim-end mode" optional="false"> | |
294 <option value="ANY">Any</option> | |
295 <option value="RIGHT" selected="true">Right</option> | |
296 <option value="RIGHT_TAIL">Right tail</option> | |
297 <option value="LEFT">Left</option> | |
298 <option value="LEFT_TAIL">Left tail</option> | |
299 </param> | |
300 | |
301 <conditional name="caTailLen"> | |
302 <param name="select" type="select" label="Change tail length"> | |
303 <option value="no" selected="true">No</option> | |
304 <option value="yes">Yes</option> | |
305 </param> | |
20 | 306 <when value="no"> |
307 </when> | |
19 | 308 <when value="yes"> |
309 <param name="aTailLen" size="4" type="integer" value="10" label="Tail length" optional="false"/> | |
310 </when> | |
311 </conditional> | |
312 | |
22 | 313 <param name="aReadSet" type="select" label="Removal for single read set"> |
314 <option value="" selected="true">No</option> | |
315 <option value="--adapter-read-set 1">1st</option> | |
316 <option value="--adapter-read-set 2">2nd</option> | |
317 </param> | |
318 | |
19 | 319 <param name="aMinOverlap" size="4" type="integer" value="1" label="Min-overlap" optional="false"/> |
320 <param name="aThresh" size="4" type="integer" value="3" label="Threshold" optional="false" help="allowed mismatches and indels per 10 bases"/> | |
321 | |
322 <conditional name="caAlignScores"> | |
323 <param name="select" type="select" label="Modify alignment scores"> | |
324 <option value="no" selected="true">No</option> | |
325 <option value="yes">Yes</option> | |
326 </param> | |
20 | 327 <when value="no"> |
328 </when> | |
19 | 329 <when value="yes"> |
330 <param name="aMatch" size="3" type="integer" value="1" label="Match" optional="false"/> | |
331 <param name="aMismatch" size="3" type="integer" value="-1" label="Mismatch" optional="false"/> | |
332 <param name="aGap" size="3" type="integer" value="-7" label="Gap" optional="false"/> | |
333 </when> | |
334 </conditional> | |
335 </when> | |
336 </conditional> | |
337 | |
338 | |
339 <conditional name="cTrimLen"> | |
340 <param name="select" type="select" label="6) Trimming to length"> | |
341 <option value="off" selected="true">Off</option> | |
342 <option value="on">On</option> | |
343 </param> | |
20 | 344 <when value="off"> |
345 </when> | |
19 | 346 <when value="on"> |
347 <param name="trimLen" size="4" type="integer" value="30" label="Length" optional="false" help="trim reads to certain length from right"/> | |
348 </when> | |
349 </conditional> | |
350 | |
351 <param name="minReadLen" size="4" type="integer" value="18" label="7) Minimum read length" optional="false" help="shorter reads are discarded"/> | |
352 | |
22 | 353 <conditional name="cOutput"> |
354 <param name="select" type="select" label="Output selection"> | |
355 <option value="off" selected="true">Off</option> | |
356 <option value="show">Show</option> | |
357 </param> | |
358 <when value="off"> | |
359 </when> | |
360 <when value="show"> | |
361 <param name="fastaOutput" type="select" label="Fasta output"> | |
362 <option value="" selected="true">Off</option> | |
363 <option value="--fasta-output">Always</option> | |
364 </param> | |
365 | |
366 <param name="lenDist" type="select" label="Read length distribution"> | |
367 <option value="" selected="true">Off</option> | |
368 <option value="--length-dist">On</option> | |
369 </param> | |
370 | |
371 <param name="singleReads" type="select" label="Single reads"> | |
372 <option value="" selected="true">Off</option> | |
373 <option value="--single-reads">On</option> | |
374 </param> | |
375 </when> | |
376 </conditional> | |
19 | 377 |
378 <conditional name="cLogging"> | |
379 <param name="select" type="select" label="Logging and tagging options"> | |
380 <option value="off" selected="true">Off</option> | |
381 <option value="show">Show</option> | |
382 </param> | |
20 | 383 <when value="off"> |
384 </when> | |
19 | 385 <when value="show"> |
386 <param name="logLevel" type="select" label="Alignment logging"> | |
387 <option value="" selected="true">Off</option> | |
388 <option value="--log-level ALL">All</option> | |
389 <option value="--log-level MOD">Modified</option> | |
390 <option value="--log-level TAB">Tabular</option> | |
391 </param> | |
392 | |
393 <param name="numTags" type="select" label="Number tags"> | |
394 <option value="" selected="true">Off</option> | |
395 <option value="--number-tags">On</option> | |
396 </param> | |
397 | |
398 <param name="remTags" type="select" label="Removal tags"> | |
399 <option value="" selected="true">Off</option> | |
400 <option value="--removal-tags">On</option> | |
401 </param> | |
402 | |
403 <param name="rndTags" type="select" label="Random tags"> | |
404 <option value="" selected="true">Off</option> | |
405 <option value="--random-tags">On</option> | |
406 </param> | |
407 </when> | |
408 </conditional> | |
409 | |
410 </inputs> | |
23
0ef7736004bb
Use of galaxy variable to control number of threads.
jtilman
parents:
22
diff
changeset
|
411 |
19 | 412 <stdio> |
413 <exit_code range="1:" level="fatal" description="Error!" /> | |
414 </stdio> | |
415 | |
416 <outputs> | |
417 <data format="txt" name="output" metadata_source="reads"/> | |
418 </outputs> | |
419 | |
420 | |
421 <help> | |
422 | |
423 **Description** | |
424 | |
27 | 425 Flexbar processes 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. It supports next-generation sequencing data in fasta and fastq format, e.g. from Roche 454 and the Illumina platform. Flexbar is available on the project_ page. |
19 | 426 |
24 | 427 .. _project: https://github.com/seqan/flexbar |
19 | 428 |
429 ------ | |
430 | |
431 **Trim-end modes** | |
432 | |
22 | 433 **Any:** longer side of read remains after overlap removal |
19 | 434 |
22 | 435 **Left:** right side remains after removal, align before or at read end |
19 | 436 |
22 | 437 **Right:** left part remains after removal, align after or at read start |
19 | 438 |
22 | 439 **Left tail:** consider first n bases of reads in alignment |
19 | 440 |
22 | 441 **Right tail:** use only last n bases, see tail-length options |
19 | 442 |
443 ------ | |
444 | |
445 **Documentation** | |
446 | |
447 Further documentation is available on the `manual`__ wiki page and via the command line help screen. | |
448 | |
24 | 449 .. __: https://github.com/seqan/flexbar/wiki |
19 | 450 |
451 ------ | |
452 | |
453 **Reference** | |
454 | |
455 Matthias Dodt, Johannes T. Roehr, Rina Ahmed, Christoph Dieterich: Flexbar — flexible barcode and adapter processing for next-generation sequencing platforms. Biology 2012, 1(3):895-905. | |
456 | |
457 </help> | |
458 | |
459 </tool> | |
460 |