[Biopython] SeqIO.write and user-specified wrapping

Ivan Gregoretti ivangreg at gmail.com
Mon Mar 4 16:14:16 UTC 2013


Hi Everybody,

Could a kind soul show how to produce a FASTA file without wrapping
its sequences?

I am looking for something like this:

from Bio import SeqIO
SeqIO.write(my_records, "my_example.fa", "fasta", wrap=0)

as opposed to the default wrapping after 60 characters.

Thanks for Biopython.

Ivan




Ivan Gregoretti, PhD
Bioinformatics



More information about the Biopython mailing list