Mercurial > repos > galaxyp > data_manager_eggnog_mapper
diff data_manager/data_manager_eggnog.py @ 2:3d82020b1e3b draft
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/eggnog_mapper/eggnog_mapper_data_manager commit fd234f7532b34a1b6ced0d3ac53a8f42348e23f7"
author | galaxyp |
---|---|
date | Fri, 19 Feb 2021 18:53:40 +0000 |
parents | 077cf0a99144 |
children | 5a2ffc486246 |
line wrap: on
line diff
--- 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