Frame

This module defines a class for handling trajectory frames.

class Frame(traj, index, coords, unitcell=None, velocs=None)[source]

A class for storing trajectory frame coordinates and provide methods acting on them.

getAtoms()[source]

Return associated/selected atoms.

getCoords()[source]

Return a copy of coordinates of (selected) atoms.

getDeviations()[source]

Return deviations from the trajectory reference coordinates.

getIndex()[source]

Return index.

getRMSD()[source]

Return RMSD from the trajectory reference coordinates. If weights for the trajectory are set, weighted RMSD will be returned.

getTrajectory()[source]

Return the trajectory.

getUnitcell()[source]

Return a copy of unitcell array.

getVelocities()[source]

Return a copy of velocities of (selected) atoms.

getWeights()[source]

Return coordinate weights for selected atoms.

numAtoms()[source]

Return number of atoms.

numSelected()[source]

Return number of selected atoms.

superpose()[source]

Superpose frame onto the trajectory reference coordinates. Note that transformation matrix is calculated based on selected atoms and applied to all atoms. If atom weights for the trajectory are set, they will be used to calculate the transformation.

Read the Docs v: v1.5
Versions
latest
v1.5
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.