Mercurial > repos > iuc > snippy
annotate macros.xml @ 5:0aa87d97847f draft
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
author | iuc |
---|---|
date | Fri, 13 Sep 2019 05:45:21 -0400 |
parents | 776ebd1239da |
children | 4df82423ba61 |
rev | line source |
---|---|
0
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
1 <macros> |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
2 <xml name="requirements"> |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
3 <requirements> |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
4 <requirement type="package" version="@VERSION@">snippy</requirement> |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
5 <yield /> |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
6 </requirements> |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
7 </xml> |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
8 |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
9 <xml name="version_command"> |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
10 <version_command><![CDATA[snippy --version]]></version_command> |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
11 </xml> |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
12 |
5
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
13 <token name="@REFERENCE_SOURCE_FILE@"> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
14 <![CDATA[ |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
15 #if $reference_source.reference_source_selector == 'history' |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
16 #if $reference_source.ref_file.is_of_type("fasta") |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
17 ln -sf '$reference_source.ref_file' 'ref.fna' && |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
18 #elif $reference_source.ref_file.is_of_type("genbank") |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
19 ln -sf '$reference_source.ref_file' 'ref.gbk' && |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
20 #end if |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
21 #elif $reference_source.reference_source_selector == 'cached' |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
22 ln -sf '$reference_source.ref_file.fields.path' 'ref.fna' && |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
23 #end if]]> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
24 </token> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
25 |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
26 <token name="@REFERENCE_COMMAND@"> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
27 <![CDATA[ |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
28 #if $reference_source.reference_source_selector == 'history' |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
29 #if $reference_source.ref_file.is_of_type("fasta") |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
30 --ref 'ref.fna' |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
31 #elif $reference_source.ref_file.is_of_type("genbank") |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
32 --ref 'ref.gbk' |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
33 #end if |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
34 #elif $reference_source.reference_source_selector == 'cached' |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
35 --ref 'ref.fna' |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
36 #end if |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
37 ]]> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
38 </token> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
39 |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
40 <xml name="reference_selector"> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
41 <conditional name="reference_source"> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
42 <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."> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
43 <option value="cached">Use a built-in genome index</option> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
44 <option value="history">Use a genome from history and build index</option> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
45 </param> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
46 <when value="cached"> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
47 <param name="ref_file" type="select" label="Using reference genome" help="Select genome from the list"> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
48 <options from_data_table="all_fasta"> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
49 <validator type="no_options" message="No reference genomes are available" /> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
50 </options> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
51 </param> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
52 </when> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
53 <when value="history"> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
54 <param name="ref_file" type="data" format="fasta,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" /> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
55 </when> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
56 </conditional> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
57 </xml> |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
58 |
0aa87d97847f
"planemo upload commit 13d17dd18915767d3ca5bbd92ce3e5e80a287112"
iuc
parents:
2
diff
changeset
|
59 <token name="@VERSION@">4.4.3</token> |
0
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
60 |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
61 <xml name="citations"> |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
62 <citations> |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
63 <citation type="bibtex">@UNPUBLISHED{Seemann2013, |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
64 author = "Seemann T", |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
65 title = "snippy: fast bacterial variant calling from NGS reads", |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
66 year = "2015", |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
67 note = "https://github.com/tseemann/snippy", |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
68 url = "https://github.com/tseemann/snippy"}</citation> |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
69 </citations> |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
70 </xml> |
c9a8ef2aa380
planemo upload commit b288d4f48e58e291bda17c5945c281348ee072c7
iuc
parents:
diff
changeset
|
71 </macros> |