Skip to content

Commit

Permalink
update v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisKieft authored Feb 7, 2020
1 parent d2eaba9 commit a37e5f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions databases/VIBRANT_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@
print()
print("Verying correct dependency versions ...")
print("Logger started. Check log file for messages and errors.")
print()
logging.basicConfig(filename=str(parent_path) + '/databases/VIBRANT_test_setup.log', level=logging.INFO, format='%(message)s')
logging.info = logging.info

Expand Down Expand Up @@ -206,6 +207,7 @@
logging.info('')
logging.info(e)
logging.info('')
print("VIBRANT Error: see log for details.")
exit()

error = 0
Expand Down Expand Up @@ -259,13 +261,15 @@
except Exception as e:
logging.info("VIBRANT Error: Prodigal is not installed or not in $PATH. Please install Prodigal or add to $PATH.")
logging.info("\n")
print("VIBRANT Error: see log for details.")
exit()

try:
subprocess.check_output("hmmsearch -h 2>/dev/null", shell=True)
except Exception as e:
logging.info("VIBRANT Error: HMMER3 is not installed or not in $PATH. Please install HMMER3 or add to $PATH.")
logging.info("\n")
print("VIBRANT Error: see log for details.")
exit()

if str(kegg) != "10033":
Expand All @@ -285,6 +289,7 @@
error += 1

if error > 0:
print("VIBRANT Error: see log for details.")
exit()

if error == 0:
Expand Down

0 comments on commit a37e5f3

Please sign in to comment.