# HG changeset patch # User galaxyp # Date 1613760840 0 # Node ID b711f5b6bd44b61a6374d6f2673782f371a457a0 # Parent 2aec8d30ff42dd2c13aef52c1b85680fb3d681fc "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/data_manager_eggnog_mapper_abspath commit fd234f7532b34a1b6ced0d3ac53a8f42348e23f7" diff -r 2aec8d30ff42 -r b711f5b6bd44 data_manager/data_manager_eggnog.py --- a/data_manager/data_manager_eggnog.py Sat Sep 05 11:51:21 2020 +0000 +++ b/data_manager/data_manager_eggnog.py Fri Feb 19 18:54:00 2021 +0000 @@ -39,11 +39,18 @@ # params = json.loads(open(args.config_file).read()) dm_dict = {} dm_dict['data_tables'] = dm_dict.get('data_tables', {}) - data_table = 'eggnog_mapper_db' + data_table = 'eggnog_mapper_db_versioned' dm_dict['data_tables'][data_table]\ = dm_dict['data_tables'].get(data_table, []) + # Versionning is super confusing: + # eggnog-mapper 1.* needed a db v4.5 (based on eggnog v4.5) + # eggnog-mapper 2.0 needs a db v2.0 (based on eggnog v5.0) + # db v4.5 are not compatible with eggnog-mapper 2.0 + version = "2.0" + if "4.5" in db_version: + version = "1.0" data_table_entry = dict(value=db_version, name=db_version, - path=args.install_path) + path=args.install_path, version=version) dm_dict['data_tables'][data_table].append(data_table_entry) # save info to json file diff -r 2aec8d30ff42 -r b711f5b6bd44 data_manager/data_manager_eggnog.xml --- a/data_manager/data_manager_eggnog.xml Sat Sep 05 11:51:21 2020 +0000 +++ b/data_manager/data_manager_eggnog.xml Fri Feb 19 18:54:00 2021 +0000 @@ -1,4 +1,4 @@ -> + eggnog data to a specified directory eggnog_macros.xml @@ -24,7 +24,7 @@ 2.0.1 - 5.0 + 2.0 + + 2.0 10.1093/nar/gkv1248 @@ -47,7 +54,7 @@ - + diff -r 2aec8d30ff42 -r b711f5b6bd44 data_manager_conf.xml --- a/data_manager_conf.xml Sat Sep 05 11:51:21 2020 +0000 +++ b/data_manager_conf.xml Fri Feb 19 18:54:00 2021 +0000 @@ -1,11 +1,12 @@ - + + diff -r 2aec8d30ff42 -r b711f5b6bd44 test-data/cached_locally/eggnog_mapper_db.loc --- a/test-data/cached_locally/eggnog_mapper_db.loc Sat Sep 05 11:51:21 2020 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -#value name path -5.0 eggNOG_5.0 ${__HERE__} diff -r 2aec8d30ff42 -r b711f5b6bd44 test-data/cached_locally/eggnog_mapper_db_versioned.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/cached_locally/eggnog_mapper_db_versioned.loc Fri Feb 19 18:54:00 2021 +0000 @@ -0,0 +1,2 @@ +#value name path version +2.0 eggNOG_2.0 ${__HERE__} 2.0 diff -r 2aec8d30ff42 -r b711f5b6bd44 tool-data/eggnog_mapper_db.loc.sample --- a/tool-data/eggnog_mapper_db.loc.sample Sat Sep 05 11:51:21 2020 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -#This is a sample file distributed with Galaxy that enables tools -#to use a directory of eggnog_mapper data files. -# -# eggnog-mapper requires the following files to be installed in the data directory: -# https://github.com/jhcepas/eggnog-mapper/blob/master/data/og2level.tsv.gz -# http://eggnog5.embl.de/download/emapperdb-5.0.0/eggnog.db.gz -# A complete diamond database is available from: -# http://eggnog5.embl.de/download/emapperdb-5.0.0/eggnog_proteins.dmnd.gz -# -# The python script download_eggnog_data.py, -# included with eggnog_mapper, can be used to download the files to the correct directory -# -# The near-equivalence of columns "value" and "db" is needed for the tests to work, -# and for the setting of --data_dir to the parent directory of eggnog.db -# The complicated eggNOG database structure makes passing custom HMM databases somewhat tricky. -# See test-data/cached_locally/eggnog_mapper.loc for how this was done with the included test databases -# In all other cases, when the appropriate HMM database (for example, "thaNOG") was downloaded from eggnogdb.embl.de, -# value and db should be the same (in the example, both should be "thaNOG") -# -# -#db_version name path -#5.0 eggnog_5.0 /path/to/directory/that/contains/eggnog.db diff -r 2aec8d30ff42 -r b711f5b6bd44 tool-data/eggnog_mapper_db_versioned.loc.sample --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool-data/eggnog_mapper_db_versioned.loc.sample Fri Feb 19 18:54:00 2021 +0000 @@ -0,0 +1,22 @@ +#This is a sample file distributed with Galaxy that enables tools +#to use a directory of eggnog_mapper data files. +# +# eggnog-mapper requires the following files to be installed in the data directory: +# https://github.com/jhcepas/eggnog-mapper/blob/master/data/og2level.tsv.gz +# http://eggnog5.embl.de/download/emapperdb-5.0.0/eggnog.db.gz +# A complete diamond database is available from: +# http://eggnog5.embl.de/download/emapperdb-5.0.0/eggnog_proteins.dmnd.gz +# +# The python script download_eggnog_data.py, +# included with eggnog_mapper, can be used to download the files to the correct directory +# +# The near-equivalence of columns "value" and "db" is needed for the tests to work, +# and for the setting of --data_dir to the parent directory of eggnog.db +# The complicated eggNOG database structure makes passing custom HMM databases somewhat tricky. +# See test-data/cached_locally/eggnog_mapper.loc for how this was done with the included test databases +# In all other cases, when the appropriate HMM database (for example, "thaNOG") was downloaded from eggnogdb.embl.de, +# value and db should be the same (in the example, both should be "thaNOG") +# +# +#db_version name path +#5.0 eggnog_5.0 /path/to/directory/that/contains/eggnog.db diff -r 2aec8d30ff42 -r b711f5b6bd44 tool_data_table_conf.xml.sample --- a/tool_data_table_conf.xml.sample Sat Sep 05 11:51:21 2020 +0000 +++ b/tool_data_table_conf.xml.sample Fri Feb 19 18:54:00 2021 +0000 @@ -1,7 +1,7 @@ - - value,name,path - +
+ value,name,path,version +
diff -r 2aec8d30ff42 -r b711f5b6bd44 tool_data_table_conf.xml.test --- a/tool_data_table_conf.xml.test Sat Sep 05 11:51:21 2020 +0000 +++ b/tool_data_table_conf.xml.test Fri Feb 19 18:54:00 2021 +0000 @@ -1,7 +1,7 @@ - - value,name,path - +
+ value,name,path,version +