Re: [Tutor] Concatenating multiple lines into one

2012-02-12 Thread Spyros Charonis
Thanks for all the help, Peter's and Hugo's methods worked well in concatenating multiple lines into a single data structure! S On Fri, Feb 10, 2012 at 5:30 PM, Mark Lawrence wrote: > On 10/02/2012 17:08, Peter Otten wrote: > >> Spyros Charonis wrote: >> >> Dear python community, >>> >>> I have

Re: [Tutor] Concatenating multiple lines into one

2012-02-10 Thread Mark Lawrence
On 10/02/2012 17:08, Peter Otten wrote: Spyros Charonis wrote: Dear python community, I have a file where I store sequences that each have a header. The structure of the file is as such: sp|(some code) =>1st header AGGCGG MNKPLOI . . sp|(some code) => 2nd header AA

Re: [Tutor] Concatenating multiple lines into one

2012-02-10 Thread Peter Otten
Spyros Charonis wrote: > Dear python community, > > I have a file where I store sequences that each have a header. The > structure of the file is as such: > >>sp|(some code) =>1st header > AGGCGG > MNKPLOI > . > . > >>sp|(some code) => 2nd header > AA > ... > . > >

Re: [Tutor] Concatenating multiple lines into one

2012-02-10 Thread Hugo Arts
On Fri, Feb 10, 2012 at 5:38 PM, Spyros Charonis wrote: > Dear python community, > > I have a file where I store sequences that each have a header. The structure > of the file is as such: > >>sp|(some code) =>1st header > AGGCGG > MNKPLOI > . > . > >>sp|(some code) => 2nd header >

[Tutor] Concatenating multiple lines into one

2012-02-10 Thread Spyros Charonis
Dear python community, I have a file where I store sequences that each have a header. The structure of the file is as such: >sp|(some code) =>1st header AGGCGG MNKPLOI . . >sp|(some code) => 2nd header AA ... . .. I am looking to implement a logical structure t