newanalysis.helpers.centerToPointOrientBox

newanalysis.helpers.centerToPointOrientBox(com, coor, center, boxl, apr, rfa, coorA, coorB)

centerOrientToPointBox(com, xyz, center, boxlength, atoms_per_residue, residue_first_atom, coorA, coorB)

Centers the box to the center of mass of a given molecule and rotates the box so that two sets of coordinates are as identical as possible.

Parameters:
  • box (boxlength .. edge length of the cubic) –

  • atoms (xyz .. coordinates of all) –

  • box

  • contains (atoms_per_residue .. array showing how many atoms each residue) –

  • residue (residue_first_atom .. index of the first atom of each) –

  • coordinates (coorA .. template) –

  • frame (coorB .. corresponding coordinates of the current) –