IMP  2.4.0
The Integrative Modeling Platform
Functions
IMP.EMageFit.imp_general.movement Namespace Reference

Utility functions to handle movement. More...

Detailed Description

Utility functions to handle movement.

Functions

def apply_random_transform
 Apply a random transformation to the rigid body and change the reference frame. More...
 
def apply_transformation_to_hierarchy
 If fn_write is different from False, write to file. More...
 
def get_random_transformation
 Return a random transformation. More...
 

Function Documentation

def IMP.EMageFit.imp_general.movement.apply_random_transform (   rb,
  max_trans = 100 
)

Apply a random transformation to the rigid body and change the reference frame.

Definition at line 13 of file movement.py.

def IMP.EMageFit.imp_general.movement.apply_transformation_to_hierarchy (   prot,
  T,
  fn_write = False 
)

If fn_write is different from False, write to file.

Definition at line 29 of file movement.py.

def IMP.EMageFit.imp_general.movement.get_random_transformation (   max_distance,
  max_angle,
  seed = -1 
)

Return a random transformation.

Parameters
distanceMaximum translation allowed
max_angleMaximum rotation angle allowed

Definition at line 44 of file movement.py.