1. Create a dictionary to change three letter codes to one letter codes.
threeToOne =
{'ALA':'A','CYS':'C','ASP':'D','GLU':'E','PHE':'F','GLY':'G',...}
2. Create a selection and label the atoms.
label name ca, "%s%s" % (threeToOne[resn],resi)
Cheers,
Steve
Dominique Monferrer said the following on 9/15/08 8:15 AM:
> Dear all,
> Can anyone tell me wether pymol can label residues in 1-letter code
> and how to do it?
> Thanks,
> Dominique
--
Steven Darnell
University of Wisconsin-Madison
Madison, WI USA
[log in to unmask]
|