/ . / Morph / Interpolate.py
Functions
|
|
|
interpolateIndependent
|
interpolateIndependent (
xf,
c0,
c1,
f,
)
Interpolate by splitting the transformation into a rotation
and a translation.
|
|
interpolateLinear
|
interpolateLinear (
xf,
c0,
c1,
f,
)
Interpolate by translating c1 to c0 linearly along with
rotation about translation point.
|
|
rateLinear
|
rateLinear ( frames )
Generate fractions from 0 to 1 linearly (excluding start/end)
|
|
interpolate
|
interpolate (
mol,
segments,
equivAtoms,
method,
rMethod,
frames,
cb,
)
mol molecule where new coordinate sets are added
should already have first frame in place
segments list of 2-tuples of matching residue lists
equivAtoms dictionary of equivalent atoms
key is atom from first frame
value is 2-tuple of atoms from last frame and "mol"
method interpolation method name
rMethod rate profile, e.g., "linear"
frames number of frames to generate in trajectory
cb function called for every frame generated
|
|
interpolateCorkscrew
|
interpolateCorkscrew (
xf,
c0,
c1,
f,
)
Interpolate by splitting the transformation into a rotation
and a translation along the axis of rotation.
|
|
rateRampUp
|
rateRampUp ( frames )
Generate fractions from 0 to 1 sinusoidally
(slow at beginning, fast at end)
|
|
rateSinusoidal
|
rateSinusoidal ( frames )
Generate fractions from 0 to 1 sinusoidally
(slow at beginning, fast in middle, slow at end)
|
|
rateRampDown
|
rateRampDown ( frames )
Generate fractions from 0 to 1 sinusoidally
(fast at beginning, slow at end)
|
|
|