[Biopython-dev] [Bug 2561] SeqRecord format method to get a string in a given file format

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Fri Aug 1 13:36:35 UTC 2008


http://bugzilla.open-bio.org/show_bug.cgi?id=2561





------- Comment #5 from mdehoon at ims.u-tokyo.ac.jp  2008-08-01 09:36 EST -------
> > If I am not mistaken, such a method would make SeqIO.write superfluous:
> > 
> > for record in records:
> >     handle.write(record.tostring(format))
> > 
> > does the same thing as
> > 
> > Bio.SeqIO.write(handle, records, format)
> 
> This would do the same thing ONLY for sequential file formats (which admittedly
> are the most commonly used ones).  It wouldn't work for anything more
> structured with a file header/footer (e.g. any XML format, and most alignment
> file formats).

I see. Then indeed we still need Bio.SeqIO.write.


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list