IMP logo
IMP Reference Guide  develop.cb469e0f11,2024/05/29
The Integrative Modeling Platform
IMP.pmi.restraints.basic.DistanceRestraint Class Reference

A simple distance restraint. More...

Inherits RestraintBase.

Detailed Description

A simple distance restraint.

This class is only available in Python.

Definition at line 59 of file restraints/

Public Member Functions

def __init__
 Setup distance restraint. More...

Constructor & Destructor Documentation

def IMP.pmi.restraints.basic.DistanceRestraint.__init__ (   self,
  distancemin = 0,
  distancemax = 100,
  resolution = 1.0,
  kappa = 1.0,
  label = None,
  weight = 1.0 

Setup distance restraint.

root_hierThe hierarchy to select from
tuple_selection1(resnum, resnum, molecule name, copy number (=0))
tuple_selection2(resnum, resnum, molecule name, copy number (=0))
distanceminThe minimum dist
distancemaxThe maximum dist
resolutionFor selecting particles
kappaThe harmonic parameter
labelA unique label to be used in outputs and particle/restraint names
weightWeight of restraint
Pass the same resnum twice to each tuple_selection. Optionally add a copy number.

Definition at line 75 of file restraints/

The documentation for this class was generated from the following file: