frag_pele/Growing/add_fragment_from_pdbs.py
def move_atom_along_vector(initial_coord, final_coord, position_proportion):
    """
    Given two points (atom coordinates), this function moves the initial point a distance of "length of the vector
    formed by the two coordinates" * "position_proportion" on the vector's direction.
    :param initial_coord: initial 3D coordinates (X, Y, Z). numpy.ndarray
    :param final_coord: final 3D coordinates (X, Y, Z). numpy.ndarray
    :param position_proportion: proportion of movement that we would like to apply on the initial atom on the vector's
    direction. float(generally between 0 and 1)
    :return:
    """
    vector = final_coord - initial_coord
    new_coords = initial_coord + (position_proportion * vector)
    return new_coords

    Given two points (atom coordinates), this function moves the initial point a distance of "length of the vector
    formed by the two coordinates" * "position_proportion" on the vector's direction.
    :param initial_coord: initial 3D coordinates (X, Y, Z). numpy.ndarray
    :param final_coord: final 3D coordinates (X, Y, Z). numpy.ndarray
    :param position_proportion: proportion of movement that we would like to apply on the initial atom on the vector's
    direction. float(generally between 0 and 1)
    :return:
    
Given two points (atom coordinates), this function moves the initial point a distance of "length of the vector
formed by the two coordinates" * "position_proportion" on the vector's direction.
Given two points ( atom coordinates ) this function moves the initial point a distance of " length of the vector formed by the two coordinates " * " position_proportion " on the vector ' s direction .
def move_atom_along_vector(initial_coord, final_coord, position_proportion):
    vector = final_coord - initial_coord
    new_coords = initial_coord + (position_proportion * vector)
    return new_coords
def move_atom_along_vector ( initial_coord , final_coord , position_proportion ) : vector = final_coord - initial_coord new_coords = initial_coord + ( position_proportion * vector ) return new_coords
Given two points (atom coordinates), this function moves the initial point a distance of "length of the vector
formed by the two coordinates" * "position_proportion" on the vector's direction.
Given two points ( atom coordinates ) this function moves the initial point a distance of " length of the vector formed by the two coordinates " * " position_proportion " on the vector ' s direction .
"""
    Given two points (atom coordinates), this function moves the initial point a distance of "length of the vector
    formed by the two coordinates" * "position_proportion" on the vector's direction.
    :param initial_coord: initial 3D coordinates (X, Y, Z). numpy.ndarray
    :param final_coord: final 3D coordinates (X, Y, Z). numpy.ndarray
    :param position_proportion: proportion of movement that we would like to apply on the initial atom on the vector's
    direction. float(generally between 0 and 1)
    :return:
    """
None
initial_coord
initial 3D coordinates (X, Y, Z). numpy.ndarray
initial 3D coordinates ( X Y Z ) . numpy . ndarray
final_coord
final 3D coordinates (X, Y, Z). numpy.ndarray
final 3D coordinates ( X Y Z ) . numpy . ndarray
position_proportion
proportion of movement that we would like to apply on the initial atom on the vector's
direction. float(generally between 0 and 1)
proportion of movement that we would like to apply on the initial atom on the vector ' s direction . float ( generally between 0 and 1 )