comparison tools/protein_analysis/seq_analysis_utils.py @ 17:e6cc27d182a8 draft

Uploaded v0.2.6, embedded citations and uses $GALAXY_SLOTS
author peterjc
date Fri, 21 Nov 2014 08:19:09 -0500
parents e52220a9ddad
children eb6ac44d4b8e
comparison
equal deleted inserted replaced
16:7de64c8b258d 17:e6cc27d182a8
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]