vmd.label.add

vmd.label.add()

Add a label of the given type. If label already exists, no action is performed. The number of elements in the molids and atomids tuple is determined by the label type.

Parameters:
  • category (str) – Label category to add. Must be one of the following: ‘Atoms’, ‘Bonds’, ‘Angles’, ‘Dihedrals’, ‘Springs’
  • molids (list or tuple) – Molids to label. Length as required to describe label category– 1 for atoms, 2 bonds, etc.
  • atomids (list or tuple) – Atom IDs to label. Must be same length as molids
Returns:

(dict) Dictionary describing the label, can be used as input to other

label module functions