comparison tools/protein_analysis/psortb.py @ 11:3d74c1176d67 draft

Uploaded minor fix
author peterjc
date Wed, 03 Apr 2013 10:47:50 -0400
parents 391a142c1e60
children 20139cb4c844
comparison
equal deleted inserted replaced
10:7c1eda453701 11:3d74c1176d67
154 del results 154 del results
155 del jobs 155 del jobs
156 156
157 out_handle = open(tabular_file, "w") 157 out_handle = open(tabular_file, "w")
158 out_handle.write("#%s\n" % "\t".join(header)) 158 out_handle.write("#%s\n" % "\t".join(header))
159 count = 0
159 for temp in temp_files: 160 for temp in temp_files:
160 data_handle = open(temp) 161 data_handle = open(temp)
161 count = clean_tabular(data_handle, out_handle) 162 count += clean_tabular(data_handle, out_handle)
162 data_handle.close() 163 data_handle.close()
163 if not count: 164 if not count:
164 clean_up(fasta_files + temp_files) 165 clean_up(fasta_files + temp_files)
165 stop_err("No output from psortb") 166 stop_err("No output from psortb")
166 out_handle.close() 167 out_handle.close()