From c094ff2ef0b26162aaa19513796576d355482a31 Mon Sep 17 00:00:00 2001 From: fasnicar Date: Fri, 28 Aug 2020 19:13:47 +0200 Subject: [PATCH] updating download from zenodo --- phylophlan/phylophlan.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/phylophlan/phylophlan.py b/phylophlan/phylophlan.py index 7d58319..e6192c0 100755 --- a/phylophlan/phylophlan.py +++ b/phylophlan/phylophlan.py @@ -6,8 +6,8 @@ 'Claudia Mengoni (claudia.mengoni@studenti.unitn.it), ' 'Mattia Bolzan (mattia.bolzan@unitn.it), ' 'Nicola Segata (nicola.segata@unitn.it)') -__version__ = '3.0.54' -__date__ = '26 August 2020' +__version__ = '3.0.55' +__date__ = '28 August 2020' import os @@ -3117,11 +3117,13 @@ def download_and_unpack_db(db_name, db_url, db_md5, folder, update=False, verbos error('database directory "{}" is not writeable, please modify the permissions'.format(folder), exit=True) # download database - tar_file = os.path.join(folder, os.path.basename(db_url).replace('?dl=1', '')) + # tar_file = os.path.join(folder, os.path.basename(db_url).replace('?dl=1', '')) + tar_file = os.path.join(folder, os.path.basename(db_url).replace('?download=1', '')) download(db_url, tar_file, overwrite=update, verbose=verbose) # download MD5 checksum - md5_file = os.path.join(folder, os.path.basename(db_md5).replace('?dl=1', '')) + # md5_file = os.path.join(folder, os.path.basename(db_md5).replace('?dl=1', '')) + md5_file = os.path.join(folder, os.path.basename(db_md5).replace('?download=1', '')) download(db_md5, md5_file, overwrite=update, verbose=verbose) md5_md5 = None