[BioPython] SeqUtils.antiparallel function
cgw501 at york.ac.uk
cgw501 at york.ac.uk
Thu Jul 21 12:37:42 EDT 2005
Hi,
I am parsing whole-chromosome genbank files, and need to get the reverse
complement of some of the sequence. Here's what I get trying things out in
the interpreter.
>>> x= 'atattatatat'
>>> from Bio.Seq import Seq
>>> a = Seq(x)
>>> from Bio.SeqUtils import antiparallel
>>> b = antiparallel(a)
Traceback (most recent call last):
File "<pyshell#9>", line 1, in ?
b = antiparallel(a)
File "C:\Python24\Lib\site-packages\Bio\SeqUtils\__init__.py", line 49,
in antiparallel
s = complement(seq)
File "C:\Python24\Lib\site-packages\Bio\SeqUtils\__init__.py", line 38,
in complement
return seq.translate(_ttable)
AttributeError: Seq instance has no attribute 'translate'
Not sure what I'm doing wrong. Thanks,
Chris
More information about the BioPython
mailing list