comparison mitos2.xml @ 4:033755194fe9 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 5eec533bf2834c3a35cc248acd6e24635c619484
author iuc
date Wed, 01 Mar 2023 22:39:37 +0000
parents 624606f7c996
children e95d52d295d7
comparison
equal deleted inserted replaced
3:624606f7c996 4:033755194fe9
1 <tool id="mitos2" name="@MITOS_NAME@" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@"> 1 <tool id="mitos2" name="@MITOS_NAME@" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05">
2 <description>de-novo annotation of metazoan mitochondrial genomes</description> 2 <description>de-novo annotation of metazoan mitochondrial genomes</description>
3 <xrefs> 3 <xrefs>
4 <xref type='bio.tools'>mitos</xref> 4 <xref type='bio.tools'>mitos</xref>
5 </xrefs> 5 </xrefs>
6 <macros> 6 <macros>
7 <import>macros.xml</import> 7 <import>macros.xml</import>
8 <token name="@MITOS_NAME@">MITOS2</token> 8 <token name="@MITOS_NAME@">MITOS2</token>
9 <token name="@TOOL_VERSION@">2.0.6</token> 9 <token name="@TOOL_VERSION@">2.1.3</token>
10 <token name="@VERSION_SUFFIX@">2</token> 10 <token name="@VERSION_SUFFIX@">0</token>
11 </macros> 11 </macros>
12 <requirements> 12 <requirements>
13 <requirement type="package" version="@TOOL_VERSION@">mitos</requirement> 13 <requirement type="package" version="@TOOL_VERSION@">mitos</requirement>
14 <requirement type="package" version="3.0">zip</requirement>
15 </requirements> 14 </requirements>
16 <version_command>python -c "import mitos; print(mitos.__version__)"</version_command> 15 <version_command>python -c "import mitos; print(mitos.__version__)"</version_command>
17 <command detect_errors="aggressive"><![CDATA[ 16 <command detect_errors="aggressive"><![CDATA[
18 mkdir outdir && 17 mkdir outdir &&
19 18
49 --maxrrnaovl $advanced_ncrna.maxrrnaovl 48 --maxrrnaovl $advanced_ncrna.maxrrnaovl
50 49
51 #if not ("protein_plot" in $addoutputs or "ncRNA_plot" in $addoutputs): 50 #if not ("protein_plot" in $addoutputs or "ncRNA_plot" in $addoutputs):
52 --noplots 51 --noplots
53 #end if 52 #end if
53 #if "raw" in str($addoutputs).split(','):
54 --zip
55 #end if
54 56
55 #if "missing" in $addoutputs: 57 #if "missing" in $addoutputs:
56 > outdir/missing.txt 58 > outdir/missing.txt
57 #end if
58
59 #if "raw" in str($addoutputs).split(','):
60 && zip -9 -y -r output.zip outdir/ > /dev/null
61 #end if 59 #end if
62 ]]></command> 60 ]]></command>
63 <inputs> 61 <inputs>
64 <param argument="--input" label="Sequence" type="data" format="fasta" help="A single sequence in fasta formated sequence"> 62 <param argument="--input" label="Sequence" type="data" format="fasta" help="A single sequence in fasta formated sequence">
65 <options options_filter_attribute="metadata.sequences"> 63 <validator type="dataset_metadata_in_range" metadata_name="sequences" min="1" max="1"/>
66 <filter type="add_value" value="1"/>
67 </options>
68 </param> 64 </param>
69 <param argument="--code" label="Genetic code" type="select"> 65 <param argument="--code" label="Genetic code" type="select">
70 <option value="2">Vertebrate (2)</option> 66 <option value="2">Vertebrate (2)</option>
71 <option value="4">Mold, Protozoan, Coelenteral (4)</option> 67 <option value="4">Mold, Protozoan, Coelenteral (4)</option>
72 <option value="5">Invertebrate (5)</option> 68 <option value="5">Invertebrate (5)</option>
152 <filter>"protein_plot" in str(addoutputs)</filter> 148 <filter>"protein_plot" in str(addoutputs)</filter>
153 </data> 149 </data>
154 <data name="ncRNA_plot_out" format="pdf" from_work_dir="outdir/plots/rna.pdf" label="${tool.name} on ${on_string}: ncRNA prediction plot"> 150 <data name="ncRNA_plot_out" format="pdf" from_work_dir="outdir/plots/rna.pdf" label="${tool.name} on ${on_string}: ncRNA prediction plot">
155 <filter>"ncRNA_plot" in str(addoutputs)</filter> 151 <filter>"ncRNA_plot" in str(addoutputs)</filter>
156 </data> 152 </data>
157 <!--<collection name="ncRNA_structure_plot_ps_out" type="list" label="${tool.name} on ${on_string}: ncRNA postscript structure plots">
158 <discover_datasets pattern="(?P&lt;name&gt;.+)\.ps" format="ps" directory="outdir/plots" />
159 <filter>"ncRNA_structure_ps_plots" in str(addoutputs)</filter>
160 </collection>-->
161 <collection name="ncRNA_structure_plot_svg_out" type="list" label="${tool.name} on ${on_string}: ncRNA svg structure plots"> 153 <collection name="ncRNA_structure_plot_svg_out" type="list" label="${tool.name} on ${on_string}: ncRNA svg structure plots">
162 <discover_datasets pattern="(?P&lt;name&gt;.+)\.svg" format="svg" directory="outdir/plots" /> 154 <discover_datasets pattern="(?P&lt;name&gt;.+)\.svg" format="svg" directory="outdir/plots" />
163 <filter>"ncRNA_structure_svg_plots" in str(addoutputs)</filter> 155 <filter>"ncRNA_structure_svg_plots" in str(addoutputs)</filter>
164 </collection> 156 </collection>
165 <data name="rawout" format="zip" from_work_dir="output.zip" label="${tool.name} on ${on_string}: raw data"> 157 <data name="rawout" format="zip" from_work_dir="outdir.zip" label="${tool.name} on ${on_string}: raw data">
166 <filter>"raw" in str(addoutputs)</filter> 158 <filter>"raw" in str(addoutputs)</filter>
167 </data> 159 </data>
168 <data name="missing_genes" format="txt" from_work_dir="outdir/missing.txt" label="${tool.name} on ${on_string}: missing genes"> 160 <data name="missing_genes" format="txt" from_work_dir="outdir/missing.txt" label="${tool.name} on ${on_string}: missing genes">
169 <filter>"missing" in str(addoutputs)</filter> 161 <filter>"missing" in str(addoutputs)</filter>
170 </data> 162 </data>
173 <!-- default options --> 165 <!-- default options -->
174 <test expect_num_outputs="1"> 166 <test expect_num_outputs="1">
175 <param name="input" value="NC_012920.fasta"/> 167 <param name="input" value="NC_012920.fasta"/>
176 <param name="code" value="2"/> 168 <param name="code" value="2"/>
177 <param name="refseqver" value="mitos2-refdata" /> 169 <param name="refseqver" value="mitos2-refdata" />
178 <output name="bedout" file="mitos2_NC_012920.bed" ftype="bed"/> 170 <output name="bedout" file="mitos2_NC_012920.bed" compare="re_match" ftype="bed"/>
179 <assert_command> 171 <assert_command>
180 <has_text text="--code 2"/> 172 <has_text text="--code 2"/>
181 <has_text text="--finovl 50"/> 173 <has_text text="--finovl 50"/>
182 <not_has_text text="--trna"/> 174 <not_has_text text="--trna"/>
183 <not_has_text text="--rrna"/> 175 <not_has_text text="--rrna"/>
200 <!-- different main options --> 192 <!-- different main options -->
201 <test expect_num_outputs="1"> 193 <test expect_num_outputs="1">
202 <param name="input" value="NC_012920.fasta"/> 194 <param name="input" value="NC_012920.fasta"/>
203 <param name="code" value="5"/> 195 <param name="code" value="5"/>
204 <param name="refseqver" value="mitos2-refdata" /> 196 <param name="refseqver" value="mitos2-refdata" />
205 <output name="bedout" file="mitos2_NC_012920.bed" ftype="bed" compare="sim_size"/> 197 <output name="bedout" ftype="bed">
198 <assert_contents>
199 <has_n_lines n="8"/>
200 </assert_contents>
201 </output>
206 <section name="advanced"> 202 <section name="advanced">
207 <param name="featuretypes" value="prot,trna,rrna,intron,oril,orih"/> 203 <param name="featuretypes" value="prot,trna,rrna,intron,oril,orih"/>
208 <param name="finovl" value="49"/> 204 <param name="finovl" value="49"/>
209 <param name="best" value="true"/> 205 <param name="best" value="true"/>
210 <param name="fragovl" value="10"/> 206 <param name="fragovl" value="10"/>
250 <param name="sensitive" value="true"/> 246 <param name="sensitive" value="true"/>
251 <param name="maxtrnaovl" value="51"/> 247 <param name="maxtrnaovl" value="51"/>
252 <param name="maxrrnaovl" value="49"/> 248 <param name="maxrrnaovl" value="49"/>
253 </section> 249 </section>
254 <param name="addoutputs" value="bed,mito,gff,seq,fas,faa,geneorder,protein_plot,ncRNA_plot,ncRNA_structure_svg_plots,raw"/> 250 <param name="addoutputs" value="bed,mito,gff,seq,fas,faa,geneorder,protein_plot,ncRNA_plot,ncRNA_structure_svg_plots,raw"/>
255 <output name="bedout" file="mitos2_NC_012920.bed" ftype="bed" compare="sim_size"/> 251 <output name="bedout" ftype="bed">
256 <output name="mitoout" file="mitos2_NC_012920.mitos" ftype="tabular"/> 252 <assert_contents>
257 <output name="gffout" file="mitos2_NC_012920.gff" ftype="gff"/> 253 <has_n_lines n="18"/>
254 </assert_contents>
255 </output>
256 <output name="mitoout" file="mitos2_NC_012920.mitos" compare="re_match" ftype="tabular"/>
257 <output name="gffout" file="mitos2_NC_012920.gff" compare="re_match" ftype="gff"/>
258 <output name="seqout" file="mitos2_NC_012920.seq" ftype="txt"/> 258 <output name="seqout" file="mitos2_NC_012920.seq" ftype="txt"/>
259 <output name="faa" file="mitos2_NC_012920.faa" ftype="fasta"/> 259 <output name="faa" file="mitos2_NC_012920.faa" ftype="fasta"/>
260 <output name="fas" file="mitos2_NC_012920.fas" ftype="fasta"/> 260 <output name="fas" file="mitos2_NC_012920.fas" ftype="fasta"/>
261 <output name="geneorderout" file="mitos2_NC_012920.geneorder" ftype="fasta"/> 261 <output name="geneorderout" file="mitos2_NC_012920.geneorder" ftype="fasta"/>
262 <output name="protein_plot_out" file="mitos2_NC_012920_prot.pdf" ftype="pdf" compare="sim_size"/> 262 <output name="protein_plot_out" file="mitos2_NC_012920_prot.pdf" ftype="pdf" compare="sim_size"/>
263 <output name="ncRNA_plot_out" file="mitos2_NC_012920_ncrna.pdf" ftype="pdf" compare="sim_size"/> 263 <output name="ncRNA_plot_out" file="mitos2_NC_012920_ncrna.pdf" ftype="pdf" compare="sim_size"/>
264 <output name="rawout" ftype="zip"> 264 <output name="rawout" ftype="zip">
265 <assert_contents> 265 <assert_contents>
266 <has_archive_member path=".*/result.bed"/> 266 <has_archive_member path="result.bed"/>
267 </assert_contents> 267 </assert_contents>
268 </output> 268 </output>
269 <output_collection name="ncRNA_structure_plot_svg_out" type="list" count="17"/> 269 <output_collection name="ncRNA_structure_plot_svg_out" type="list" count="17"/>
270 <assert_command> 270 <assert_command>
271 <has_text text="--code 2"/> 271 <has_text text="--code 2"/>
297 <test expect_num_outputs="2"> 297 <test expect_num_outputs="2">
298 <param name="input" value="NC_012920.fasta"/> 298 <param name="input" value="NC_012920.fasta"/>
299 <param name="code" value="2"/> 299 <param name="code" value="2"/>
300 <param name="refseqver" value="mitos2-refdata" /> 300 <param name="refseqver" value="mitos2-refdata" />
301 <param name="addoutputs" value="bed,missing"/> 301 <param name="addoutputs" value="bed,missing"/>
302 <output name="bedout" file="mitos2_NC_012920.bed" ftype="bed"/> 302 <output name="bedout" file="mitos2_NC_012920.bed" compare="re_match" ftype="bed"/>
303 <output name="missing_genes" file="missing_genes.txt" ftype="txt"/> 303 <output name="missing_genes" ftype="txt">
304 <assert_contents>
305 <has_size value="167"/>
306 </assert_contents>
307 </output>
304 <assert_command> 308 <assert_command>
305 <has_text text="--code 2"/> 309 <has_text text="--code 2"/>
306 <has_text text="--finovl 50"/> 310 <has_text text="--finovl 50"/>
307 <not_has_text text="--trna"/> 311 <not_has_text text="--trna"/>
308 <not_has_text text="--rrna"/> 312 <not_has_text text="--rrna"/>