comparison tools/protein_analysis/wolf_psort.py @ 6:a290c6d4e658

Migrated tool version 0.0.9 from old tool shed archive to new tool shed repository
author peterjc
date Tue, 07 Jun 2011 18:07:09 -0400
parents 0f1c61998b22
children e52220a9ddad
comparison
equal deleted inserted replaced
5:0f1c61998b22 6:a290c6d4e658
39 39
40 FASTA_CHUNK = 500 40 FASTA_CHUNK = 500
41 exe = "runWolfPsortSummary" 41 exe = "runWolfPsortSummary"
42 42
43 """ 43 """
44 Note: I had trouble getting runWolfPsortSummary on the path, so used a wrapper 44 Note: I had trouble getting runWolfPsortSummary on the path (via a link, other
45 than by including all of /opt/WoLFPSORT_package_v0.2/bin , so used a wrapper
45 python script called runWolfPsortSummary as follows: 46 python script called runWolfPsortSummary as follows:
46 47
47 #!/usr/bin/env python 48 #!/usr/bin/env python
48 #Wrapper script to call WoLF PSORT from its own directory. 49 #Wrapper script to call WoLF PSORT from its own directory.
49 import os 50 import os
67 try: 68 try:
68 num_threads = int(sys.argv[2]) 69 num_threads = int(sys.argv[2])
69 except: 70 except:
70 num_threads = 0 71 num_threads = 0
71 if num_threads < 1: 72 if num_threads < 1:
72 stop_err("Threads argument %s is not a positive integer" % sys.argv[3]) 73 stop_err("Threads argument %s is not a positive integer" % sys.argv[2])
73 74
74 fasta_file = sys.argv[3] 75 fasta_file = sys.argv[3]
75 76
76 tabular_file = sys.argv[4] 77 tabular_file = sys.argv[4]
77 78