7This example illustrate modeling of by rigid bodies (RBs) in PMI.
8Note, this example serves illustration and not scientific purposes.
22 print(
"To run this example, please first install the 'scipy'")
23 print(
"Python module.")
40 print(
"This example is too slow to test in debug mode - run without")
41 print(
"internal tests enabled, or without the --run-quick-test flag")
45output_objects = list()
47output_dir = root_dir /
'modeling/'
55topol_fn = str(root_dir /
'topology.dat')
66hier, dof = bs.execute_macro()
67state = hier.get_children()[0]
68mol = state.get_children()[0]
69rb = mol.get_children()[2]
76moldict = bs.get_molecules()[0]
78for molname
in moldict:
79 for mol
in moldict[molname]:
83 output_objects.append(cr)
90barrier_restraint.add_to_model()
91output_objects.append(barrier_restraint)
106fps_json_fn = str(root_dir /
"fret.fps.json")
108fret_restraint = IMP.bff.restraints.AVNetworkRestraintWrapper(
110 mean_position_restraint=
True,
114fret_restraint.add_to_model()
115output_objects.append(fret_restraint)
123evr.set_weight(ev_weight)
124output_objects.append(evr)
129used_avs = fret_restraint.av_network_restraint.get_used_avs()
136for state
in bs.system.get_states():
139dof.optimize_flexible_beads(10)
146 simulated_annealing=
False,
148 monte_carlo_sample_objects=dof.get_movers(),
149 output_objects=output_objects,
150 monte_carlo_steps=100,
151 global_output_directory=
'./out/',
152 rmf_output_objects=
None,
153 monte_carlo_temperature=1.0,
154 number_of_best_scoring_models=0,
155 number_of_frames=num_frames
Class for storing model, its restraints, constraints, and particles.
A macro to build a IMP.pmi.topology.System based on a TopologyReader object.
A macro to help setup and run replica exchange.
Keeps all structures inside a sphere.
Create a restraint between consecutive TempResidue objects or an entire PMI Molecule object.
A class to create an excluded volume restraint for a set of particles at a given resolution.
Automatically setup System and Degrees of Freedom with a formatted text file.
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.
Basic functionality that is expected to be used by a wide variety of IMP users.
Create movers and set up constraints for PMI objects.
Protocols for sampling structures and analyzing them.
Some miscellaneous simple restraints.
Restraints for keeping correct stereochemistry.
Classes to handle different kinds of restraints.
Set of Python classes to create a multi-state, multi-resolution IMP hierarchy.
Python classes to represent, score, sample and analyze models.
Support for the RMF file format for storing hierarchical molecular data and markup.
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.