stacker.residue_movement.create_base_from_coords_list#
- create_base_from_coords_list(frame, C2_coords, C4_coords, C6_coords, midpoint_coords)[source]#
Combines C2, C4, C6 positions with midpoint positions for a given frame.
Takes a frame (0-indexed) and outputs a Base instance with the x, y, z locations of C2, C4, C6, and midpoint of the same residue at that frame.
- Parameters:
- frameint
Frame number (0-indexed).
- C2_coordslist
List of (x, y, z) coordinates of C2 atom in some residue for each frame.
- C4_coordslist
List of (x, y, z) coordinates of C4 atom in some residue for each frame.
- C6_coordslist
List of (x, y, z) coordinates of C6 atom in some residue for each frame.
- midpoint_coordslist
List of (x, y, z) coordinates of the midpoint of residue for each frame.
- Returns:
- Base
An instance of Base with coordinates at the specified frame.
See also
calc_center_3pts
Finds the average x, y, z position of three (x, y, z) Vectors
Notes
frame is 0-indexed because this is how mdtraj handles mdtraj.Trajectory