Skip to content

Commit

Permalink
updating download from zenodo
Browse files Browse the repository at this point in the history
  • Loading branch information
fasnicar committed Aug 28, 2020
1 parent 312f405 commit c094ff2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions phylophlan/phylophlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
'Claudia Mengoni ([email protected]), '
'Mattia Bolzan ([email protected]), '
'Nicola Segata ([email protected])')
__version__ = '3.0.54'
__date__ = '26 August 2020'
__version__ = '3.0.55'
__date__ = '28 August 2020'


import os
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c094ff2

Please sign in to comment.