[BioPython] question about navigating a PDB

Thomas Hamelryck thamelry at binf.ku.dk
Mon Jun 21 09:30:11 EDT 2004


> parser=PDBParser(PERMISSIVE=0)
> structure=parser.get_structure('foo','bar.pdb')
> liste=[]
> model=structure[0]
> chain=model['A']
> for residue in chain.get_iterator():
> 	if residue.has_key('CA'):
> 		atom=residue['CA']
>		a=atom.get_coord()
> 		liste.append(a)

Cheers,

-Thomas



More information about the BioPython mailing list