# HG changeset patch # User galaxyp # Date 1613760820 0 # Node ID 3d82020b1e3b928c9c728f35fe829d72e05aceea # Parent 077cf0a99144ec16bf105b02f9613ba63138bb69 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper_data_manager commit fd234f7532b34a1b6ced0d3ac53a8f42348e23f7" diff -r 077cf0a99144 -r 3d82020b1e3b data_manager/data_manager_eggnog.py --- a/data_manager/data_manager_eggnog.py Fri Sep 04 21:38:59 2020 +0000 +++ b/data_manager/data_manager_eggnog.py Fri Feb 19 18:53:40 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 077cf0a99144 -r 3d82020b1e3b data_manager/data_manager_eggnog.xml --- a/data_manager/data_manager_eggnog.xml Fri Sep 04 21:38:59 2020 +0000 +++ b/data_manager/data_manager_eggnog.xml Fri Feb 19 18:53:40 2021 +0000 @@ -1,4 +1,4 @@ - + eggnog data eggnog_macros.xml @@ -8,7 +8,7 @@ @@ -20,7 +20,7 @@ 2.0.1 - 5.0 + 2.0 + + 2.0 10.1093/nar/gkv1248 @@ -47,7 +54,7 @@ - + diff -r 077cf0a99144 -r 3d82020b1e3b data_manager_conf.xml --- a/data_manager_conf.xml Fri Sep 04 21:38:59 2020 +0000 +++ b/data_manager_conf.xml Fri Feb 19 18:53:40 2021 +0000 @@ -1,7 +1,7 @@ - + @@ -12,6 +12,7 @@ ${GALAXY_DATA_MANAGER_DATA_PATH}/eggnog_data/${value} abspath + diff -r 077cf0a99144 -r 3d82020b1e3b test-data/cached_locally/eggnog_mapper_db.loc --- a/test-data/cached_locally/eggnog_mapper_db.loc Fri Sep 04 21:38:59 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 077cf0a99144 -r 3d82020b1e3b 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:53:40 2021 +0000 @@ -0,0 +1,2 @@ +#value name path version +2.0 eggNOG_2.0 ${__HERE__} 2.0 diff -r 077cf0a99144 -r 3d82020b1e3b tool-data/eggnog_mapper_db.loc.sample --- a/tool-data/eggnog_mapper_db.loc.sample Fri Sep 04 21:38:59 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 077cf0a99144 -r 3d82020b1e3b 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:53:40 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 077cf0a99144 -r 3d82020b1e3b tool_data_table_conf.xml.sample --- a/tool_data_table_conf.xml.sample Fri Sep 04 21:38:59 2020 +0000 +++ b/tool_data_table_conf.xml.sample Fri Feb 19 18:53:40 2021 +0000 @@ -1,7 +1,7 @@ - - value,name,path - +
+ value,name,path,version +
diff -r 077cf0a99144 -r 3d82020b1e3b tool_data_table_conf.xml.test --- a/tool_data_table_conf.xml.test Fri Sep 04 21:38:59 2020 +0000 +++ b/tool_data_table_conf.xml.test Fri Feb 19 18:53:40 2021 +0000 @@ -1,7 +1,7 @@ - - value,name,path - +
+ value,name,path,version +