[Biopython-dev] 4/2 active questions tagged biopython - Stack Overflow
Chen Wei
weichen302 at aol.com
Sat Apr 2 08:49:13 UTC 2011
On Sat, Apr 02, 2011 at 04:09:17AM -0400, Feed My Inbox wrote:
> from Bio.Alphabet import IUPAC
> from Bio import Seq
> my_prot=Seq("AGTACACTGGT",IUPAC.protein)
>
> and it gives me this error
>
> TypeError: 'module' object is not callable
>
it is a namespace problem, Seq is a class lives inside module Seq. Take
a look at Bio/Seq.py.
u can either change the code to:
my_prot=Seq.Seq("AGTACACTGGT",IUPAC.protein)
or use:
from Bio.Seq import Seq
--
Chen Wei
More information about the Biopython-dev
mailing list