annotate macros.xml @ 13:bd61e60350fd draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/snippy commit 7dec701af24e00b3328459f0a823eefd461237bb"
author iuc
date Wed, 07 Apr 2021 11:23:57 +0000
parents ac6e4444e3b8
children 3039be06b167
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
1 <macros>
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
2 <xml name="requirements">
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
3 <requirements>
13
bd61e60350fd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/snippy commit 7dec701af24e00b3328459f0a823eefd461237bb"
iuc
parents: 12
diff changeset
4 <requirement type="package" version="@WRAPPER_VERSION@">snippy</requirement>
9
43791d945de1 "planemo upload commit 5b41fad964a75dcdc794e90342144c3eccea16d7"
iuc
parents: 7
diff changeset
5 <requirement type="package" version="1.32">tar</requirement>
0
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
6 <yield />
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
7 </requirements>
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
8 </xml>
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
9
13
bd61e60350fd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/snippy commit 7dec701af24e00b3328459f0a823eefd461237bb"
iuc
parents: 12
diff changeset
10 <token name="@WRAPPER_VERSION@">4.5.0</token>
bd61e60350fd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/snippy commit 7dec701af24e00b3328459f0a823eefd461237bb"
iuc
parents: 12
diff changeset
11 <token name="@VERSION_SUFFIX@">1</token>
bd61e60350fd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/snippy commit 7dec701af24e00b3328459f0a823eefd461237bb"
iuc
parents: 12
diff changeset
12
0
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
13 <xml name="version_command">
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
14 <version_command><![CDATA[snippy --version]]></version_command>
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
15 </xml>
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
16
5
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
17 <token name="@REFERENCE_SOURCE_FILE@">
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
18 <![CDATA[
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
19 #if $reference_source.reference_source_selector == 'history'
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
20 #if $reference_source.ref_file.is_of_type("fasta")
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
21 ln -sf '$reference_source.ref_file' 'ref.fna' &&
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
22 #elif $reference_source.ref_file.is_of_type("genbank")
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
23 ln -sf '$reference_source.ref_file' 'ref.gbk' &&
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
24 #end if
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
25 #elif $reference_source.reference_source_selector == 'cached'
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
26 ln -sf '$reference_source.ref_file.fields.path' 'ref.fna' &&
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
27 #end if]]>
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
28 </token>
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
29
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
30 <token name="@REFERENCE_COMMAND@">
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
31 <![CDATA[
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
32 #if $reference_source.reference_source_selector == 'history'
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
33 #if $reference_source.ref_file.is_of_type("fasta")
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
34 --ref 'ref.fna'
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
35 #elif $reference_source.ref_file.is_of_type("genbank")
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
36 --ref 'ref.gbk'
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
37 #end if
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
38 #elif $reference_source.reference_source_selector == 'cached'
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
39 --ref 'ref.fna'
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
40 #end if
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
41 ]]>
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
42 </token>
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
43
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
44 <xml name="reference_selector">
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
45 <conditional name="reference_source">
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
46 <param name="reference_source_selector" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options. See `Indexes` section of help below. If you would like to perform self-mapping select `history` here, then choose your input file as reference.">
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
47 <option value="cached">Use a built-in genome index</option>
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
48 <option value="history">Use a genome from history and build index</option>
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
49 </param>
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
50 <when value="cached">
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
51 <param name="ref_file" type="select" label="Using reference genome" help="Select genome from the list">
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
52 <options from_data_table="all_fasta">
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
53 <validator type="no_options" message="No reference genomes are available" />
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
54 </options>
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
55 </param>
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
56 </when>
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
57 <when value="history">
13
bd61e60350fd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/snippy commit 7dec701af24e00b3328459f0a823eefd461237bb"
iuc
parents: 12
diff changeset
58 <param name="ref_file" type="data" format="fasta,fasta.gz,genbank" label="Use the following dataset as the reference sequence" help="You can upload a FASTA or FASTQ sequence to the history and use it as reference" />
5
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
59 </when>
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
60 </conditional>
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
61 </xml>
f9d3b5a6ef31 "planemo upload commit b436c43bb4e8f28c91434173f1b8cb9b187056b2"
iuc
parents: 2
diff changeset
62
0
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
63 <xml name="citations">
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
64 <citations>
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
65 <citation type="bibtex">@UNPUBLISHED{Seemann2013,
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
66 author = "Seemann T",
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
67 title = "snippy: fast bacterial variant calling from NGS reads",
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
68 year = "2015",
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
69 note = "https://github.com/tseemann/snippy",
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
70 url = "https://github.com/tseemann/snippy"}</citation>
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
71 </citations>
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
72 </xml>
ff177a01b5ca planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff changeset
73 </macros>