allpy
view allpy/fasta.py @ 330:6ad74e2ba3d2
Fixed bug: fasta reader broke on files with Windows EOLs broke
author | Daniil Alexeyevsky <me.dendik@gmail.com> |
---|---|
date | Fri, 17 Dec 2010 20:54:35 +0300 |
parents | 01547d8d5c36 |
children | 6190ad032194 |
line source
4 """Parse fasta file, remove spaces and newlines from sequence bodies.
6 Return a list of tuples (name, description, sequence_body).
7 """
20 """ Saves given string to out_file in fasta_format
22 Splits long lines to substrings of length=long_line
23 To prevent this, set long_line=None
24 """
35 """ Returns maximum sequence line length in fasta file """
43 # vim: set ts=4 sts=4 sw=4 et: