[Biopython-dev] [Bug 2507] Adding __getitem__ to SeqRecord for element access and slicing

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Wed Jun 4 19:50:14 UTC 2008


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





------- Comment #3 from jblanca at btc.upv.es  2008-06-04 15:50 EST -------
Created an attachment (id=927)
 --> (http://bugzilla.open-bio.org/attachment.cgi?id=927&action=view)
RichSeq proposal

I have coded a sequence class that fullfils the requirements that I would like
to see. It's very similar to SeqRecord, but it is not compatible with it. It
has no seq property, although that can be solved. The problem with SeqRecord is
that it is not possible to create a class with an __init__ compatible with Seq
and SeqRecord at the same time.
This proposed class is just a draft, it needs more work but I would like to
receive comments about it.
It inherits from MutableSeq so it should be named MutableRichSeq, but it seems
that I'm too lazy to such a long name, I promise to change the name in a later
version and to create a RichSeq with Seq as parent.
Besides RichSeq there is in the attachment two other classes, RichFeature and
BioRange, but I would comment on that in another post.
I think that it is quite important to convert Seq and MutableSeq to newclasses,
what do you think about that? With the new classes we can use properties.


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