Mercurial > repos > pjbriggs > trimmomatic
comparison trimmomatic.xml @ 11:59054f086eca draft
Version 0.36.6 (output logs and handle fastqillumina and fastqsolexa inputs)
author | pjbriggs |
---|---|
date | Fri, 05 Oct 2018 05:19:17 -0400 |
parents | dfa082f84068 |
children | 898b67846b47 |
comparison
equal
deleted
inserted
replaced
10:dfa082f84068 | 11:59054f086eca |
---|---|
1 <tool id="trimmomatic" name="Trimmomatic" version="0.36.5"> | 1 <tool id="trimmomatic" name="Trimmomatic" version="0.36.6"> |
2 <description>flexible read trimming tool for Illumina NGS data</description> | 2 <description>flexible read trimming tool for Illumina NGS data</description> |
3 <macros> | 3 <macros> |
4 <import>trimmomatic_macros.xml</import> | 4 <import>trimmomatic_macros.xml</import> |
5 </macros> | 5 </macros> |
6 <requirements> | 6 <requirements> |
22 #else | 22 #else |
23 ln -s '$fastq_in' fastq_in.'$fastq_in.extension' && | 23 ln -s '$fastq_in' fastq_in.'$fastq_in.extension' && |
24 #end if | 24 #end if |
25 java \${_JAVA_OPTIONS:--Xmx8G} -jar \$TRIMMOMATIC_JAR_PATH/trimmomatic.jar | 25 java \${_JAVA_OPTIONS:--Xmx8G} -jar \$TRIMMOMATIC_JAR_PATH/trimmomatic.jar |
26 #if $readtype.single_or_paired in ["pair_of_files","collection"] | 26 #if $readtype.single_or_paired in ["pair_of_files","collection"] |
27 PE -threads \${GALAXY_SLOTS:-6} -phred33 | 27 PE -threads \${GALAXY_SLOTS:-6} |
28 fastq_r1.'$r1_ext' fastq_r2.'$r2_ext' | 28 fastq_r1.'$r1_ext' fastq_r2.'$r2_ext' |
29 fastq_out_r1_paired.'$r1_ext' fastq_out_r1_unpaired.'$r1_ext' | 29 fastq_out_r1_paired.'$r1_ext' fastq_out_r1_unpaired.'$r1_ext' |
30 fastq_out_r2_paired.'$r2_ext' fastq_out_r2_unpaired.'$r2_ext' | 30 fastq_out_r2_paired.'$r2_ext' fastq_out_r2_unpaired.'$r2_ext' |
31 #else | 31 #else |
32 SE -threads \${GALAXY_SLOTS:-6} -phred33 fastq_in.'$fastq_in.extension' fastq_out.'$fastq_in.extension' | 32 SE -threads \${GALAXY_SLOTS:-6} fastq_in.'$fastq_in.extension' fastq_out.'$fastq_in.extension' |
33 #end if | 33 #end if |
34 ## ILLUMINACLIP option | 34 ## ILLUMINACLIP option |
35 #if $illuminaclip.do_illuminaclip | 35 #if $illuminaclip.do_illuminaclip |
36 #if $illuminaclip.adapter_type.standard_or_custom == "custom" | 36 #if $illuminaclip.adapter_type.standard_or_custom == "custom" |
37 #if $readtype.single_or_paired in ["pair_of_files","collection"] | 37 #if $readtype.single_or_paired in ["pair_of_files","collection"] |
74 #end if | 74 #end if |
75 #if str( $op.operation.name ) == "MAXINFO" | 75 #if str( $op.operation.name ) == "MAXINFO" |
76 MAXINFO:$op.operation.target_length:$op.operation.strictness | 76 MAXINFO:$op.operation.target_length:$op.operation.strictness |
77 #end if | 77 #end if |
78 #end for | 78 #end for |
79 #if $output_logs: | |
80 -trimlog trimlog | |
81 #end if | |
79 2>&1 | tee trimmomatic.log && | 82 2>&1 | tee trimmomatic.log && |
80 if [ -z "\$(tail -1 trimmomatic.log | grep "Completed successfully")" ]; then echo "Trimmomatic did not finish successfully" >&2 ; exit 1 ; fi | 83 if [ -z "\$(tail -1 trimmomatic.log | grep "Completed successfully")" ]; then echo "Trimmomatic did not finish successfully" >&2 ; exit 1 ; fi |
81 && | 84 && |
82 #if $readtype.single_or_paired == "pair_of_files" | 85 #if $readtype.single_or_paired == "pair_of_files" |
83 mv fastq_out_r1_paired.'$r1_ext' '${fastq_out_r1_paired}' && | 86 mv fastq_out_r1_paired.'$r1_ext' '${fastq_out_r1_paired}' && |
107 <option value="se" selected="true">Single-end</option> | 110 <option value="se" selected="true">Single-end</option> |
108 <option value="pair_of_files">Paired-end (two separate input files)</option> | 111 <option value="pair_of_files">Paired-end (two separate input files)</option> |
109 <option value="collection">Paired-end (as collection)</option> | 112 <option value="collection">Paired-end (as collection)</option> |
110 </param> | 113 </param> |
111 <when value="se"> | 114 <when value="se"> |
112 <param name="fastq_in" type="data" format="fastqsanger,fastqsanger.gz" label="Input FASTQ file" /> | 115 <param name="fastq_in" type="data" format="fastqsanger,fastqsanger.gz,fastqillumina,fastqillumina.gz,fastqsolexa,fastqsolexa.gz" label="Input FASTQ file" /> |
113 </when> | 116 </when> |
114 <when value="pair_of_files"> | 117 <when value="pair_of_files"> |
115 <param name="fastq_r1_in" type="data" format="fastqsanger,fastqsanger.gz" | 118 <param name="fastq_r1_in" type="data" format="fastqsanger,fastqsanger.gz,fastqillumina,fastqillumina.gz,fastqsolexa,fastqsolexa.gz" |
116 label="Input FASTQ file (R1/first of pair)" /> | 119 label="Input FASTQ file (R1/first of pair)" /> |
117 <param name="fastq_r2_in" type="data" format="fastqsanger,fastqsanger.gz" | 120 <param name="fastq_r2_in" type="data" format="fastqsanger,fastqsanger.gz,fastqillumina,fastqillumina.gz,fastqsolexa,fastqsolexa.gz" |
118 label="Input FASTQ file (R2/second of pair)" /> | 121 label="Input FASTQ file (R2/second of pair)" /> |
119 </when> | 122 </when> |
120 <when value="collection"> | 123 <when value="collection"> |
121 <param name="fastq_pair" format="fastqsanger,fastqsanger.gz" type="data_collection" collection_type="paired" label="Select FASTQ dataset collection with R1/R2 pair" /> | 124 <param name="fastq_pair" format="fastqsanger,fastqsanger.gz,fastqillumina,fastqillumina.gz,fastqsolexa,fastqsolexa.gz" type="data_collection" collection_type="paired" label="Select FASTQ dataset collection with R1/R2 pair" /> |
122 </when> | 125 </when> |
123 </conditional> | 126 </conditional> |
124 <conditional name="illuminaclip"> | 127 <conditional name="illuminaclip"> |
125 <param name="do_illuminaclip" type="boolean" label="Perform initial ILLUMINACLIP step?" help="Cut adapter and other illumina-specific sequences from the read" truevalue="yes" falsevalue="no" checked="False" /> | 128 <param name="do_illuminaclip" type="boolean" label="Perform initial ILLUMINACLIP step?" help="Cut adapter and other illumina-specific sequences from the read" truevalue="yes" falsevalue="no" checked="False" /> |
126 <when value="yes"> | 129 <when value="yes"> |
196 <param name="target_length" type="integer" label="Target read length" value="" help="The read length which is likely to allow the location of the read within the target sequence to be determined." /> | 199 <param name="target_length" type="integer" label="Target read length" value="" help="The read length which is likely to allow the location of the read within the target sequence to be determined." /> |
197 <param name="strictness" type="float" label="Strictness" value="" help="Set between zero and one - specifies the balance between preserving read length versus removal of incorrect bases; low values (<0.2) favours longer reads, high values (>0.8) favours read correctness." /> | 200 <param name="strictness" type="float" label="Strictness" value="" help="Set between zero and one - specifies the balance between preserving read length versus removal of incorrect bases; low values (<0.2) favours longer reads, high values (>0.8) favours read correctness." /> |
198 </when> | 201 </when> |
199 </conditional> | 202 </conditional> |
200 </repeat> | 203 </repeat> |
204 <param name="output_logs" argument="-trimlog" type="boolean" label="Output trimlog file?" truevalue="yes" falsevalue="no" checked="False" /> | |
205 <param name="output_err" type="boolean" label="Output trimmomatic log messages?" truevalue="yes" falsevalue="no" checked="False" help="these are the messages written to stderr (eg. for use in MultiQC)" /> | |
201 </inputs> | 206 </inputs> |
202 <outputs> | 207 <outputs> |
203 <data name="fastq_out_r1_paired" label="${tool.name} on ${readtype.fastq_r1_in.name} (R1 paired)" format_source="fastq_r1_in"> | 208 <data name="fastq_out_r1_paired" label="${tool.name} on ${readtype.fastq_r1_in.name} (R1 paired)" format_source="fastq_r1_in"> |
204 <filter>readtype['single_or_paired'] == "pair_of_files"</filter> | 209 <filter>readtype['single_or_paired'] == "pair_of_files"</filter> |
205 </data> | 210 </data> |
223 <collection name="fastq_out_unpaired" type="paired" label="${tool.name} on ${on_string}: unpaired"> | 228 <collection name="fastq_out_unpaired" type="paired" label="${tool.name} on ${on_string}: unpaired"> |
224 <filter>readtype['single_or_paired'] == "collection"</filter> | 229 <filter>readtype['single_or_paired'] == "collection"</filter> |
225 <data name="forward" label="${tool.name} on ${readtype.fastq_pair.forward.name} (R1 unpaired)" format_source="fastq_pair['forward']"/> | 230 <data name="forward" label="${tool.name} on ${readtype.fastq_pair.forward.name} (R1 unpaired)" format_source="fastq_pair['forward']"/> |
226 <data name="reverse" label="${tool.name} on ${readtype.fastq_pair.reverse.name} (R2 unpaired)" format_source="fastq_pair['reverse']"/> | 231 <data name="reverse" label="${tool.name} on ${readtype.fastq_pair.reverse.name} (R2 unpaired)" format_source="fastq_pair['reverse']"/> |
227 </collection> | 232 </collection> |
228 | 233 <data name="log_file" format="txt" label="${tool.name} on ${on_string} (trimlog file)" from_work_dir="trimlog"> |
234 <filter>output_logs</filter> | |
235 </data> | |
236 <data name="err_file" format="txt" label="${tool.name} on ${on_string} (log file)" from_work_dir="trimmomatic.log"> | |
237 <filter>output_err</filter> | |
238 </data> | |
229 </outputs> | 239 </outputs> |
230 <tests> | 240 <tests> |
231 <test> | 241 <test> |
232 <!-- Single-end example --> | 242 <!-- Single-end example --> |
233 <param name="single_or_paired" value="se" /> | 243 <conditional name="readtype"> |
234 <param name="fastq_in" value="Illumina_SG_R1.fastq" ftype="fastqsanger" /> | 244 <param name="single_or_paired" value="se" /> |
235 <param name="operations_0|operation|name" value="SLIDINGWINDOW" /> | 245 <param name="fastq_in" value="Illumina_SG_R1.fastq" ftype="fastqsanger" /> |
246 </conditional> | |
247 <param name="operations_0|operation|name" value="SLIDINGWINDOW" /> | |
248 <param name="output_logs" value="yes" /> | |
249 <param name="output_err" value="yes" /> | |
236 <output name="fastq_out" file="trimmomatic_se_out1.fastq" /> | 250 <output name="fastq_out" file="trimmomatic_se_out1.fastq" /> |
251 <output name="log_file" file="trimmomatic_se_out1.log" /> | |
252 <output name="err_file" file="trimmomatic_se_out1.err" /> | |
237 </test> | 253 </test> |
238 <test> | 254 <test> |
239 <!-- Single-end example - gzipped --> | 255 <!-- Single-end example - gzipped --> |
240 <param name="single_or_paired" value="se" /> | 256 <param name="single_or_paired" value="se" /> |
241 <param name="fastq_in" value="Illumina_SG_R1.fastq.gz" ftype="fastqsanger.gz" /> | 257 <param name="fastq_in" value="Illumina_SG_R1.fastq.gz" ftype="fastqsanger.gz" /> |
261 <param name="operations_0|operation|name" value="SLIDINGWINDOW" /> | 277 <param name="operations_0|operation|name" value="SLIDINGWINDOW" /> |
262 <output name="fastq_out_r1_paired" file="trimmomatic_pe_r1_paired_out1.fastq" /> | 278 <output name="fastq_out_r1_paired" file="trimmomatic_pe_r1_paired_out1.fastq" /> |
263 <output name="fastq_out_r1_unpaired" file="trimmomatic_pe_r1_unpaired_out1.fastq" /> | 279 <output name="fastq_out_r1_unpaired" file="trimmomatic_pe_r1_unpaired_out1.fastq" /> |
264 <output name="fastq_out_r2_paired" file="trimmomatic_pe_r2_paired_out1.fastq" /> | 280 <output name="fastq_out_r2_paired" file="trimmomatic_pe_r2_paired_out1.fastq" /> |
265 <output name="fastq_out_r2_unpaired" file="trimmomatic_pe_r2_unpaired_out1.fastq" /> | 281 <output name="fastq_out_r2_unpaired" file="trimmomatic_pe_r2_unpaired_out1.fastq" /> |
282 </test> | |
283 <test> | |
284 <!-- Paired-end Illumina 1.3-1.7 quality encoding --> | |
285 <param name="single_or_paired" value="pair_of_files" /> | |
286 <param name="fastq_r1_in" value="Illumina_SG_R1.fastqillumina" ftype="fastqillumina" /> | |
287 <param name="fastq_r2_in" value="Illumina_SG_R2.fastqillumina" ftype="fastqillumina" /> | |
288 <param name="operations_0|operation|name" value="SLIDINGWINDOW" /> | |
289 <output name="fastq_out_r1_paired" file="trimmomatic_pe_r1_paired_out1.fastqillumina" /> | |
290 <output name="fastq_out_r1_unpaired" file="trimmomatic_pe_r1_unpaired_out1.fastqillumina" /> | |
291 <output name="fastq_out_r2_paired" file="trimmomatic_pe_r2_paired_out1.fastqillumina" /> | |
292 <output name="fastq_out_r2_unpaired" file="trimmomatic_pe_r2_unpaired_out1.fastqillumina" /> | |
293 </test> | |
294 <test> | |
295 <!-- Paired-end Solexa quality encoding --> | |
296 <param name="single_or_paired" value="pair_of_files" /> | |
297 <param name="fastq_r1_in" value="Illumina_SG_R1.fastqsolexa" ftype="fastqsolexa" /> | |
298 <param name="fastq_r2_in" value="Illumina_SG_R2.fastqsolexa" ftype="fastqsolexa" /> | |
299 <param name="operations_0|operation|name" value="SLIDINGWINDOW" /> | |
300 <output name="fastq_out_r1_paired" file="trimmomatic_pe_r1_paired_out1.fastqsolexa" /> | |
301 <output name="fastq_out_r1_unpaired" file="trimmomatic_pe_r1_unpaired_out1.fastqsolexa" /> | |
302 <output name="fastq_out_r2_paired" file="trimmomatic_pe_r2_paired_out1.fastqsolexa" /> | |
303 <output name="fastq_out_r2_unpaired" file="trimmomatic_pe_r2_unpaired_out1.fastqsolexa" /> | |
266 </test> | 304 </test> |
267 <test> | 305 <test> |
268 <!-- Single-end example (cropping) --> | 306 <!-- Single-end example (cropping) --> |
269 <param name="single_or_paired" value="se" /> | 307 <param name="single_or_paired" value="se" /> |
270 <param name="fastq_in" value="Illumina_SG_R1.fastq" ftype="fastqsanger" /> | 308 <param name="fastq_in" value="Illumina_SG_R1.fastq" ftype="fastqsanger" /> |
433 | 471 |
434 **Credits** | 472 **Credits** |
435 | 473 |
436 This Galaxy tool has been developed within the Bioinformatics Core Facility at the | 474 This Galaxy tool has been developed within the Bioinformatics Core Facility at the |
437 University of Manchester, with contributions from Peter van Heusden, Marius | 475 University of Manchester, with contributions from Peter van Heusden, Marius |
438 van den Beek, Jelle Scholtalbers and Charles Girardot. | 476 van den Beek, Jelle Scholtalbers, Charles Girardot, and Matthias Bernt. |
439 | 477 |
440 It runs the Trimmomatic program which has been developed | 478 It runs the Trimmomatic program which has been developed |
441 within Bjorn Usadel's group at RWTH Aachen university. | 479 within Bjorn Usadel's group at RWTH Aachen university. |
442 | 480 |
443 Trimmomatic website (including documentation): | 481 Trimmomatic website (including documentation): |