[Chimera-users] Regarding getSequence
Jean-Didier Maréchal
jeandidier.marechal at uab.es
Tue Dec 18 10:40:09 PST 2007
Hi again,
I'd like to return the sequence of the protein I opened in chimera in
the python shell.
>From what I read through, I thought that chimera.getSequence could be
used to do so.
I was thinking in a simple script beginning with :
import chimera
s=chimera.getSequence(0,0)
..
However the chimera.getSequence(0,0) comes back with:
Traceback (most recent call last):
File "<pyshell#50>", line 1, in ?
chimera.getSequence(0, 0)
File "CHIMERA/share/chimera/Sequence.py", line 614, in getSequence
File "CHIMERA/share/chimera/Sequence.py", line 656, in getSequences
AttributeError: 'int' object has no attribute 'residues'
and
chimera.getSequence(0,A)
with
Traceback (most recent call last):
File "<pyshell#48>", line 1, in ?
chimera.getSequence(0,A)
NameError: name 'A' is not defined
Did I understand correctly the role of getSequence? if yes, what would
be the correct syntax please?
Thanks a lot!
All the best,
JD
--
Dr. Jean-Didier Maréchal
Assistant Professor
Computational Bioorganic and Bioinorganic Chemistry @Transmet
Unitat de Química Física
Departament de Química
Universitat Autònoma de Barcelona
08193 Bellaterra, Spain
Tel: +34.(0)1935814936
Fax: +34.(0)1935812920
e-mail:jeandidier.marechal at uab.es
More information about the Chimera-users
mailing list