AlignPlan
Align trajectory frames by superposition to a reference structure.Constructor
Atoms to use for alignment (typically backbone or C-alpha)
Reference structure:
"first": First frame"average": Average structure- Integer: Specific frame index
Use mass-weighted alignment
run() Method
Returns: Modified trajectory with all atoms alignedExample
Alignment is essential before RMSD or RMSF calculations to remove overall rotation and translation.
AutoImagePlan
Automatically image molecules into the primary simulation box.Constructor
Molecule to keep centered (e.g., protein). If None, uses largest molecule
Center anchor in the box
Example
CenterTrajectoryPlan
Center a selection in the simulation box.Constructor
Atoms to center on
Use center of mass (True) or geometric center (False)
Example
StripPlan
Remove atoms from trajectory.Constructor
Atoms to retain (all others will be removed)
Example
Python Helper Functions
Combined Workflow Example
Frame Selection During Processing
Additional Transform Plans
Additional trajectory transform plans are available:
- ImagePlan — Apply periodic boundary imaging
- ReplicateCellPlan — Replicate unit cell in 3D
- XtalSymmPlan — Apply crystallographic symmetry operations
- SuperposePlan — Superpose selection onto reference
- TranslatePlan — Translate coordinates by vector
- RotatePlan — Rotate coordinates around axis
- ScalePlan — Scale coordinates
- TransformPlan — Apply arbitrary transformation matrix
- MeanStructurePlan — Calculate mean structure
- MakeStructurePlan — Create structure from coordinates
- AverageFramePlan — Average coordinates across frames
warp-md list-plans --category transforms to see detailed parameters for all transform plans.