Dear Vijay,
thank you very much, it works very good. Magic! :-)
Cheers,
Enrico
ср, 12 янв. 2022 г. в 13:53, Dr. Vijay Masand :
>
> Dear Enrico
> Use the following command:
> label n. CA & all within 5 of organic, "%s%s" % (resn,resi)
> The above command will label all CA atoms within 5 angstrom fr
Hi Enrico,
This is actually quite simple, see the PyMOL wiki:
https://pymolwiki.org/index.php/Aa_codes
Paste this python dictionary into PyMOL:
one_letter ={'VAL':'V', 'ILE':'I', 'LEU':'L', 'GLU':'E', 'GLN':'Q', \
'ASP':'D', 'ASN':'N', 'HIS':'H', 'TRP':'W', 'PHE':'F', 'TYR':'Y',\
'ARG':'R'
exactly we may do it in the context meny for the particular selection
(we do not need to select a particular residues, so ..)
but may we create the same label using label command as well ??
cmd.label('sele', 'resn')
I think something should be used instead of 'resn'. there is also
option 'resi' whi