Skip to content

Commit db2e246

Browse files
committed
Implemented chain position+topology interpolation utilities for rendering
1 parent 549e88f commit db2e246

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

polykit/renderers/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ def interpolate_chain(positions, extra_bonds=[], target_N=90000, fine_grain=10):
99
Proceeds by cubic spline interpolation as follows.
1010
1111
1. Interpolate the data using cubic spline
12-
2. Evaluate cubic spline at targetN*10 values
13-
3. Rescale the evaluated spline such that total distance is targetN
14-
4. Select targetN points along the path with distance between neighboring points _along the chain_ equal to 1.
12+
2. Evaluate cubic spline at target_N*fine_grain values
13+
3. Rescale the evaluated spline such that total distance is target_N
14+
4. Select target_N points along the path with distance between neighboring points _along the chain_ equal to 1.
1515
5. Select appropriate bonds along the interpolated path to mimic the original chain topology
1616
1717
Parameters

0 commit comments

Comments
 (0)