Mercurial > repos > peterjc > tmhmm_and_signalp
comparison tools/protein_analysis/seq_analysis_utils.py @ 25:41a42022f815 draft
Uploaded v0.2.6, embedded citations
author | peterjc |
---|---|
date | Fri, 21 Nov 2014 08:17:36 -0500 |
parents | 5e62aefb2918 |
children | 20139cb4c844 |
comparison
equal
deleted
inserted
replaced
24:ee10017fcd80 | 25:41a42022f815 |
---|---|
89 elif not line.strip() or line.startswith("#"): | 89 elif not line.strip() or line.startswith("#"): |
90 #Ignore blank lines, and any comment lines | 90 #Ignore blank lines, and any comment lines |
91 #between records (starting with hash). | 91 #between records (starting with hash). |
92 pass | 92 pass |
93 else: | 93 else: |
94 handle.close() | |
94 raise ValueError("Bad FASTA line %r" % line) | 95 raise ValueError("Bad FASTA line %r" % line) |
95 handle.close() | 96 handle.close() |
96 if title: | 97 if title: |
97 if truncate: | 98 if truncate: |
98 seq = seq[:truncate] | 99 seq = seq[:truncate] |