DihedralPlan
Compute dihedral angle for a single set of four atoms.Constructor
First atom
Second atom
Third atom
Fourth atom
Periodic boundary conditions:
"none" or "orthorhombic"Return angles in degrees (True) or radians (False)
Use range [0, 360) instead of [-180, 180)
Example
MultiDihedralPlan
Compute multiple dihedral angles simultaneously.Constructor
List of tuples, each containing 4 selections:
[(sel_a, sel_b, sel_c, sel_d), ...]Use center of mass for each selection
Periodic boundary conditions
Output in degrees
Use [0, 360) range
run() Method
Returns: 2D array of shape(n_frames, n_dihedrals)
Example
PuckerPlan
Calculate sugar pucker phase and amplitude.Constructor
List of 5 selections for ring atoms (for ribose: C1’, C2’, C3’, C4’, O4’)
Calculation method:
"altona" or "cremer"Ring type:
"5ring" (ribose) or "6ring" (pyranose)run() Method
Returns: 2D array of shape(n_frames, 2) containing:
- Column 0: Phase angle (degrees)
- Column 1: Amplitude (degrees for Altona, Å for Cremer-Pople)
Example
Sugar pucker is critical for understanding nucleic acid structure. C3’-endo is typical for A-form RNA, while C2’-endo is typical for B-form DNA.
RotateDihedralPlan
Modify trajectory by rotating around a dihedral angle.Constructor
First atom defining rotation axis
Second atom defining rotation axis
Rotation angle in degrees
Example
Additional Dihedral Plans
Additional dihedral analysis and manipulation plans:
- SetDihedralPlan — Set dihedral angle to specific value
- PermuteDihedralsPlan — Permute rotatable bonds systematically
- DihedralRmsPlan — RMSD in dihedral space
- MultiPuckerPlan — Analyze multiple sugar puckers simultaneously
- TorsionDiffusionPlan — Torsional diffusion coefficients
- ToroidalDiffusionPlan — Diffusion on toroidal manifolds
warp-md list-plans --category dihedrals for detailed documentation.