Skip to content

Commit

Permalink
fix DL database
Browse files Browse the repository at this point in the history
  • Loading branch information
leonarDubois committed Nov 5, 2020
1 parent 66e4474 commit e1c3d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panphlan_download_pangenome.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def main():
current_hash = hashlib.md5(open( os.path.join(args.output, filename),'rb').read()).hexdigest()
while current_hash != true_md5:
sys.stdout.write('[W] Incorrect MD5 sum. PanPhlAn will try to re-dowload the file...\n')
download(url, os.path.join(args.output, filename) overwrite=True )
download(url, os.path.join(args.output, filename), overwrite=True )
current_hash = hashlib.md5(open( os.path.join(args.output, filename),'rb').read()).hexdigest()
sys.stdout.write('[I] File downloaded ! MD5 checked\n')
extract_pangenome(filename, args.output)
Expand Down

0 comments on commit e1c3d51

Please sign in to comment.