Conformation

This module defines classes handling individual conformations.

class Conformation(ensemble, index)[source]

A class to provide methods on a conformation in an ensemble. Instances of this class do not keep coordinate and weights data.

getAtoms()[source]

Returns associated atom group.

getCoords()[source]

Returns a copy of the coordinates of the conformation. If a subset of atoms are selected in the ensemble, coordinates for selected atoms will be returned.

getData(label)[source]

Returns a copy of the data array associated with label, or None if such data is not present.

getDeviations()[source]

Returns deviations from the ensemble reference coordinates. Deviations are calculated for (selected) atoms.

getEnsemble()[source]

Returns the ensemble that this conformation belongs to.

getIndex()[source]

Returns conformation index.

getRMSD()[source]

Returns RMSD from the ensemble reference coordinates. RMSD is calculated for (selected) atoms.

getWeights()[source]

Returns coordinate weights for (selected) atoms.

numAtoms()[source]

Returns number of atoms.

numSelected()[source]

Returns number of selected atoms.

class PDBConformation(ensemble, index)[source]

This class is the same as Conformation, except that the conformation has a name (or identifier), e.g. PDB identifier.

getAtoms()

Returns associated atom group.

getCoords()[source]

Returns a copy of the coordinates of the conformation. If a subset of atoms are selected in the ensemble, coordinates for selected atoms will be returned.

Warning

When there are atoms with weights equal to zero (0), their coordinates will be replaced with the coordinates of the ensemble reference coordinate set.

getDeviations()[source]

Returns deviations from the ensemble reference coordinates. Deviations are calculated for (selected) atoms.

getEnsemble()

Returns the ensemble that this conformation belongs to.

getIndex()

Returns conformation index.

getLabel()[source]

Returns the label of the conformation.

getRMSD()[source]

Returns RMSD from the ensemble reference coordinates. RMSD is calculated for (selected) atoms.

getSequence()[source]

Returns the sequence of the conformation.

getTransformation()[source]

Returns the Transformation used to superpose this conformation onto reference coordinates. The transformation can be used to superpose original PDB file onto the reference PDB file.

getWeights()[source]

Returns coordinate weights for (selected) atoms.

numAtoms()

Returns number of atoms.

numSelected()

Returns number of selected atoms.

setLabel(label)[source]

Set the label of the conformation.