Mercurial > repos > thanhlv > data_manager_build_ariba_database
annotate data_manager/ariba_database_builder.xml @ 3:b13f7ba85697 draft
Update ariba_database_builder.py
| author | thanhlv |
|---|---|
| date | Mon, 14 Jan 2019 07:01:15 -0500 |
| parents | 204f94dc1c2c |
| children | be46816110b4 |
| rev | line source |
|---|---|
|
0
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
2 <tool id="ariba_database_builder" name="ARIBA build database" tool_type="manage_data" version="@VERSION@"> |
| 2 | 3 <description>Download and prepare database for use with ARIBA</description> |
| 4 <macros> | |
| 5 <import>macros.xml</import> | |
| 6 </macros> | |
|
0
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
7 <expand macro="requirements" /> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
8 <version_command>ariba version | head head -n 1</version_command> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
9 <command detect_errors="exit_code"> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
10 <![CDATA[ |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
11 #if str($library.lib_type) == "curated" |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
12 #set $library_list = str($library.curated).split(',') |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
13 #for $library_ in $library_list: |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
14 #if str($library_) != 'None': |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
15 ariba getref '$library_' _tmp_db && ariba prepareref -f _tmp_db.fa -m _tmp_db.tsv '$library_' && |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
16 #end if |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
17 #end for |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
18 #end if |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
19 |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
20 #if str($library.lib_type) == "fasta" |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
21 #if str($library).fasta != 'None': |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
22 ariba prepareref --all_coding '$coding' -f '$library.fasta' '$library.db_name' |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
23 #end if |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
24 #end if |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
25 |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
26 python '$__tool_directory__/ariba_database_builder.py' --out '${out_file}' |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
27 ]]> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
28 </command> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
29 <inputs> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
30 <conditional name="library"> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
31 <param name="lib_type" type="select" label="Input reads type or collection" help="Select a curated database or a fasta from the history"> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
32 <option value="curated" selected="true">Curated Database</option> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
33 <option value="fasta">A fasta file</option> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
34 </param> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
35 <when value="curated"> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
36 <param name="curated" type="select" multiple="true" label="Select partial library to download"> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
37 <option value="card">CARD</option> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
38 <option value="resfinder">Resfinder</option> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
39 <option value="plasmidfinder">Plasmidfinder</option> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
40 <option value="megares">Megares</option> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
41 <option value="argannot">Argannot</option> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
42 <option value="vfdb_core">vfdb_core</option> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
43 <option value="vfdb_full">vfdb_full</option> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
44 <option value="virulencefinder">virulencefinder</option> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
45 </param> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
46 </when> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
47 <when value="fasta"> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
48 <param name="fasta" type="data" format="fasta" optional="false" /> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
49 <param name="db_name" type="text" label="DB name" help = "The DB name should include no space and special characters" /> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
50 <param name="coding" type="boolean" truevalue="yes" falsevalue="no" checked="False" label="Coding sequence?" /> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
51 </when> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
52 </conditional> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
53 </inputs> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
54 <outputs> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
55 <data name="out_file" format="data_manager_json" /> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
56 </outputs> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
57 <help> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
58 </help> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
59 <citations> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
60 <citation type="doi">110.1099/mgen.0.000131</citation> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
61 </citations> |
|
a8bb47cc7625
planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff
changeset
|
62 </tool> |
