Skip to content

Commit

Permalink
Check if all the bowtie2 files are present
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Beghini committed Jun 16, 2020
1 parent d2043d2 commit 5614f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metaphlan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def check_and_install_database(index, bowtie2_db, bowtie2_build, nproc, force_re
except EnvironmentError:
sys.exit("ERROR: Unable to create folder for database install: " + bowtie2_db)

if index != 'latest' and len(glob(os.path.join(bowtie2_db, "*{}*".format(index)))) >= 7:
if index != 'latest' and len(glob(os.path.join(bowtie2_db, "*{}*".format(index)))) >= 6:
return index

#Download the list of all the files in the Dropbox folder
Expand Down

0 comments on commit 5614f59

Please sign in to comment.