annotate data_manager/kraken_database_builder.xml @ 2:cdef63d8a141 draft

Uploaded
author devteam
date Mon, 27 Apr 2015 16:13:06 -0400
parents 9e4d72083f9f
children 404ba485ec01
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d5d803e654dd Uploaded
devteam
parents:
diff changeset
1 <?xml version="1.0"?>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
2 <tool id="kraken_database_builder" name="Kraken" tool_type="manage_data" version="1.0.0">
d5d803e654dd Uploaded
devteam
parents:
diff changeset
3 <description>database builder</description>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
4 <requirements>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
5 <requirement type="package" version="0.10.5">kraken</requirement>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
6 <requirement type="package" version="1.1.11">jellyfish</requirement>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
7 <requirement type="set_environment">KRAKEN_SCRIPT_PATH</requirement>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
8 </requirements>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
9 <stdio>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
10 <exit_code description="Error" level="fatal" range="1:" />
d5d803e654dd Uploaded
devteam
parents:
diff changeset
11 </stdio>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
12 <version_command>kraken -version | awk '{print $NF}'</version_command>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
13 <command>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
14 <![CDATA[
d5d803e654dd Uploaded
devteam
parents:
diff changeset
15 #set $library_list = str($libraries).split(',')
d5d803e654dd Uploaded
devteam
parents:
diff changeset
16 mkdir kraken-database && cd kraken-database &&
d5d803e654dd Uploaded
devteam
parents:
diff changeset
17 kraken-build --threads \${GALAXY_SLOTS:-1} --download-taxonomy --db "${database_name}" &&
d5d803e654dd Uploaded
devteam
parents:
diff changeset
18 #for $library in $library_list:
2
cdef63d8a141 Uploaded
devteam
parents: 1
diff changeset
19 #if str($library) != 'None':
cdef63d8a141 Uploaded
devteam
parents: 1
diff changeset
20 kraken-build --threads \${GALAXY_SLOTS:-1} --download-library $library --db "${database_name}" &&
cdef63d8a141 Uploaded
devteam
parents: 1
diff changeset
21 #end if
0
d5d803e654dd Uploaded
devteam
parents:
diff changeset
22 #end for
d5d803e654dd Uploaded
devteam
parents:
diff changeset
23 #for $fasta in $input_fasta:
d5d803e654dd Uploaded
devteam
parents:
diff changeset
24 kraken-build --threads \${GALAXY_SLOTS:-1} --db "${database_name}" --add-to-library "$fasta" &&
d5d803e654dd Uploaded
devteam
parents:
diff changeset
25 #end for
d5d803e654dd Uploaded
devteam
parents:
diff changeset
26 kraken-build --threads \${GALAXY_SLOTS:-1} --db "${database_name}" --build --kmer-len ${kmer_len} --minimizer-len ${minimizer_len} &&
d5d803e654dd Uploaded
devteam
parents:
diff changeset
27 cd .. && python \$KRAKEN_SCRIPT_PATH/data_manager/make_json.py --db "${database_name}" --out "${out_file}"
d5d803e654dd Uploaded
devteam
parents:
diff changeset
28 ]]>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
29 </command>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
30 <inputs>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
31 <param label="Name for this database" name="database_name" type="text" />
d5d803e654dd Uploaded
devteam
parents:
diff changeset
32 <param label="Select partial library to download" multiple="True" name="libraries" type="select">
d5d803e654dd Uploaded
devteam
parents:
diff changeset
33 <option value="bacteria">Bacteria</option>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
34 <option value="plasmids">Plasmids</option>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
35 <option value="viruses">Viruses</option>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
36 <option value="human">Human</option>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
37 </param>
1
9e4d72083f9f Uploaded
devteam
parents: 0
diff changeset
38 <param format="fasta" label="Select history item" multiple="True" name="input_fasta" optional="True" type="data" />
0
d5d803e654dd Uploaded
devteam
parents:
diff changeset
39 <param label="K-mer length in BP" name="kmer_len" type="integer" value="31" />
d5d803e654dd Uploaded
devteam
parents:
diff changeset
40 <param label="Minimizer length" name="minimizer_len" type="integer" value="15" />
d5d803e654dd Uploaded
devteam
parents:
diff changeset
41 </inputs>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
42 <outputs>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
43 <data format="data_manager_json" name="out_file" />
d5d803e654dd Uploaded
devteam
parents:
diff changeset
44 </outputs>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
45 <citations>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
46 <citation type="doi">10.1186/gb-2014-15-3-r46</citation>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
47 </citations>
d5d803e654dd Uploaded
devteam
parents:
diff changeset
48 </tool>