[Biopython] write one rec to file at once

Iddo Friedberg idoerg at gmail.com
Wed May 22 20:25:12 UTC 2013


Probably a good idea to add this to the  the manual/cookbook.

On Wed, May 22, 2013 at 3:46 PM, Jocelyne <jocelyne at gmail.com> wrote:

> SeqIO.write(rec, fastq_out, "fastq")
>
> On Wed, May 22, 2013 at 12:08 PM, Frederico Moraes Ferreira
> <ferreirafm at usp.br> wrote:
> > Hi list,
> > Is there any way of writing one and only one record to a fastafile,
> without
> > have to open a reclist, append rec to it and only then write the reclist
> to
> > a previous opened file? I was just thinking, if I can read a rec at once
> > like:
> > inrec = SeqIO.read(open(fastafile, "rU"), "fasta")
> > why not write it at once?
> > Best,
> > Fred
> > _______________________________________________
> > Biopython mailing list  -  Biopython at lists.open-bio.org
> > http://lists.open-bio.org/mailman/listinfo/biopython
> _______________________________________________
> Biopython mailing list  -  Biopython at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biopython
>



-- 
Iddo Friedberg
http://iddo-friedberg.net/contact.html
++++++++++[>+++>++++++>++++++++>++++++++++>+++++++++++<<<<<-]>>>>++++.>
++++++..----.<<<<++++++++++++++++++++++++++++.-----------..>>>+.-----.
.>-.<<<<--.>>>++.>+++.<+++.----.-.<++++++++++++++++++.>+.>.<++.<<<+.>>
>>----.<--.>++++++.<<<<------------------------------------.



More information about the Biopython mailing list