[Chimera-users] accessing atom information

Bala subramanian bala.biophysics at gmail.com
Sat May 15 05:54:39 PDT 2010


Friends,

I have just begun to explore the chimera-python linkage. I loaded a pdb file
using chimera.openModels function. Then i tried to loop through the residues
and display atom information based on a condition.

>>>for r in mymodel.residues:                  *#this works for me*
            if r.type=='ARG': print r.atoms

>>>for r in mymodel.residues:                *#this dose not work. I know
there is a ARG residue with id 151.*
             if r.id=='151': print r.atoms

I dnt understand how atom attributes are packaged within a residue. Kindly
write me few examples of accessing atom information from a residue.

Thanks,
Bala
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20100515/1ce1044c/attachment.html>


More information about the Chimera-users mailing list