Skip to content

Commit

Permalink
not quiet mafft
Browse files Browse the repository at this point in the history
should throw more informative errors. Allows debugging for #204
  • Loading branch information
ACEnglish committed Apr 3, 2024
1 parent e0c8a34 commit 7b1663e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions truvari/phab.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,10 @@ def run_mafft(seq_bytes, params=DEFAULT_MAFFT_PARAM):
import hashlib # pylint: disable=import-outside-toplevel
dev_name = hashlib.md5(seq_bytes).hexdigest()

ret = truvari.cmd_exe(f"mafft --quiet {params} -", stdin=seq_bytes)
ret = truvari.cmd_exe(f"mafft {params} -", stdin=seq_bytes)
if ret.ret_code != 0:
logging.error("Unable to run MAFFT")
logging.error(ret.stderr)
logging.error("stderr:", ret.stderr)
return ""

if dev_name is not None:
Expand Down

0 comments on commit 7b1663e

Please sign in to comment.