Mercurial > repos > peterjc > tmhmm_and_signalp
diff tools/protein_analysis/seq_analysis_utils.py @ 26:20139cb4c844 draft
planemo upload for repository https://github.com/peterjc/pico_galaxy/tools/protein_analysis commit 221d4187992cbb993e02dc3ea0ef0150c7916a4a-dirty
author | peterjc |
---|---|
date | Wed, 13 May 2015 06:14:42 -0400 |
parents | 41a42022f815 |
children | 3cb02adf4326 |
line wrap: on
line diff
--- a/tools/protein_analysis/seq_analysis_utils.py Fri Nov 21 08:17:36 2014 -0500 +++ b/tools/protein_analysis/seq_analysis_utils.py Wed May 13 06:14:42 2015 -0400 @@ -14,7 +14,7 @@ __version__ = "0.0.1" -def stop_err(msg, error_level=1): +def sys_exit(msg, error_level=1): """Print error message to stdout and quit with given error level.""" sys.stderr.write("%s\n" % msg) sys.exit(error_level) @@ -57,7 +57,7 @@ except: num = default if num < 1: - stop_err("Threads argument %r is not a positive integer" % command_line_arg) + sys_exit("Threads argument %r is not a positive integer" % command_line_arg) #Cap this with the pysical limit of the machine, try: num = min(num, cpu_count())