Hello Ramesh,

> Is it possible to do the labelling using single letter codes for the
> amino acid residues rather than the three letter codes?

Yes.

1. Add this to your $HOME/.pymolrc  file:

# start $HOME/.pymolrc modification
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', 'LYS':'K', 'SER':'S', 'THR':'T', 'MET':'M', 'ALA':'A',    \
'GLY':'G', 'PRO':'P', 'CYS':'C'}
# end modification

2. instead of:

      label n. ca, resn

   use:

      label n. ca, one_letter[resn]


Cheers,
   Zac
--
Ezequiel PANEPUCCI, Ph.D. - Institut Pasteur
Plate-Forme 6 - Cristallogénèse et Diffraction des Rayons X
Telephone: +33 (0)1.4061.3930
Portable:  +33 (0)6.1314.3906

Reply via email to