[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 06:19:15 EDT 2008


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





------- Comment #2 from mdehoon at ims.u-tokyo.ac.jp  2008-08-01 06:19 EST -------
I would be in favor of adding a .tostring(format) method to the SeqRecord
class.
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)

To keep the Biopython API clean, I would therefore suggest to add
record.tostring(format) and to remove SeqIO.write (after properly deprecating
it and having a bunch of releases with SeqIO.write deprecated).


-- 
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