Mercurial > repos > jjohnson > eggnog_mapper
comparison data_manager/data_manager_eggnog.xml @ 3:9d94fe7ce8b9 draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper commit e711920c41c8862d7d8133f7b455cf475924e103
author | jjohnson |
---|---|
date | Tue, 05 Nov 2019 15:53:42 -0500 |
parents | a74d61dbd155 |
children | ea9772670fb5 |
comparison
equal
deleted
inserted
replaced
2:a74d61dbd155 | 3:9d94fe7ce8b9 |
---|---|
1 <tool id="data_manager_eggnog" name="EggNOG DB Download" version="@VERSION@" tool_type="manage_data"> | 1 <tool id="data_manager_eggnog" name="EggNOG DB Download" version="@VERSION@.0" tool_type="manage_data"> |
2 <description>Download a new database</description> | 2 <description>Download a new database</description> |
3 <macros> | 3 <macros> |
4 <token name="@VERSION@">4.5.1</token> | 4 <token name="@VERSION@">1.0.3</token> |
5 </macros> | 5 </macros> |
6 <requirements> | 6 <requirements> |
7 <requirement type="package" version="@VERSION@">eggnog-mapper</requirement> | 7 <requirement type="package" version="@VERSION@">eggnog-mapper</requirement> |
8 </requirements> | 8 </requirements> |
9 <version_command>emapper.py --version</version_command> | 9 <version_command>emapper.py --version</version_command> |
10 <command detect_errors="exit_code"><![CDATA[ | 10 <command detect_errors="exit_code"><![CDATA[ |
11 #import json, os | 11 #import json, os |
12 #set params = json.loads(open(str($out_file)).read()) | 12 #set params = json.loads(open(str($out_file)).read()) |
13 #set install_path = $params['output_data'][0]['extra_files_path'].encode('ascii', 'replace') | 13 #set install_path = $params['output_data'][0]['extra_files_path'].encode('ascii', 'replace') |
14 #if $dbs: | 14 #if $dbs: |
15 #set $eggnogdbs = ' '.join($dbs.split(',')) | 15 #set $eggnogdbs = ' '.join(str($dbs).split(',')) |
16 #else | 16 #else |
17 #set $eggnogdbs = 'none' | 17 #set $eggnogdbs = 'none' |
18 #endif | 18 #end if |
19 #if $test == 'false' | 19 #if $test == 'false' |
20 mkdir -p '${target_directory}' && | 20 mkdir -p '${install_path}' && |
21 download_eggnog_data.py | 21 download_eggnog_data.py |
22 $diamond_database -y -q --data_dir $install_path $eggnogdbs | 22 $diamond_database -y -q --data_dir $install_path $eggnogdbs |
23 ' '.join(dbs.split(',')) && | 23 ' '.join(dbs.split(',')) && |
24 #else | |
25 #set $install_path = '/Users/jj/gx/gh/jj/tools-galaxyp/tools/eggnog_mapper/test-data/cached_locally' | |
24 #end if | 26 #end if |
25 python '${__tool_directory__}/data_manager_eggnog.py --config_file $out_file --install_path $target_directory --dbs '$dbs' | 27 python '${__tool_directory__}/data_manager_eggnog.py' --config_file '$out_file' --install_path '$install_path' --dbs '$dbs' |
26 ]]></command> | 28 ]]></command> |
27 <inputs> | 29 <inputs> |
28 <param name="test" type="hidden" value="false" /> | 30 <param name="test" type="hidden" value="false" /> |
29 <param name="target_path" type="text" label="Download Destination (full path)" /> | 31 <param name="target_path" type="text" label="Download Destination (full path)" /> |
30 <param name="diamond_database" type="boolean" truevalue="" falsevalue="-D" checked="true" label="Install the diamond database"/> | 32 <param name="diamond_database" type="boolean" truevalue="" falsevalue="-D" checked="true" label="Install the diamond database"/> |
156 </test> | 158 </test> |
157 </tests> | 159 </tests> |
158 <help><![CDATA[ | 160 <help><![CDATA[ |
159 This tool downloads eggnog data using download_eggnog_data.py | 161 This tool downloads eggnog data using download_eggnog_data.py |
160 and populates the data tables: eggnog_mapper_db and eggnog_mapper_hmm_dbs. | 162 and populates the data tables: eggnog_mapper_db and eggnog_mapper_hmm_dbs. |
163 The data is located at: http://eggnogdb.embl.de/download/emapperdb-4.5.1/ | |
164 The optional eggNOG HMM databases: http://eggnogdb.embl.de/download/emapperdb-4.5.1/hmmdb_levels/ | |
165 can vary from 1G to 80G in size. | |
161 ]]></help> | 166 ]]></help> |
162 <citations> | 167 <citations> |
163 <citation type="doi">10.1093/nar/gkv1248</citation> | 168 <citation type="doi">10.1093/nar/gkv1248</citation> |
164 </citations> | 169 </citations> |
165 </tool> | 170 </tool> |