Skip to content

Commit

Permalink
Merge pull request #447 from dengzq1234/instance#416
Browse files Browse the repository at this point in the history
Handling outdated taxdump file etetoolkit.  fixes #416
  • Loading branch information
jhcepas committed Mar 29, 2020
2 parents 437efd9 + 475dd79 commit 3f20592
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ete3/ncbi_taxonomy/ncbiquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,9 @@ def update_db(dbfile, targz_file=None):
local_md5 = md5(open("taxdump.tar.gz", "rb").read()).hexdigest()
if local_md5 != md5_check:
do_download = True
print('Updating taxdump.tar.gz from NCBI FTP site (via HTTP)...', file=sys.stderr)
urlretrieve("http://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz", targz_file)
print('Done. Parsing...', file=sys.stderr)
else:
print('Local taxdump.tar.gz seems up-to-date', file=sys.stderr)
else:
Expand Down

0 comments on commit 3f20592

Please sign in to comment.