[BioPython] PDBParser
Sam Khalouei
sam_kh918 at hotmail.com
Tue Dec 2 13:44:45 EST 2003
Hello,
I'm working on a PDBParser example in the biopython documentaion; 1fat.
from Bio.PDB.PDBParser import PDBParser
p=PDBParser(PERMISSIVE=1)
structure_id="1fat"
structure=p.get_structure(structure_id, "filename")
first_model=structure[0]
everything works fine upto here but then
chain_A=first_model["A"]
doesn't work and gives this error;
Traceback (most recent call last):
File "<pyshell#47>", line 1, in -toplevel-
chain=firstModel["A"]
File "C:\Python23\Lib\site-packages\Bio\PDB\Entity.py", line 33, in
__getitem__
return self.child_dict[id]
KeyError: 'A'
Could someone please tell me what could be wrong.
Thanks alot,
Sam K.
____________________________________________________
"There is a big difference between knowing the path
and walking the path..."
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
More information about the BioPython
mailing list