annotate data_manager/ariba_database_builder.xml.bk @ 0:a8bb47cc7625 draft

planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
author thanhlv
date Tue, 08 Jan 2019 11:04:25 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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@">
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
3 <description>database builder</description>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
4 <expand macro="requirements" />
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
5 <version_command>ariba version | head head -n 1</version_command>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
6 <command detect_errors="exit_code">
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
7 <![CDATA[
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
8 #set $library_list = str($libraries).split(',')
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
9 mkdir ariba-database && cd ariba-database &&
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
10 #for $library in $library_list:
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
11 #if str($library) != 'None':
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
12 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
13 #end if
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
14 #end for
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
15 #for $fasta in $input_fasta:
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
16 #if str($fasta) != 'None':
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
17 ariba preparef --all_coding no $fasta $fasta &&
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 #end for
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
20 cd .. &&
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
21 python '$__tool_directory__/ariba_data_base_builder.py' --db '${database_name}' --out '${out_file}'
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
22 ]]>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
23 </command>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
24 <inputs>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
25 <param name="database_name" type="text" label="Name for this database" />
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
26 <param name="libraries" type="select" multiple="true" label="Select partial library to download">
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
27 <option value="card">CARD</option>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
28 <option value="resfinder">Resfinder</option>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
29 <option value="plasmidfinder">Plasmidfinder</option>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
30 </param>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
31 <param name="input_fasta" type="data" format="fasta" multiple="True" optional="true" label="Select history item" />
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
32 </inputs>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
33 <outputs>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
34 <data name="out_file" format="data_manager_json" />
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
35 </outputs>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
36 <help>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
37 </help>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
38 <citations>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
39 <citation type="doi">110.1099/mgen.0.000131</citation>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
40 </citations>
a8bb47cc7625 planemo upload for repository tbd commit 0af229dbbda0496819ca95938c2e0628db689134
thanhlv
parents:
diff changeset
41 </tool>