Mercurial > repos > peterjc > tmhmm_and_signalp
changeset 11:3d74c1176d67 draft
Uploaded minor fix
author | peterjc |
---|---|
date | Wed, 03 Apr 2013 10:47:50 -0400 |
parents | 7c1eda453701 |
children | 7ef4b36b026a |
files | tools/protein_analysis/psortb.py tools/protein_analysis/psortb.xml |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/protein_analysis/psortb.py Wed Apr 03 10:31:27 2013 -0400 +++ b/tools/protein_analysis/psortb.py Wed Apr 03 10:47:50 2013 -0400 @@ -156,9 +156,10 @@ out_handle = open(tabular_file, "w") out_handle.write("#%s\n" % "\t".join(header)) +count = 0 for temp in temp_files: data_handle = open(temp) - count = clean_tabular(data_handle, out_handle) + count += clean_tabular(data_handle, out_handle) data_handle.close() if not count: clean_up(fasta_files + temp_files)
--- a/tools/protein_analysis/psortb.xml Wed Apr 03 10:31:27 2013 -0400 +++ b/tools/protein_analysis/psortb.xml Wed Apr 03 10:47:50 2013 -0400 @@ -41,6 +41,11 @@ </requirements> <tests> <test> + <param name="sequence" value="empty.fasta" ftype="fasta"/> + <param name="long" value="terse"/> + <output name="outfile" file="empty_psortb_terse.tabular" ftype="tabular"/> + </test> + <test> <param name="sequence" value="k12_ten_proteins.fasta" ftype="fasta"/> <param name="long" value="terse"/> <output name="outfile" file="k12_ten_proteins_psortb_p_terse.tabular" ftype="tabular"/>