Bond

This module defines Bond for dealing with bond information provided by using AtomGroup.setBonds() method.

class Bond(ag, indices, acsi=None)[source]

A pointer class for bonded atoms. Following built-in functions are customized for this class:

getACSIndex()

Returns index of the coordinate set.

getAtomGroup()

Returns atom group.

getAtoms()

Returns bonded atoms.

getIndices()

Returns indices of bonded atoms.

getLength()

Returns bond length.

getVector()

Returns bond vector that originates from the first atom.

setACSIndex(index)

Set the coordinate set at index active.