paramagpy.protein.CustomStructure.transform

CustomStructure.transform(rot, tran)

Apply rotation and translation to the atomic coordinates.

Parameters
  • rot (3x3 Numeric array) – A right multiplying rotation matrix

  • tran (size 3 Numeric array) – the translation vector

Examples

This is an incomplete but illustrative example:

from numpy import pi, array
from Bio.PDB.vectors import Vector, rotmat
rotation = rotmat(pi, Vector(1, 0, 0))
translation = array((0, 0, 1), 'f')
entity.transform(rotation, translation)