Custom residue labels can be generated using Actions... Label... residue... custom in the Chimera menu. Alternatively, custom labels for both atoms and residues can be defined with the command labelopt. See also: 2D Labels, attributes
In the custom labeling dialog, Residue label contents can be described with arbitrary text and/or substitution codes of the form %(descriptor)format. A literal percent symbol % can be specified with %%.
The descriptor can be any of the following:
The format can be several things, described as components #3-7 of a conversion specifier in the Python documentation, but useful possibilities include:
wt %(1-letter code)s%(number)s
If the custom label definition includes a descriptor that is not applicable to a particular residue (not all residues have an insertion code or chain ID, for example), nothing will be inserted in that part of the label for that residue.
OK performs the labeling and dismisses the dialog, whereas Apply performs the labeling without dismissing the dialog. Close simply dismisses the dialog. Help opens this manual page in a browser window.