[Biopython-dev] [Bug 1944] Align.Generic adding iterator and more
bugzilla-daemon at portal.open-bio.org
bugzilla-daemon at portal.open-bio.org
Mon Jun 16 20:08:00 UTC 2008
http://bugzilla.open-bio.org/show_bug.cgi?id=1944
------- Comment #15 from biopython-bugzilla at maubp.freeserve.co.uk 2008-06-16 16:07 EST -------
Created an attachment (id=943)
--> (http://bugzilla.open-bio.org/attachment.cgi?id=943&action=view)
Minimal __getitem__ method for generic alignment
This patch just adds a __getitem__ to the alignment which ONLY accepts a single
integer index and returns the corresponding SeqRecord object. I propose to add
this NOW, as I think even just this is a worthwhile improvement.
This is a natural expectation given the current __iter__ behaviour and the
model of the alignment as a list of SeqRecord objects. Its also part of the
more rich behaviour discussed above, which we can add more easily if/when the
SeqRecord gets a __getitem__ method (bug 2507).
Comments on this particular patch? Should we add __len__ at the same time
giving the number of rows in the alignments?
--
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