Mercurial > repos > peterjc > tmhmm_and_signalp
diff tools/protein_analysis/promoter2.py @ 8:976a5f2833cd draft
Uploaded v0.1.1 of the bundle, which fixes an error in the header of the tabular output produced for Promoter 2.0
author | peterjc |
---|---|
date | Mon, 30 Jul 2012 12:56:54 -0400 |
parents | 9b45a8743100 |
children | e52220a9ddad |
line wrap: on
line diff
--- a/tools/protein_analysis/promoter2.py Mon Jul 30 10:25:07 2012 -0400 +++ b/tools/protein_analysis/promoter2.py Mon Jul 30 12:56:54 2012 -0400 @@ -73,7 +73,6 @@ """Parse text output into tabular, return query count.""" identifier = None queries = 0 - #out.write("#Identifier\tDescription\tPosition\tScore\tLikelihood\n") for line in raw_handle: #print repr(line) if not line.strip() or line == "Promoter prediction:\n": @@ -99,7 +98,6 @@ "Highly likely prediction"]: stop_err("ERROR: Problem with line: %r" % line) out_handle.write("%s\t%s\t%s\t%s\n" % (identifier, position, score, likelihood)) - #out.close() return queries working_dir, bin = get_path_and_binary() @@ -147,7 +145,7 @@ del jobs out_handle = open(tabular_file, "w") -out_handle.write("#Identifier\tDescription\tPosition\tScore\tLikelihood\n") +out_handle.write("#Identifier\tPosition\tScore\tLikelihood\n") queries = 0 for temp in temp_files: data_handle = open(temp)