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]
Returns associated/selected atoms.
-
getCoords
()[source]
Returns a copy of coordinates of (selected) atoms.
-
getDeviations
()[source]
Returns deviations from the trajectory reference coordinates.
-
getIndex
()[source]
Returns index.
-
getRMSD
()[source]
Returns RMSD from the trajectory reference coordinates. If weights
for the trajectory are set, weighted RMSD will be returned.
-
getTrajectory
()[source]
Returns the trajectory.
-
getUnitcell
()[source]
Returns a copy of unitcell array.
-
getVelocities
()[source]
Returns a copy of velocities of (selected) atoms.
-
getWeights
()[source]
Returns coordinate weights for selected atoms.
-
numAtoms
()[source]
Returns number of atoms.
-
numSelected
()[source]
Returns 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.