This is a read-only mirror of pymolwiki.org

Label

From PyMOL Wiki
Revision as of 06:01, 21 February 2005 by Tree (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

DESCRIPTION

   "label" labels one or more atoms properties over a selection using
  the python evaluator with a separate name space for each atom.  The
  symbols defined in the name space are:

     name, resn, resi, chain, q, b, segi, type (ATOM,HETATM) 
     formal_charge, partial_charge, numeric_type, text_type

  All strings in the expression must be explicitly quoted.  This
  operation typically takes several seconds per thousand atoms
  altered.

  To clear labels, simply omit the expression or set it to .

USAGE

  label (selection),expression

EXAMPLES

  label (chain A),chain
  label (n;ca),"%s-%s" % (resn,resi)
  label (resi 200),"%1.3f" % partial_charge