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