IMP  2.3.0
The Integrative Modeling Platform
IMP.em2d.restraints Namespace Reference

Utility functions to handle restraints. More...

Detailed Description

Utility functions to handle restraints.

Functions

def get_connectivity_restraint
 Set a connectivity restraint for the leaves of a set of particles. More...
 
def get_em2d_restraint
 Sets a restraint for comparing the model to a set of EM images. More...
 

Function Documentation

def IMP.em2d.restraints.get_connectivity_restraint (   particles,
  distance = 10.0,
  n_pairs = 1,
  spring_constant = 1 
)

Set a connectivity restraint for the leaves of a set of particles.

The intended use is that the each particle is a hierarchy. Each hierarchy contains leaves that are atoms, or particles that are a coarse representation of a molecule

Definition at line 20 of file restraints.py.

def IMP.em2d.restraints.get_em2d_restraint (   assembly,
  images_selection_file,
  restraint_params,
  mode = 'fast',
  n_optimized = 1 
)

Sets a restraint for comparing the model to a set of EM images.

Definition at line 39 of file restraints.py.