IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP.pmi.restraints.basic.MembraneRestraint Class Reference

Restrain particles to be above, below, or inside a planar membrane. More...

Detailed Description

Restrain particles to be above, below, or inside a planar membrane.

The membrane is defined to lie on the xy plane with a given z coordinate and thickness, and particles are restrained (by their z coordinates) with a simple sigmoid score.

Note
This class is only available in Python.

Definition at line 305 of file basic.py.

Public Member Functions

 __init__ (self, hier, objects_above=None, objects_inside=None, objects_below=None, center=0.0, thickness=30.0, softness=3.0, plateau=1e-10, resolution=1, weight=1.0, label=None)
 Setup the restraint.
 create_membrane_density (self, xy_size=50, file_out='membrane_localization.mrc')
 Create an MRC density file to visualize the membrane.

Constructor & Destructor Documentation

◆ __init__()

IMP.pmi.restraints.basic.MembraneRestraint.__init__ ( self,
hier,
objects_above = None,
objects_inside = None,
objects_below = None,
center = 0.0,
thickness = 30.0,
softness = 3.0,
plateau = 1e-10,
resolution = 1,
weight = 1.0,
label = None )

Setup the restraint.

Parameters
objects_insidelist or tuples of objects in membrane (e.g. ['p1', (10, 30,'p2')])
objects_abovelist or tuples of objects above membrane
objects_belowlist or tuples of objects below membrane
thicknessThickness of the membrane along the z-axis
softnessSoftness of the limiter in the sigmoid function
plateauParameter to set the probability (=1- plateau)) at the plateau phase of the sigmoid
weightWeight of restraint
labelA unique label to be used in outputs and particle/restraint names.

Definition at line 319 of file basic.py.

Member Function Documentation

◆ create_membrane_density()

IMP.pmi.restraints.basic.MembraneRestraint.create_membrane_density ( self,
xy_size = 50,
file_out = 'membrane_localization.mrc' )

Create an MRC density file to visualize the membrane.

Definition at line 435 of file basic.py.


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