Skip to content

Commit

Permalink
Update PfamScan.py
Browse files Browse the repository at this point in the history
Corrected sys.ext to sys.exit
  • Loading branch information
aaronmussig authored Mar 15, 2023
1 parent 6f8b2a4 commit 3bcb46a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtdbtk/external/pypfam/Scan/PfamScan.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ def _process_args(self, kwargs):
self._hmmscan_cutoff = list()
if 'e_seq' in kwargs:
if not kwargs['e_seq'] > 0:
sys.ext('FATAL: the E-value sequence cut-off "-e_seq" must be positive non-zero number')
sys.exit('FATAL: the E-value sequence cut-off "-e_seq" must be positive non-zero number')
self._hmmscan_cutoff += ['-E', kwargs['e_seq']]

if 'e_dom' in kwargs:
if 'e_seq' not in kwargs:
sys.exit('FATAL: if you supply "-e_dom" you must also supply "-e_seq"')
if not kwargs['e_dom'] > 0:
sys.ext('FATAL: the E-value domain cut-off "-e_dom" must be positive non-zero number')
sys.exit('FATAL: the E-value domain cut-off "-e_dom" must be positive non-zero number')
self._hmmscan_cutoff += ['--domE', kwargs['e_dom']]

if 'b_seq' in kwargs:
Expand Down

0 comments on commit 3bcb46a

Please sign in to comment.