[Biopython-dev] Subclassing Seq and SeqRecord

Peter biopython at maubp.freeserve.co.uk
Tue Nov 24 16:17:14 UTC 2009


On Tue, Nov 24, 2009 at 4:06 PM, Jose Blanca <jblanca at btc.upv.es> wrote:
>> What does your Seq subclass aim to do? Add one or two general
>> methods to enhance the Seq object - or model something a little
>> different?
>
> Basically I want to use just a Seq and a SeqRecord almost as the Biopython
> ones. For the SeqRecord I'm adding a qual property, but I can change my
> code to deal with that.

OK, I can see the purpose here.

> Also I've added an __add__ (that I will remove as soon as the biopython
> one is stable) ...

OK. I consider the SeqRecord __add__ to be stable, but await comments.

> ... and complement method to SeqRecord ...

Interesting. Do you mean complement or reverse_complement? It would
have been nice to have had your comments on this earlier thread:
http://lists.open-bio.org/pipermail/biopython-dev/2009-September/006850.html
http://lists.open-bio.org/pipermail/biopython-dev/2009-October/006851.html

> ... and __eq__ to Seq.

Seq object equality is a tricky thing, see the other thread:
http://lists.open-bio.org/pipermail/biopython-dev/2009-November/007021.html

Peter



More information about the Biopython-dev mailing list