comparison megahit_wrapper.xml @ 4:de387b2b2803 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megahit commit d44d890566efb82b4ce8a9ed2903b0902f3884ca
author iuc
date Mon, 18 Feb 2019 12:14:46 -0500
parents 98242353faa4
children 7518ee87b53d
comparison
equal deleted inserted replaced
3:98242353faa4 4:de387b2b2803
1 <?xml version='1.0' encoding='utf-8'?> 1 <?xml version='1.0' encoding='utf-8'?>
2 <tool id="megahit" name="MEGAHIT" version="@VERSION@.3"> 2 <tool id="megahit" name="MEGAHIT" version="@VERSION@.4">
3 <description>for metagenomics assembly</description> 3 <description>for metagenomics assembly</description>
4 <macros> 4 <macros>
5 <token name="@VERSION@">1.1.2</token> 5 <token name="@VERSION@">1.1.3</token>
6 </macros> 6 </macros>
7 <requirements> 7 <requirements>
8 <requirement type="package" version="@VERSION@">megahit</requirement> 8 <requirement type="package" version="@VERSION@">megahit</requirement>
9 </requirements> 9 </requirements>
10 <version_command>megahit --version</version_command> 10 <version_command>megahit --version</version_command>
20 -2 ${ ','.join(['"%s"' % x.reverse for x in $input_option.batchmode.pair_input_list]) } 20 -2 ${ ','.join(['"%s"' % x.reverse for x in $input_option.batchmode.pair_input_list]) }
21 #else: 21 #else:
22 -1 '${input_option.batchmode.pair_input.forward}' 22 -1 '${input_option.batchmode.pair_input.forward}'
23 -2 '${input_option.batchmode.pair_input.reverse}' 23 -2 '${input_option.batchmode.pair_input.reverse}'
24 #end if 24 #end if
25 #else if $input_option.choice == 'interleaved'
26 --12 '${input_option.interleaved_file}'
25 #else 27 #else
26 -r '${input_option.single_files}' 28 -r '${input_option.single_files}'
27 #end if 29 #end if
28 ##basic assembly 30 ##basic assembly
29 --min-count '${basic_section.min_count}' 31 --min-count '${basic_section.min_count}'
30 --k-min '${basic_section.k_min}' 32 #if $basic_section.k_mer.k_mer_method == "klist_method":
31 --k-max '${basic_section.k_max}' 33 --k-list '${basic_section.k_mer.k_list}'
32 --k-step '${basic_section.k_step}' 34 #else:
33 --min-contig-len '${basic_section.min_contig_len}' 35 --k-step '${basic_section.k_mer.k_step}'
36 --k-min '${basic_section.k_mer.k_min}'
37 --k-max '${basic_section.k_mer.k_max}'
38 #end if
34 ##advanced assembly 39 ##advanced assembly
35 ${advanced_section.nomercy} 40 ${advanced_section.nomercy}
36 --bubble-level '${advanced_section.bubble_level}' 41 --bubble-level '${advanced_section.bubble_level}'
37 --merge-level '${advanced_section.merge_level}' 42 --merge-level '${advanced_section.merge_level}'
38 --prune-level '${advanced_section.prune_level}' 43 --prune-level '${advanced_section.prune_level}'
39 --prune-depth '${advanced_section.prune_depth}' 44 --prune-depth '${advanced_section.prune_depth}'
40 --low-local-ratio '${advanced_section.low_local_ratio}' 45 --low-local-ratio '${advanced_section.low_local_ratio}'
41 ${advanced_section.nolocal} 46 ${advanced_section.nolocal}
42 ${advanced_section.kmin1pass} 47 ${advanced_section.kmin1pass}
48 --min-contig-len '${output_section.min_contig_len}'
43 && cat megahit_out/log 49 && cat megahit_out/log
44 ]]></command> 50 ]]></command>
45 <inputs> 51 <inputs>
46 <conditional name="input_option"> 52 <conditional name="input_option">
47 <param name="choice" type="select" label="Select your input option"> 53 <param name="choice" type="select" label="Select your input option">
48 <option value="single" selected="true">Single</option> 54 <option value="single" selected="true">Single</option>
55 <option value="interleaved">Interleaved-paired-end</option>
49 <option value="paired">Paired-end</option> 56 <option value="paired">Paired-end</option>
50 <option value="paired_collection">Paired-end collection</option> 57 <option value="paired_collection">Paired-end collection</option>
51 </param> 58 </param>
52 <when value="single"> 59 <when value="single">
53 <param name="single_files" argument="-r" type="data" format="fastq,fastqsanger,fasta,fastq.gz,fastqsanger.gz" multiple="true" label="Single-end file(s)" help="FASTQ/FASTA/FASTQ.GZ files accepted" /> 60 <param name="single_files" argument="-r" type="data" format="fastq,fastqsanger,fasta,fastq.gz,fastqsanger.gz,fastq.bz2" multiple="true" label="Single-end file(s)" help="Accepts fasta (.fasta, .fa) and fastq (.fastq) formats as well as gzip (.gz) and gzip2 (.bz2) files" />
61 </when>
62 <when value="interleaved">
63 <param name="interleaved_file" argument="--12" type="data" format="fastq,fastqsanger,fasta,fastq.gz,fastqsanger.gz,fastq.bz2" multiple="true" label="Interleaved-paired-end file(s)" help="Accepts fasta (.fasta, .fa) and fastq (.fastq) formats as well as gzip (.gz) and gzip2 (.bz2) files" />
54 </when> 64 </when>
55 <when value="paired"> 65 <when value="paired">
56 <param name="fastq_input1" argument="-1" type="data" format="fastq,fastqsanger,fasta,fastq.gz,fastqsanger.gz" multiple="true" label="Mate 1 input reads"/> 66 <param name="fastq_input1" argument="-1" type="data" format="fastq,fastqsanger,fasta,fastq.gz,fastqsanger.gz" multiple="true" label="Mate 1 input reads"/>
57 <param name="fastq_input2" argument="-2" type="data" format="fastq,fastqsanger,fasta,fastq.gz,fastqsanger.gz" multiple="true" label="Mate 2 input reads"/> 67 <param name="fastq_input2" argument="-2" type="data" format="fastq,fastqsanger,fasta,fastq.gz,fastqsanger.gz" multiple="true" label="Mate 2 input reads"/>
58 </when> 68 </when>
70 </when> 80 </when>
71 </conditional> 81 </conditional>
72 </when> 82 </when>
73 </conditional> 83 </conditional>
74 <section name="basic_section" title="Basic assembly options" expanded="True"> 84 <section name="basic_section" title="Basic assembly options" expanded="True">
75 <param name="min_contig_len" argument="--min-contig-len" type="integer" value="200" label="minimum length of contigs to output" /> 85 <param name="min_count" argument="--min-count" type="integer" value="2" label="minimum multiplicity for filtering (k_min+1)-mers" help="(kmin+1)-mer with multiplicity lower than d (default 2, specified by --min-count option) will be discarded. You should be cautious to set d less than 2, which will lead to a much larger and noisy graph. We recommend using the default value 2 for metagenomics assembly. If you want to use MEGAHIT to do generic assemblies, please change this value according to the sequencing depth. (recommend --min-count 3 for >40x)."/>
76 <param name="min_count" argument="--min-count" type="integer" value="2" label="minimum multiplicity for filtering (k_min+1)-mers"/> 86 <conditional name="k_mer">
77 <param name="k_min" argument="--k-min" type="integer" value="21" label="minimum kmer size" max="255" help="must be odd number"/> 87 <param name="k_mer_method" type="select" label="K-mer specification method">
78 <param name="k_max" argument="--k-max" type="integer" value="141" label="maximum kmer size" max="255" help="must be odd number"/> 88 <option value="klist_method">Specify list</option>
79 <param name="k_step" argument="--k-step" type="integer" value="12" label="increment of kmer size of each iteration" max="28" help="must be even number"/> 89 <option value="klim_method">Specify min, max, and step values</option>
90 </param>
91 <when value="klist_method">
92 <param name="k_list" argument="--k-list" type="text" value="21,29,39,59,79,99,119,141" label="comma-separated list of kmer size" help="all must be odd, in the range 15-255, and with increments &lt;= 28"/>
93 </when>
94 <when value="klim_method">
95 <param name="k_min" argument="--k-min" type="integer" value="21" label="minimum kmer size." max="255" help="Must be odd number. For ultra complex metagenomics data such as soil, a larger kmin, say 27, is recommended to reduce the complexity of the de Bruijn graph. Quality trimming is also recommended. For high-depth generic data, large --k-min (25 to 31) is recommended. Smaller --k-step, say 10, is more friendly to low-coverage datasets."/>
96 <param name="k_max" argument="--k-max" type="integer" value="141" label="maximum kmer size" max="255" help="must be odd number"/>
97 <param name="k_step" argument="--k-step" type="integer" value="12" label="increment of kmer size of each iteration" max="28" help="must be even number"/>
98 </when>
99 </conditional>
80 </section> 100 </section>
81 <section name="advanced_section" title="Advanced assembly options" expanded="False"> 101 <section name="advanced_section" title="Advanced assembly options" expanded="False">
82 <param name="nomercy" type="boolean" checked="false" truevalue="--no-mercy" falsevalue="" label="do not add mercy kmers" /> 102 <param name="nomercy" type="boolean" checked="false" truevalue="--no-mercy" falsevalue="" label="do not add mercy kmers" help="Mercy kmers are specially designed for metagenomics assembly to recover low coverage sequences. For generic dataset >= 30x, MEGAHIT may generate better results with no mercy kmers." />
83 <param name="bubble_level" argument="--bubble-level" type="integer" value="2" min="0" max="2" label="intensity of bubble merging (0-2), 0 to disable" /> 103 <param name="bubble_level" argument="--bubble-level" type="integer" value="2" min="0" max="2" label="intensity of bubble merging (0-2), 0 to disable" />
84 <param name="merge_level" argument="--merge-level" type="text" label="merge complex bubbles of length " value="20,0.95" /> 104 <param name="merge_level" argument="--merge-level" type="text" label="merge complex bubbles of length " value="20,0.95" />
85 <param name="prune_level" argument="--prune-level" type="integer" value="2" min="0" max="3" label="strength of low depth pruning" /> 105 <param name="prune_level" argument="--prune-level" type="integer" value="2" min="0" max="3" label="strength of low depth pruning" />
86 <param name="prune_depth" argument="--prune-depth" type="integer" value="2" min="0" label="remove unitigs with avg kmer depth less than this value" /> 106 <param name="prune_depth" argument="--prune-depth" type="integer" value="2" min="0" label="remove unitigs with avg kmer depth less than this value" />
87 <param name="low_local_ratio" argument="--low-local-ratio" type="float" value="0.2" label="ratio threshold to define low local coverage contigs" /> 107 <param name="low_local_ratio" argument="--low-local-ratio" type="float" value="0.2" label="ratio threshold to define low local coverage contigs" />
88 <param name="nolocal" type="boolean" checked="false" truevalue="--no-local" falsevalue="" label="disable local assembly" /> 108 <param name="nolocal" type="boolean" checked="false" truevalue="--no-local" falsevalue="" label="disable local assembly" />
89 <param name="kmin1pass" type="boolean" checked="false" truevalue="--kmin-1pass" falsevalue="" label="use 1pass mode to build SdBG of k_min" /> 109 <param name="kmin1pass" type="boolean" checked="false" truevalue="--kmin-1pass" falsevalue="" label="use 1pass mode to build SdBG of k_min" />
90 </section> 110 </section>
111 <section name="output_section" title="Output options" expanded="True">
112 <param name="min_contig_len" argument="--min-contig-len" type="integer" value="200" label="minimum length of contigs to output" />
113 <param name="show_intermediate_contigs" type="boolean" checked="false" label="Return intermediate contigs?"/>
114 </section>
91 </inputs> 115 </inputs>
92 <outputs> 116 <outputs>
93 <data format="fasta" name="output" from_work_dir="megahit_out/final.contigs.fa" label="Assembly with ${tool.name} on ${on_string}" /> 117 <data format="fasta" name="output" from_work_dir="megahit_out/final.contigs.fa" label="Assembly with ${tool.name} on ${on_string}" />
118 <collection name="intermediate_contigs" type="list" label="Intermediate contigs from ${tool.name} on ${on_string}">
119 <filter>output_section['show_intermediate_contigs']</filter>
120 <discover_datasets pattern="(?P&lt;designation&gt;.*\d)\.contigs\.fa$" ext="fasta" directory="megahit_out/intermediate_contigs" />
121 </collection>
94 </outputs> 122 </outputs>
95 <tests> 123 <tests>
96 <test> 124 <test>
97 <conditional name="input_option"> 125 <conditional name="input_option">
98 <param name="choice" value="single"/> 126 <param name="choice" value="single"/>
103 <has_line_matching expression=">k21_1 flag=3 multi=1.0486 len=576" /> 131 <has_line_matching expression=">k21_1 flag=3 multi=1.0486 len=576" />
104 </assert_contents> 132 </assert_contents>
105 </output> 133 </output>
106 </test> 134 </test>
107 <test> 135 <test>
136 <conditional name="input_option">
137 <param name="choice" value="interleaved"/>
138 <param name="interleaved_file" value="interleaved-fq.fa"/>
139 </conditional>
140 <output name="output" file="interleaved_result.fa"/>
141 </test>
142 <test>
108 <conditional name="input_option"> 143 <conditional name="input_option">
109 <param name="choice" value="paired"/> 144 <param name="choice" value="paired"/>
110 <param name="fastq_input1" value="paired-fq1.fa"/> 145 <param name="fastq_input1" value="paired-fq1.fa"/>
111 <param name="fastq_input2" value="paired-fq2.fa"/> 146 <param name="fastq_input2" value="paired-fq2.fa"/>
112 </conditional> 147 </conditional>
113 <output name="output" file="paired_result.fa"/> 148 <output name="output" file="paired_result.fa"/>
114 </test> 149 </test>
115 <test> 150 <test>
116 <conditional name="input_option"> 151 <conditional name="input_option">
117 <param name="choice" value="paired_collection"/> 152 <param name="choice" value="paired_collection"/>
118 <conditional name="batchmode"> 153 <conditional name="batchmode">
119 <param name="processmode" value="merge"/> 154 <param name="processmode" value="merge"/>
120 <param name="pair_input_list"> 155 <param name="pair_input_list">
121 <collection type="list:paired"> 156 <collection type="list:paired">
122 <element name="Pair1"> 157 <element name="Pair1">
123 <collection type="paired"> 158 <collection type="paired">
124 <element name="forward" value="paired-fq1.fa" ftype="fasta"/> 159 <element name="forward" value="paired-fq1.fa" ftype="fasta"/>
125 <element name="reverse" value="paired-fq2.fa" ftype="fasta"/> 160 <element name="reverse" value="paired-fq2.fa" ftype="fasta"/>
126 </collection> 161 </collection>
127 </element> 162 </element>
128 </collection> 163 </collection>
129 </param> 164 </param>
165 </conditional>
130 </conditional> 166 </conditional>
131 </conditional> 167 <output name="output" file="paired_result.fa"/>
132 <output name="output" file="paired_result.fa"/>
133 </test> 168 </test>
134 </tests> 169 </tests>
135 <help><![CDATA[ 170 <help><![CDATA[
136 171
137 **What it does** 172 **What it does**