Mercurial > repos > devteam > data_manager_build_kraken_database
annotate data_manager/kraken_database_builder.xml @ 7:5b0724200665 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 20cfde679c4064cea8a0b64763ddd5e092af7eab
author | iuc |
---|---|
date | Tue, 17 Jul 2018 12:12:00 -0400 |
parents | 4e6e90f31ffe |
children | c668a45d8a55 |
rev | line source |
---|---|
0 | 1 <?xml version="1.0"?> |
6
4e6e90f31ffe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 942704250204d57911949c0129f4a984dc0dc551
iuc
parents:
5
diff
changeset
|
2 <tool id="kraken_database_builder" name="Kraken" tool_type="manage_data" version="1.1"> |
0 | 3 <description>database builder</description> |
4 <requirements> | |
6
4e6e90f31ffe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 942704250204d57911949c0129f4a984dc0dc551
iuc
parents:
5
diff
changeset
|
5 <requirement type="package" version="1.1">kraken</requirement> |
0 | 6 </requirements> |
7 <version_command>kraken -version | awk '{print $NF}'</version_command> | |
5
6f0294046f41
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents:
4
diff
changeset
|
8 <command detect_errors="exit_code"> |
0 | 9 <![CDATA[ |
10 #set $library_list = str($libraries).split(',') | |
11 mkdir kraken-database && cd kraken-database && | |
5
6f0294046f41
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents:
4
diff
changeset
|
12 kraken-build --threads \${GALAXY_SLOTS:-1} --download-taxonomy --db '${database_name}' && |
0 | 13 #for $library in $library_list: |
2 | 14 #if str($library) != 'None': |
5
6f0294046f41
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents:
4
diff
changeset
|
15 kraken-build --threads \${GALAXY_SLOTS:-1} --download-library $library --db '${database_name}' && |
2 | 16 #end if |
0 | 17 #end for |
18 #for $fasta in $input_fasta: | |
3 | 19 #if str($fasta) != 'None': |
5
6f0294046f41
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents:
4
diff
changeset
|
20 kraken-build --threads \${GALAXY_SLOTS:-1} --db '${database_name}' --add-to-library '$fasta' && |
3 | 21 #end if |
0 | 22 #end for |
5
6f0294046f41
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents:
4
diff
changeset
|
23 kraken-build --threads \${GALAXY_SLOTS:-1} --db '${database_name}' --build --kmer-len ${kmer_len} --minimizer-len ${minimizer_len} && |
6f0294046f41
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents:
4
diff
changeset
|
24 cd .. && |
6f0294046f41
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents:
4
diff
changeset
|
25 python '$__tool_directory__/make_json.py' --db '${database_name}' --out '${out_file}' |
0 | 26 ]]> |
27 </command> | |
28 <inputs> | |
5
6f0294046f41
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents:
4
diff
changeset
|
29 <param name="database_name" type="text" label="Name for this database" /> |
6f0294046f41
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents:
4
diff
changeset
|
30 <param name="libraries" type="select" multiple="true" label="Select partial library to download"> |
0 | 31 <option value="bacteria">Bacteria</option> |
7
5b0724200665
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 20cfde679c4064cea8a0b64763ddd5e092af7eab
iuc
parents:
6
diff
changeset
|
32 <option value="archaea">Archaea</option> |
5b0724200665
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 20cfde679c4064cea8a0b64763ddd5e092af7eab
iuc
parents:
6
diff
changeset
|
33 <option value="plasmid">Plasmid</option> |
5b0724200665
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 20cfde679c4064cea8a0b64763ddd5e092af7eab
iuc
parents:
6
diff
changeset
|
34 <option value="viral">Viral</option> |
0 | 35 <option value="human">Human</option> |
36 </param> | |
5
6f0294046f41
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents:
4
diff
changeset
|
37 <param name="input_fasta" type="data" format="fasta" multiple="True" optional="true" label="Select history item" /> |
6f0294046f41
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents:
4
diff
changeset
|
38 <param name="kmer_len" type="integer" value="31" label="K-mer length in BP" /> |
6f0294046f41
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents:
4
diff
changeset
|
39 <param name="minimizer_len" type="integer" value="15" label="Minimizer length" /> |
0 | 40 </inputs> |
41 <outputs> | |
5
6f0294046f41
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents:
4
diff
changeset
|
42 <data name="out_file" format="data_manager_json" /> |
0 | 43 </outputs> |
5
6f0294046f41
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents:
4
diff
changeset
|
44 <help> |
6f0294046f41
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 8652f36a3a3838dca989426961561e81432acf4f
iuc
parents:
4
diff
changeset
|
45 </help> |
0 | 46 <citations> |
47 <citation type="doi">10.1186/gb-2014-15-3-r46</citation> | |
48 </citations> | |
3 | 49 </tool> |