This is a read-only mirror of pymolwiki.org

Difference between revisions of "Label"

From PyMOL Wiki
Jump to navigation Jump to search
(No difference)

Revision as of 06:01, 21 February 2005

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