[Biopython-dev] Restriction analysis package.

Michael Hoffman hoffman at ebi.ac.uk
Mon Jun 7 04:54:28 EDT 2004


On Mon, 7 Jun 2004, fsms at users.sourceforge.net wrote:

> Ok, sorry my mistake. antiparallel is fed with a string
> not a Seq object.

A Seq object works just fine. It just always returns a string:

Python 2.3.3 (#1, Mar 31 2004, 11:17:07)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from Bio.Seq import Seq
>>> from Bio.Alphabet import IUPAC
>>> s = Seq("ACGTAAAAAA", IUPAC.IUPACAmbiguousDNA)
>>> from Bio.SeqUtils import antiparallel
>>> b = antiparallel(s)
>>> b
'TTTTTTACGT'
>>> type(b)
<type 'str'>
-- 
Michael Hoffman <hoffman at ebi.ac.uk>
European Bioinformatics Institute



More information about the Biopython-dev mailing list