4This examples illustrates how to use ``IMP.bff.AVNetworkRestraint`` for
5scoring structures in a trajectory.
23print(
"Creating IMP Model")
29f = RMF.open_rmf_file_read_only(rmf_fn)
35print(
"Creating FRET restraint")
37with open(fps_json_path)
as fp:
38 fps_json = json.load(fp)
39score_set_c1 =
"chi2_C1_33p"
42 score_set=score_set_c1
44v = fret_restraint.unprotected_evaluate(
None)
48print(
"Scoring frames")
50for frame
in tqdm(f.get_root_frames()):
52 v = fret_restraint.unprotected_evaluate(
None)
60print(
"See plot.png for score for each frame")
61plt.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.
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.
atom::Hierarchies create_hierarchies(RMF::FileConstHandle fh, Model *m)
void load_frame(RMF::FileConstHandle file, RMF::FrameID frame)
Load the given RMF frame into the state of the linked objects.