Hi,
Disclaimer: This is not my own. I raised it in pymol bb sometime back and got help. Unfortunately I don't remember now who helped me out in order to give credit.
Of course, using this is not so straight forward. Eg, in order to do one letter labelling for a specific object, say active site, what I do is first label the whole protein with one letter labelling and following that,
hide labels, !<object>
Add this in your pymolrc or .pymolrc file. After this, if you hit lb in your pyml, you can see one letter codes of the amino acids.
# start $HOME/.pymolrc modification
onel = {'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
alias lb, label n. ca, onel[resn]+resi
Hope this helps.
-----Original Message-----
From: CCP4 bulletin board on behalf of Dominique Monferrer
Sent: Mon 9/15/2008 6:45 PM
To: [log in to unmask]
Subject: [ccp4bb] 1 letter code labels in pymol
Dear all,
Can anyone tell me wether pymol can label residues in 1-letter code and how
to do it?
Thanks,
Dominique
--
Dominique Monferrer
PhD Student
*************************
IBMB-CSIC
HELIX-P3A17
c/Baldiri Reixach, 15
Barcelona 08034
SPAIN
Tel.: +34934020194
|