Re: [PyMOL] selection of residues

2017-03-22 Thread Thomas Holder
Hi Abhinav, - Object name is the "model" variable. Check this page: https://pymolwiki.org/index.php/Iterate#Exposed_Variables - Limit selection to enabled objects: "enabled" selection keyword - Limit selection to one atom per residue: "byca" will do the trick for proteins iterate byca (rep

Re: [PyMOL] selection of residues

2017-03-22 Thread Kumar, Abhinav
Hi Thomas, Thanks very much. It works well. However, can you please help me refine the print out? I want to include the object name and print only once the residue info for each residue. Currently it prints for all atoms of residues. I tried the following: iterate rep sticks,

Re: [PyMOL] selection of residues

2017-03-22 Thread Thomas Holder
Hi Abhinav, You can select by representation, e.g.: iterate rep sticks, print(chain, resi) or directly add labels on CA atoms: label byca rep sticks, resi Hope that helps. Cheers, Thomas On 22 Mar 2017, at 15:43, Kumar, Abhinav wrote: > Hi, > Is there a way of

[PyMOL] selection of residues

2017-03-22 Thread Kumar, Abhinav
Hi, Is there a way of extracting residue information from a session file in which a few residues are shown in sticks representation? I am interested in changing representation/adding labels to only those residues with stick representation. Thanks, Abhinav Abhinav Kumar, PhD Senior Scientist,