[Biopython-dev] [Bug 1689] Seq is broken in CVS
Michael Hoffman
hoffman at ebi.ac.uk
Thu Aug 26 09:17:38 EDT 2004
On Thu, 26 Aug 2004, Michiel Jan Laurens de Hoon wrote:
> The complement and reverse_complement were added to Seq.py because previously
> several implementations of similar functions existed in different parts of
> Biopython. The function forward_complement in Bio.GFF.easy takes a Seq object
> and returns a Seq object. The function complement in Bio.SeqUtils takes a string
> and returns a string. I have a slight preference for returning a Seq object for
> consistency with MutableSeq, and also because a user might expect to receive an
> object of the same type.
I understand what Fred was saying but I agree with Michiel's logic
here. If I started with a Seq I would expect to get one back from a
reverse function.
--
Michael Hoffman <hoffman at ebi.ac.uk>
European Bioinformatics Institute
More information about the Biopython-dev
mailing list