Mercurial > repos > iuc > fastp
comparison fastp.xml @ 15:a626e8c0e1ba draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fastp commit 17a0a67dfbc7541a7fe3618cfbbb71d814042889
author | iuc |
---|---|
date | Fri, 15 Nov 2024 15:31:53 +0000 |
parents | ecb9f4854617 |
children |
comparison
equal
deleted
inserted
replaced
14:ecb9f4854617 | 15:a626e8c0e1ba |
---|---|
1 <tool id="fastp" name="fastp" version="@TOOL_VERSION@+galaxy0" profile="23.1"> | 1 <tool id="fastp" name="fastp" version="@TOOL_VERSION@+galaxy3" profile="23.1"> |
2 <description>fast all-in-one preprocessing for FASTQ files</description> | 2 <description>fast all-in-one preprocessing for FASTQ files</description> |
3 <macros> | 3 <macros> |
4 <import>macros.xml</import> | 4 <import>macros.xml</import> |
5 </macros> | 5 </macros> |
6 <expand macro="biotools" /> | 6 <expand macro="biotools" /> |
16 #set ext = '.fastqsanger' | 16 #set ext = '.fastqsanger' |
17 | 17 |
18 #if $single_paired.single_paired_selector == 'paired_collection' | 18 #if $single_paired.single_paired_selector == 'paired_collection' |
19 #if $single_paired.paired_input.forward.is_of_type('fastqsanger.gz') | 19 #if $single_paired.paired_input.forward.is_of_type('fastqsanger.gz') |
20 #set ext = '.fastqsanger.gz' | 20 #set ext = '.fastqsanger.gz' |
21 #elif $single_paired.paired_input.forward.is_of_type('fastqillumina.gz') | |
22 #set ext = '.fastqillumina.gz' | |
23 #end if | 21 #end if |
24 #set $in1 = $single_paired.paired_input.forward | 22 #set $in1 = $single_paired.paired_input.forward |
25 #set $in2 = $single_paired.paired_input.reverse | 23 #set $in2 = $single_paired.paired_input.reverse |
26 #set $in1_name = re.sub('[^\w\-\s]', '_', str($single_paired.paired_input.name)) + $ext | 24 #set $in1_name = re.sub('[^\w\-\s]', '_', str($single_paired.paired_input.name)) + $ext |
27 #set $in2_name = re.sub('[^\w\-\s]', '_', str("%s_%s" % ($single_paired.paired_input.name, "R2"))) + $ext | 25 #set $in2_name = re.sub('[^\w\-\s]', '_', str("%s_%s" % ($single_paired.paired_input.name, "R2"))) + $ext |
30 ln -sf '$in1' '$in1_name' && | 28 ln -sf '$in1' '$in1_name' && |
31 ln -sf '$in2' '$in2_name' && | 29 ln -sf '$in2' '$in2_name' && |
32 #else | 30 #else |
33 #if $in1.is_of_type('fastqsanger.gz') | 31 #if $in1.is_of_type('fastqsanger.gz') |
34 #set ext = '.fastqsanger.gz' | 32 #set ext = '.fastqsanger.gz' |
35 #elif $in1.is_of_type('fastqillumina.gz') | |
36 #set ext = '.fastqillumina.gz' | |
37 #end if | 33 #end if |
38 | 34 |
39 #set $in1_name = re.sub('[^\w\-\s]', '_', str($in1.element_identifier)) + $ext | 35 #set $in1_name = re.sub('[^\w\-\s]', '_', str($in1.element_identifier)) + $ext |
40 ln -sf '$in1' '$in1_name' && | 36 ln -sf '$in1' '$in1_name' && |
41 | 37 |
43 #set $in2_name = re.sub('[^\w\-\s]', '_', str("%s_R2" % $in2.element_identifier)) + $ext | 39 #set $in2_name = re.sub('[^\w\-\s]', '_', str("%s_R2" % $in2.element_identifier)) + $ext |
44 ln -sf '$in2' '$in2_name' && | 40 ln -sf '$in2' '$in2_name' && |
45 #end if | 41 #end if |
46 #end if | 42 #end if |
47 | 43 |
48 cp '$c1' galaxy.json && | |
49 | |
50 ## Run fastp | 44 ## Run fastp |
51 | 45 |
52 fastp | 46 fastp |
53 | 47 |
54 --thread \${GALAXY_SLOTS:-1} | 48 --thread \${GALAXY_SLOTS:-1} |
55 --report_title 'fastp report for $in1_name' | 49 --report_title 'fastp report for $in1_name' |
56 | |
57 #if $in1.is_of_type('fastqillumina', 'fastqsolexa', 'fastqillumina.gz', 'fastqsolexa.gz'): | |
58 --phred64 | |
59 #end if | |
60 | 50 |
61 -i '$in1_name' | 51 -i '$in1_name' |
62 | 52 |
63 ## Merge reads | 53 ## Merge reads |
64 | 54 |
229 mv first${ext} '${out1}' | 219 mv first${ext} '${out1}' |
230 && | 220 && |
231 mv second${ext} '${out2}' | 221 mv second${ext} '${out2}' |
232 #end if | 222 #end if |
233 ]]></command> | 223 ]]></command> |
234 <configfiles> | |
235 <configfile name="c1"> | |
236 #set $ext1 = "fastqsanger" | |
237 #set $ext2 = "fastqsanger" | |
238 #if str($single_paired.single_paired_selector) == "single" | |
239 #if $in1.ext.endswith("gz") | |
240 #set $ext1 = "fastqsanger.gz" | |
241 #end if | |
242 #elif str($single_paired.single_paired_selector) == "paired" | |
243 #if $in1.ext.endswith("gz") | |
244 #set $ext1 = "fastqsanger.gz" | |
245 #end if | |
246 #if $in2.ext.endswith("gz") | |
247 #set $ext2 = "fastqsanger.gz" | |
248 #end if | |
249 #else | |
250 #if $paired_input.forward.ext.endswith("gz") | |
251 #set $ext1 = "fastqsanger.gz" | |
252 #end if | |
253 #if $paired_input.reverse.ext.endswith("gz") | |
254 #set $ext2 = "fastqsanger.gz" | |
255 #end if | |
256 #end if | |
257 { | |
258 "out1": {"ext": "$ext1"}, | |
259 "out2": {"ext": "$ext2"}, | |
260 "merged_reads": {"ext": "$ext1"}, | |
261 "unmerged_out1": {"ext": "$ext1"}, | |
262 "unmerged_out2": {"ext": "$ext2"}, | |
263 "unpaired1": {"ext": "$ext1"}, | |
264 "unpaired2": {"ext": "$ext2"} | |
265 } | |
266 </configfile> | |
267 </configfiles> | |
268 <inputs> | 224 <inputs> |
269 <conditional name="single_paired"> | 225 <conditional name="single_paired"> |
270 <param name="single_paired_selector" type="select" label="Single-end or paired reads"> | 226 <param name="single_paired_selector" type="select" label="Single-end or paired reads"> |
271 <option value="single" selected="true">Single-end</option> | 227 <option value="single" selected="true">Single-end</option> |
272 <option value="paired">Paired</option> | 228 <option value="paired">Paired</option> |
286 <expand macro="detect_adapter_for_pe" /> | 242 <expand macro="detect_adapter_for_pe" /> |
287 </expand> | 243 </expand> |
288 <expand macro="global_trimming_options_paired" /> | 244 <expand macro="global_trimming_options_paired" /> |
289 </when> | 245 </when> |
290 <when value="paired_collection"> | 246 <when value="paired_collection"> |
291 <param name="paired_input" type="data_collection" format="fastqsanger,fastqsanger.gz,fastqillumina,fastqillumina.gz" label="Select paired collection(s)" collection_type="paired"/> | 247 <param name="paired_input" type="data_collection" format="fastqsanger,fastqsanger.gz" label="Select paired collection(s)" collection_type="paired"/> |
292 <expand macro="merge_reads" /> | 248 <expand macro="merge_reads" /> |
293 <expand macro="adapter_trimming_options"> | 249 <expand macro="adapter_trimming_options"> |
294 <expand macro="adapter_sequence" read_number="2"/> | 250 <expand macro="adapter_sequence" read_number="2"/> |
295 <expand macro="detect_adapter_for_pe" /> | 251 <expand macro="detect_adapter_for_pe" /> |
296 </expand> | 252 </expand> |
377 <param name="report_json" type="boolean" truevalue="True" falsevalue="False" checked="True" label="Output JSON report" help="The JSON report contains all the data visualized in the HTML report. The format of the JSON report is manually optimized to be easily readable by humans and is compatible with MultiQC"/> | 333 <param name="report_json" type="boolean" truevalue="True" falsevalue="False" checked="True" label="Output JSON report" help="The JSON report contains all the data visualized in the HTML report. The format of the JSON report is manually optimized to be easily readable by humans and is compatible with MultiQC"/> |
378 </section> | 334 </section> |
379 </inputs> | 335 </inputs> |
380 | 336 |
381 <outputs> | 337 <outputs> |
382 <data name="out1" format="auto" label="${tool.name} on ${on_string}: Read 1 output"> | 338 <data name="out1" format_source="in1" label="${tool.name} on ${on_string}: Read 1 output"> |
383 <filter>single_paired['single_paired_selector'] in ["single", "paired"] and not single_paired['merge_reads']['merge']</filter> | 339 <filter>single_paired['single_paired_selector'] in ["single", "paired"] and not single_paired['merge_reads']['merge']</filter> |
384 </data> | 340 </data> |
385 <data name="out2" format="auto" label="${tool.name} on ${on_string}: Read 2 output"> | 341 <data name="out2" format_source="in2" label="${tool.name} on ${on_string}: Read 2 output"> |
386 <filter>single_paired['single_paired_selector'] == "paired" and not single_paired['merge_reads']['merge']</filter> | 342 <filter>single_paired['single_paired_selector'] == "paired" and not single_paired['merge_reads']['merge']</filter> |
387 </data> | 343 </data> |
388 <collection name="output_paired_coll" type="paired" format_source="paired_input['forward']" label="${tool.name} on ${on_string}: Paired-end output"> | 344 <collection name="output_paired_coll" type="paired" format_source="paired_input['forward']" label="${tool.name} on ${on_string}: Paired-end output"> |
389 <filter>single_paired['single_paired_selector'] == "paired_collection" and not single_paired['merge_reads']['merge']</filter> | 345 <filter>single_paired['single_paired_selector'] == "paired_collection" and not single_paired['merge_reads']['merge']</filter> |
390 </collection> | 346 </collection> |
392 <filter>output_options['report_html'] is True</filter> | 348 <filter>output_options['report_html'] is True</filter> |
393 </data> | 349 </data> |
394 <data name="report_json" format="json" from_work_dir="fastp.json" label="${tool.name} on ${on_string}: JSON report"> | 350 <data name="report_json" format="json" from_work_dir="fastp.json" label="${tool.name} on ${on_string}: JSON report"> |
395 <filter>output_options['report_json'] is True</filter> | 351 <filter>output_options['report_json'] is True</filter> |
396 </data> | 352 </data> |
397 <data name="merged_reads" format="auto" label="${tool.name} on ${on_string}: Merged reads"> | 353 <data name="merged_reads" format_source="in1" label="${tool.name} on ${on_string}: Merged reads"> |
398 <filter>single_paired['single_paired_selector'] in ["paired", "paired_collection"] and single_paired['merge_reads']['merge']</filter> | 354 <filter>single_paired['single_paired_selector'] in ["paired", "paired_collection"] and single_paired['merge_reads']['merge']</filter> |
399 </data> | 355 <expand macro="format_actions" read_number="1" forward_reverse="forward" /> |
400 <data name="unmerged_out1" format="auto" label="${tool.name} on ${on_string}: Unmerged filtered reads1"> | 356 </data> |
357 <data name="unmerged_out1" format_source="in1" label="${tool.name} on ${on_string}: Unmerged filtered reads1"> | |
401 <filter>single_paired['single_paired_selector'] in ["paired", "paired_collection"] and single_paired['merge_reads']['merge'] and not single_paired['merge_reads']['include_unmerged']</filter> | 358 <filter>single_paired['single_paired_selector'] in ["paired", "paired_collection"] and single_paired['merge_reads']['merge'] and not single_paired['merge_reads']['include_unmerged']</filter> |
402 </data> | 359 <expand macro="format_actions" read_number="1" forward_reverse="forward" /> |
403 <data name="unmerged_out2" format="auto" label="${tool.name} on ${on_string}: Unmerged filtered reads2"> | 360 </data> |
361 <data name="unmerged_out2" format_source="in2" label="${tool.name} on ${on_string}: Unmerged filtered reads2"> | |
404 <filter>single_paired['single_paired_selector'] in ["paired", "paired_collection"] and single_paired['merge_reads']['merge'] and not single_paired['merge_reads']['include_unmerged']</filter> | 362 <filter>single_paired['single_paired_selector'] in ["paired", "paired_collection"] and single_paired['merge_reads']['merge'] and not single_paired['merge_reads']['include_unmerged']</filter> |
405 </data> | 363 <expand macro="format_actions" read_number="2" forward_reverse="reverse" /> |
406 <data name="unpaired1" format="auto" label="${tool.name} on ${on_string}: Unmerged unfiltered reads1"> | 364 </data> |
365 <data name="unpaired1" format_source="in1" label="${tool.name} on ${on_string}: Unmerged unfiltered reads1"> | |
407 <filter>single_paired['single_paired_selector'] in ["paired", "paired_collection"] and single_paired['merge_reads']['merge'] and not single_paired['merge_reads']['include_unmerged']</filter> | 366 <filter>single_paired['single_paired_selector'] in ["paired", "paired_collection"] and single_paired['merge_reads']['merge'] and not single_paired['merge_reads']['include_unmerged']</filter> |
408 </data> | 367 <expand macro="format_actions" read_number="1" forward_reverse="forward" /> |
409 <data name="unpaired2" format="auto" label="${tool.name} on ${on_string}: Unmerged unfiltered reads2"> | 368 </data> |
369 <data name="unpaired2" format_source="in2" label="${tool.name} on ${on_string}: Unmerged unfiltered reads2"> | |
410 <filter>single_paired['single_paired_selector'] in ["paired", "paired_collection"] and single_paired['merge_reads']['merge'] and not single_paired['merge_reads']['include_unmerged']</filter> | 370 <filter>single_paired['single_paired_selector'] in ["paired", "paired_collection"] and single_paired['merge_reads']['merge'] and not single_paired['merge_reads']['include_unmerged']</filter> |
371 <expand macro="format_actions" read_number="2" forward_reverse="reverse" /> | |
411 </data> | 372 </data> |
412 </outputs> | 373 </outputs> |
413 | 374 |
414 <tests> | 375 <tests> |
415 <!-- 1. Ensure default output works --> | 376 <!-- 1. Ensure default output works --> |
662 | 623 |
663 ----- | 624 ----- |
664 | 625 |
665 **Inputs** | 626 **Inputs** |
666 | 627 |
667 Single-end or Paired-end (compressed) fastqsagnger or fastqillumina files | 628 Single-end or Paired-end (compressed) fastqsanger files |
668 | 629 |
669 ----- | 630 ----- |
670 | 631 |
671 **Outputs** | 632 **Outputs** |
672 | 633 |