2Accessible Volume Restraint
3===========================
4Accessible volume (AV) restraints can be used for integrative modeling and for
5scoring structures. There are two versions of AV restraints ``IMP.bff.AVNetworkRestraint``
6and ``IMP.bff.restraints.AVNetworkRestraintWrapper``. The AV restraint wrapped for PMI,
7``AVNetworkRestraintWrapper`` provides a mean dye positions, an approximation that
8is faster when working with rigid bodies.
10In this example a T4 lysozme structure is loaded and scored using ``IMP.bff.AVNetworkRestraint``
11by experimental data in a fps.json file.
40with open(fps_json_path)
as fp:
41 fps_json = json.load(fp)
43score_set_c1 =
"chi2_C2_33p"
48v = fret_restraint.unprotected_evaluate(
None)
49print(
"Score: {:.1f}".format(v))
54experimental_distances = fret_restraint.get_used_distances()
58for key
in experimental_distances:
59 e_dist = experimental_distances[key]
60 d = json.loads(e_dist.get_json())
61 model_distance = fret_restraint.get_model_distance(
67 e_dist.score_model(model_distance)
68 model.append(model_distance)
69 experiment.append(d[
'distance'])
73x = np.linspace(25, 60)
74plt.plot(model, experiment,
"o")
76plt.xlabel(
"Model distance [Ang.]")
77plt.ylabel(
"Experimental distance [Ang.]")
78print(
"See plot.png for experiment against model distance")
79plt.savefig(
'plot.png')
Class for storing model, its restraints, constraints, and particles.
A restraint that uses an annotated volumetric network to score particle distances.
Functionality for loading, creating, manipulating and scoring atomic structures.
Hierarchy read_pdb(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the PDB file.
Bayesian Fluorescence Framework.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Support for the RMF file format for storing hierarchical molecular data and markup.