I'm a new user, so my question is *extremely* basic...
I want to display atom numbers as labels, but this property does not
appear in the list of properties that can be displayed using the command
How can I do it?
Thanks in advance,
Xavier Deupi, Ph.D.
Department of Molecular and Cellular Physiology
Beckman Center for Molecular and Genetic Medicine (B161)
279 Campus Drive, Stanford University School of Medicine
Stanford, CA 94305 (USA)
Phone: +1 (650) 725-6497
Fax : +1 (650) 725-8021
From: Robert Campbell <rlc1@po...> - 2005-04-21 13:33:39
* Xavier Deupi <Xavier.Deupi@...> [2005-04-20 10:49] wrote:
> I'm a new user, so my question is *extremely* basic...
> I want to display atom numbers as labels, but this property does not
> appear in the list of properties that can be displayed using the command
> How can I do it?
label <selection>, ID
or if you want to shift the label away from the atom by one or two
label <selection>, " %s" % ID
Similarly, if you want complicated labels, you can do:
label <selection>, " %s:%s %s" % (resn,resi,name)
Robert L. Campbell, Ph.D. <rlc1@...>
Senior Research Associate phone: 613-533-6821
Dept. of Biochemistry, Queen's University, fax: 613-533-2497
Kingston, ON K7L 3N6 Canada http://adelie.biochem.queensu.ca/~rlc
PGP Fingerprint: 9B49 3D3F A489 05DC B35C 8E33 F238 A8F5 F635 C0E2