diff tools/protein_analysis/wolf_psort.py @ 18:eb6ac44d4b8e draft

Suite v0.2.8, record Promoter 2 verion + misc internal updates
author peterjc
date Tue, 01 Sep 2015 09:56:36 -0400
parents 99b82a2b1272
children f3ecd80850e2
line wrap: on
line diff
--- a/tools/protein_analysis/wolf_psort.py	Fri Nov 21 08:19:09 2014 -0500
+++ b/tools/protein_analysis/wolf_psort.py	Tue Sep 01 09:56:36 2015 -0400
@@ -35,7 +35,7 @@
 """
 import sys
 import os
-from seq_analysis_utils import stop_err, split_fasta, run_jobs, thread_count
+from seq_analysis_utils import sys_exit, split_fasta, run_jobs, thread_count
 
 FASTA_CHUNK = 500
 exe = "runWolfPsortSummary"
@@ -59,11 +59,11 @@
 """
 
 if len(sys.argv) != 5:
-    stop_err("Require four arguments, organism, threads, input protein FASTA file & output tabular file")
+    sys_exit("Require four arguments, organism, threads, input protein FASTA file & output tabular file")
 
 organism = sys.argv[1]
 if organism not in ["animal", "plant", "fungi"]:
-    stop_err("Organism argument %s is not one of animal, plant, fungi" % organism)
+    sys_exit("Organism argument %s is not one of animal, plant, fungi" % organism)
 
 num_threads = thread_count(sys.argv[2], default=4)
 fasta_file = sys.argv[3]
@@ -106,7 +106,7 @@
     if error_level or output.lower().startswith("error running"):
         clean_up(fasta_files)
         clean_up(temp_files)
-        stop_err("One or more tasks failed, e.g. %i from %r gave:\n%s" % (error_level, cmd, output),
+        sys_exit("One or more tasks failed, e.g. %i from %r gave:\n%s" % (error_level, cmd, output),
                  error_level)
 del results