Mercurial > repos > devteam > fastq_groomer
comparison fastq_groomer.xml @ 5:4fda2184efa5 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/galaxy_sequence_utils/fastq_groomer commit d4ced60a941c4c4a2fe95de9c09a10086810b387"
author | iuc |
---|---|
date | Wed, 19 Feb 2020 16:55:30 +0000 |
parents | dafabb4c2037 |
children | 3213285ee5d2 |
comparison
equal
deleted
inserted
replaced
4:dafabb4c2037 | 5:4fda2184efa5 |
---|---|
1 <tool id="fastq_groomer" name="FASTQ Groomer" version="1.1.1"> | 1 <tool id="fastq_groomer" name="FASTQ Groomer" version="@TOOL_VERSION@"> |
2 <description>convert between various FASTQ quality formats</description> | 2 <description>convert between various FASTQ quality formats</description> |
3 <requirements> | 3 <macros> |
4 <requirement type="package" version="1.1.1">galaxy_sequence_utils</requirement> | 4 <import>macros.xml</import> |
5 </requirements> | 5 </macros> |
6 <expand macro="requirements"/> | |
6 <edam_topics> | 7 <edam_topics> |
7 <edam_topic>topic_0622</edam_topic> | 8 <edam_topic>topic_0622</edam_topic> |
8 </edam_topics> | 9 </edam_topics> |
9 <edam_operations> | 10 <edam_operations> |
10 <edam_operation>operation_0233</edam_operation> | 11 <edam_operation>operation_0233</edam_operation> |
14 #if $input_file.extension.endswith(".gz"): | 15 #if $input_file.extension.endswith(".gz"): |
15 #set $suffix = ".gz" | 16 #set $suffix = ".gz" |
16 #elif $input_file.extension.endswith(".bz2"): | 17 #elif $input_file.extension.endswith(".bz2"): |
17 #set $suffix = ".bz2" | 18 #set $suffix = ".bz2" |
18 #else: | 19 #else: |
19 #set $suffix = "" | 20 #set $suffix = "" |
20 #end if | 21 #end if |
21 $input_type$suffix '$output_file' | 22 $input_type$suffix '$output_file' |
22 #if $options_type['options_type_selector'] == 'basic': | 23 #if $options_type.options_type_selector == 'basic': |
23 #if str($input_type) == 'cssanger': | 24 #if str($input_type) == 'cssanger': |
24 cssanger | 25 cssanger |
25 #else: | 26 #else: |
26 sanger | 27 sanger |
27 #end if | 28 #end if |
28 ascii summarize_input | 29 ascii summarize_input |
29 #else: | 30 #else: |
30 ${options_type.output_type} ${options_type.force_quality_encoding} ${options_type.summarize_input} | 31 ${options_type.output_type} ${options_type.force_quality_encoding} ${options_type.summarize_input} ${options_type.fix_id} |
31 #end if | 32 #end if |
32 ]]></command> | 33 ]]></command> |
33 <inputs> | 34 <inputs> |
34 <param name="input_file" type="data" format="fastq,fastq.gz,fastq.bz2" label="File to groom" /> | 35 <param name="input_file" type="data" format="fastq,fastq.gz,fastq.bz2" label="File to groom" /> |
35 <param name="input_type" type="select" label="Input FASTQ quality scores type"> | 36 <param name="input_type" type="select" label="Input FASTQ quality scores type"> |
66 </param> | 67 </param> |
67 <param name="summarize_input" type="select" label="Summarize input data"> | 68 <param name="summarize_input" type="select" label="Summarize input data"> |
68 <option value="summarize_input" selected="true">Summarize Input</option> | 69 <option value="summarize_input" selected="true">Summarize Input</option> |
69 <option value="dont_summarize_input">Do not Summarize Input (faster)</option> | 70 <option value="dont_summarize_input">Do not Summarize Input (faster)</option> |
70 </param> | 71 </param> |
72 <param name="fix_id" type="boolean" label="Fix inconsistent identifiers" | |
73 truevalue="--fix-id" falsevalue="--no-fix-id" checked="true"> | |
74 </param> | |
71 </when> | 75 </when> |
72 </conditional> | 76 </conditional> |
73 </inputs> | 77 </inputs> |
74 <outputs> | 78 <outputs> |
75 <data name="output_file" format="fastqsanger"> | 79 <data name="output_file" format="fastqsanger"> |
89 <when input="options_type.output_type" value="cssanger.bz2" format="fastqcssanger.bz2" /> | 93 <when input="options_type.output_type" value="cssanger.bz2" format="fastqcssanger.bz2" /> |
90 </change_format> | 94 </change_format> |
91 </data> | 95 </data> |
92 </outputs> | 96 </outputs> |
93 <tests> | 97 <tests> |
98 <!-- Test fix-id by default --> | |
99 <test> | |
100 <param name="input_file" value="fastq_invalid-line3" ftype="fastq" /> | |
101 <param name="input_type" value="sanger" /> | |
102 <param name="options_type_selector" value="basic" /> | |
103 <output name="output_file" file="fastq_invalid-line3_fixed" /> | |
104 </test> | |
105 <!-- Test fix-id by setting the option --> | |
106 <test> | |
107 <param name="input_file" value="fastq_invalid-line3" ftype="fastq" /> | |
108 <param name="input_type" value="sanger" /> | |
109 <param name="options_type_selector" value="advanced" /> | |
110 <param name="fix_id" value="--fix-id" /> | |
111 <output name="output_file" file="fastq_invalid-line3_fixed" /> | |
112 </test> | |
113 <!-- Test fix-id / option not set; expect failure --> | |
114 <test expect_failure="true"> | |
115 <param name="input_file" value="fastq_invalid-line3" ftype="fastq" /> | |
116 <param name="input_type" value="sanger" /> | |
117 <param name="options_type_selector" value="advanced" /> | |
118 <param name="fix_id" value="--no-fix-id" /> | |
119 </test> | |
94 <!-- These tests include test files adapted from supplemental material in Cock PJ, Fields CJ, Goto N, Heuer ML, Rice PM. The Sanger FASTQ file format for sequences with quality scores, and the Solexa/Illumina FASTQ variants. Nucleic Acids Res. 2009 Dec 16. --> | 120 <!-- These tests include test files adapted from supplemental material in Cock PJ, Fields CJ, Goto N, Heuer ML, Rice PM. The Sanger FASTQ file format for sequences with quality scores, and the Solexa/Illumina FASTQ variants. Nucleic Acids Res. 2009 Dec 16. --> |
95 <!-- Test basic options --> | 121 <!-- Test basic options --> |
96 <test> | 122 <test> |
97 <param name="input_file" value="sanger_full_range_original_sanger.fastqsanger" ftype="fastq" /> | 123 <param name="input_file" value="sanger_full_range_original_sanger.fastqsanger" ftype="fastq" /> |
98 <param name="input_type" value="sanger" /> | 124 <param name="input_type" value="sanger" /> |
373 <help><![CDATA[ | 399 <help><![CDATA[ |
374 **What it does** | 400 **What it does** |
375 | 401 |
376 This tool offers several conversions options relating to the FASTQ format. | 402 This tool offers several conversions options relating to the FASTQ format. |
377 | 403 |
378 When using *Basic* options, the output will be *sanger* formatted or *cssanger* formatted (when the input is Color Space Sanger). | 404 When using *Basic* options, the output will be *sanger* formatted or *cssanger* formatted (when the input is Color Space Sanger). Inconsistent identifiers are fixed by default. |
379 | 405 |
380 When converting, if a quality score falls outside of the target score range, it will be coerced to the closest available value (i.e. the minimum or maximum). | 406 When converting, if a quality score falls outside of the target score range, it will be coerced to the closest available value (i.e. the minimum or maximum). |
381 | 407 |
382 When converting between Solexa and the other formats, quality scores are mapped between Solexa and PHRED scales using the equations found in `Cock PJ, Fields CJ, Goto N, Heuer ML, Rice PM. The Sanger FASTQ file format for sequences with quality scores, and the Solexa/Illumina FASTQ variants. Nucleic Acids Res. 2009 Dec 16.`_ | 408 When converting between Solexa and the other formats, quality scores are mapped between Solexa and PHRED scales using the equations found in `Cock PJ, Fields CJ, Goto N, Heuer ML, Rice PM. The Sanger FASTQ file format for sequences with quality scores, and the Solexa/Illumina FASTQ variants. Nucleic Acids Res. 2009 Dec 16.`_ |
383 | 409 |