Skip to content

Commit

Permalink
Tolerate failure of the midas genes step
Browse files Browse the repository at this point in the history
Closes #2, albeit in a slightly different way than described
  • Loading branch information
Sam Minot committed Feb 8, 2018
1 parent a5541db commit c1e5860
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
temp/
temp/
*pyc
7 changes: 4 additions & 3 deletions lib/midas_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ def run_midas(
"-t", str(threads),
"--remove_temp",
"-d", db_fp
])
assert os.path.exists(
os.path.join(output_folder, "genes")
],
# Tolerate failure of this command because it may fail if
# there are no species meeting the indicated depth threshold
catchExcept=True
)

logging.info("Done running MIDAS")
Expand Down

0 comments on commit c1e5860

Please sign in to comment.