frag_pele/Growing/AddingFragHelpers/pdb_joiner.py
def superimpose(fixed_vector, moving_vector, moving_atom_list):
    """
    Rotates and translates a list of moving atoms from a moving vector to a fixed vector.
    :param fixed_vector: vector used as reference.
    :param moving_vector: vector that will rotate and translate.
    :param moving_atom_list: list of atoms that we want to do the rotation and translation of the moving vector.
    :return: the input list of atoms is rotated an translated.
    """
    # Do the superimposition with BioPython
    sup = bio.Superimposer()
    # Set the vectors: first element is the fix vector (bond of the core) and second is the moving (bond of the fragment)
    sup.set_atoms(fixed_vector, moving_vector)
    # Apply the transformation to the atoms of the fragment (translate and rotate)
    return sup.apply(moving_atom_list)

    Rotates and translates a list of moving atoms from a moving vector to a fixed vector.
    :param fixed_vector: vector used as reference.
    :param moving_vector: vector that will rotate and translate.
    :param moving_atom_list: list of atoms that we want to do the rotation and translation of the moving vector.
    :return: the input list of atoms is rotated an translated.
    
Rotates and translates a list of moving atoms from a moving vector to a fixed vector.
Rotates and translates a list of moving atoms from a moving vector to a fixed vector .
def superimpose(fixed_vector, moving_vector, moving_atom_list):
    sup = bio.Superimposer()
    sup.set_atoms(fixed_vector, moving_vector)
    return sup.apply(moving_atom_list)
def superimpose ( fixed_vector , moving_vector , moving_atom_list ) : sup = bio . Superimposer ( ) sup . set_atoms ( fixed_vector , moving_vector ) return sup . apply ( moving_atom_list )
Rotates and translates a list of moving atoms from a moving vector to a fixed vector.
Rotates and translates a list of moving atoms from a moving vector to a fixed vector .
"""
    Rotates and translates a list of moving atoms from a moving vector to a fixed vector.
    :param fixed_vector: vector used as reference.
    :param moving_vector: vector that will rotate and translate.
    :param moving_atom_list: list of atoms that we want to do the rotation and translation of the moving vector.
    :return: the input list of atoms is rotated an translated.
    """ # Do the superimposition with BioPython # Set the vectors: first element is the fix vector (bond of the core) and second is the moving (bond of the fragment) # Apply the transformation to the atoms of the fragment (translate and rotate)
the input list of atoms is rotated an translated.
the input list of atoms is rotated an translated .
fixed_vector
vector used as reference.
vector used as reference .
moving_vector
vector that will rotate and translate.
vector that will rotate and translate .
moving_atom_list
list of atoms that we want to do the rotation and translation of the moving vector.
list of atoms that we want to do the rotation and translation of the moving vector .