IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
plot_AVNetworkRestraint Namespace Reference

Detailed Description

Accessible Volume Restraint
===========================
Accessible volume (AV) restraints can be used for integrative modeling and for
scoring structures. There are two versions of AV restraints ``IMP.bff.AVNetworkRestraint``
and ``IMP.bff.restraints.AVNetworkRestraintWrapper``. The AV restraint wrapped for PMI,
``AVNetworkRestraintWrapper`` provides a mean dye positions, an approximation that
is faster when working with rigid bodies.

In this example a T4 lysozme structure is loaded and scored using ``IMP.bff.AVNetworkRestraint``
by experimental data in a fps.json file.

Variables

 d = json.loads(e_dist.get_json())
 e_dist = experimental_distances[key]
 experiment = list()
 experimental_distances = fret_restraint.get_used_distances()
 fps_json = json.load(fp)
 fps_json_path = IMP.bff.get_example_path("structure/T4L/fret.fps.json")
 fret_restraint = IMP.bff.AVNetworkRestraint(hier, str(fps_json_path), score_set=score_set_c1)
 hier = IMP.atom.read_pdb(str(pdb_fn), m)
 m = IMP.Model()
 model = list()
 model_distance
str pdb_fn = pathlib.Path(IMP.bff.get_example_path('structure')) / "T4L/3GUN.pdb"
str score_set_c1 = "chi2_C2_33p"
 v = fret_restraint.unprotected_evaluate(None)
 x = np.linspace(25, 60)

Variable Documentation

◆ d

plot_AVNetworkRestraint.d = json.loads(e_dist.get_json())

Definition at line 60 of file plot_AVNetworkRestraint.py.

◆ e_dist

plot_AVNetworkRestraint.e_dist = experimental_distances[key]

Definition at line 59 of file plot_AVNetworkRestraint.py.

◆ experiment

plot_AVNetworkRestraint.experiment = list()

Definition at line 57 of file plot_AVNetworkRestraint.py.

◆ experimental_distances

plot_AVNetworkRestraint.experimental_distances = fret_restraint.get_used_distances()

Definition at line 54 of file plot_AVNetworkRestraint.py.

◆ fps_json

plot_AVNetworkRestraint.fps_json = json.load(fp)

Definition at line 41 of file plot_AVNetworkRestraint.py.

◆ fps_json_path

plot_AVNetworkRestraint.fps_json_path = IMP.bff.get_example_path("structure/T4L/fret.fps.json")

Definition at line 39 of file plot_AVNetworkRestraint.py.

◆ fret_restraint

plot_AVNetworkRestraint.fret_restraint = IMP.bff.AVNetworkRestraint(hier, str(fps_json_path), score_set=score_set_c1)

Definition at line 44 of file plot_AVNetworkRestraint.py.

◆ hier

plot_AVNetworkRestraint.hier = IMP.atom.read_pdb(str(pdb_fn), m)

Definition at line 32 of file plot_AVNetworkRestraint.py.

◆ m

plot_AVNetworkRestraint.m = IMP.Model()

Definition at line 30 of file plot_AVNetworkRestraint.py.

◆ model

plot_AVNetworkRestraint.model = list()

Definition at line 56 of file plot_AVNetworkRestraint.py.

◆ model_distance

plot_AVNetworkRestraint.model_distance

Definition at line 61 of file plot_AVNetworkRestraint.py.

◆ pdb_fn

str plot_AVNetworkRestraint.pdb_fn = pathlib.Path(IMP.bff.get_example_path('structure')) / "T4L/3GUN.pdb"

Definition at line 31 of file plot_AVNetworkRestraint.py.

◆ score_set_c1

str plot_AVNetworkRestraint.score_set_c1 = "chi2_C2_33p"

Definition at line 43 of file plot_AVNetworkRestraint.py.

◆ v

plot_AVNetworkRestraint.v = fret_restraint.unprotected_evaluate(None)

Definition at line 48 of file plot_AVNetworkRestraint.py.

◆ x

plot_AVNetworkRestraint.x = np.linspace(25, 60)

Definition at line 73 of file plot_AVNetworkRestraint.py.