“resname” selects atoms based on their assigned residue names.
resname residue-name-pattern
resn residue-name-pattern
r. residue-name-pattern
indicate resname his color blue, resn arg+lys+his indicate r. gl* select acids, resn asp+glu
PyMOL supports residue names of up to four characters. However, the PDB file format cannot accomodate these names.
The strict macro equivalent is residue-name-pattern`/, however the back apostrophe can be omitted in most cases to allow for residue-name-pattern/.
indicate phe`/ indicate phe/ indicate arg+his+lys/