<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/4.8.5">
</HEAD>
<BODY>
Then why not add an argument to control that behaviour? <BR>
<BR>
Cheers?<BR>
<BR>
<BR>
On Fre, 2015-02-27 at 09:07 +0000, Peter Cock wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On Fri, Feb 27, 2015 at 4:42 AM, Horea Chrristian <<A HREF="mailto:h.chr@mail.ru">h.chr@mail.ru</A>> wrote:
<FONT COLOR="#737373">> Many thanks,</FONT>
<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> from Bio.Seq import Seq</FONT>
<FONT COLOR="#737373">> from Bio.Alphabet import generic_dna</FONT>
<FONT COLOR="#737373">> with open("my_example.txt") as handle:</FONT>
<FONT COLOR="#737373">> my_seq = Seq(handle.read().strip(), generic_dna)</FONT>
<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> solves it just fine. I would want one sequence regardless the line breaks,</FONT>
<FONT COLOR="#737373">> but that is not relly that important.</FONT>
Then try:
my_seq = Seq("".join(handle.read().strip().split()), generic_dna)
<FONT COLOR="#737373">> What do you mean by "Right now" - will this likely change soon?</FONT>
<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> Chhers,</FONT>
We could add a "raw" format to Bio.SeqIO if there was a clear
motivating use-case or user demand. I'm a little wary because
of ambiguities like if some people would expect multiple lines
to be separate sequences or not.
Regards,
Peter
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>