3Guanylate binding proteins: Combining restraints
4========================================
5This example illustrate modeling of the GDP-AlFx dimer
6of human guanylate binding protein 1 (hGBP1) by rigid
7bodies (RBs) in PMI. Note, this example serves illustration
8and not scientific purposes.
28import IMP.bayesianem.restraint
38 print(
"To run this example, please first install the 'scipy'")
39 print(
"Python module.")
47 "Guanylate binding proteins: Combining restraints")
49 print(
"This example is too slow to test in debug mode - run without")
50 print(
"internal tests enabled")
52if sys.maxsize <= 2**32:
53 print(
"This example uses too much memory to run well on a 32-bit system")
56output_objects = list()
58output_dir = root_dir /
'modeling/'
66topol_fn = str(root_dir /
'mGBP2_FP_dimer.top.dat')
77hier, dof = bs.execute_macro()
78state = hier.get_children()[0]
79mol = state.get_children()[0]
80rb = mol.get_children()[2]
87moldict = bs.get_molecules()[0]
89for molname
in moldict:
90 for mol
in moldict[molname]:
94 output_objects.append(cr)
103evr.set_weight(ev_weight)
104output_objects.append(evr)
118use_saxs_density =
False
124 saxs_file = str(root_dir /
"saxs" /
"hGBP1_dimer+GDPAlFx_dimer.dat")
125 molecules = list(bs.get_molecules()[0].values())
127 molecules, saxs_file, weight=1.0, ff_type=IMP.saxs.RESIDUES)
128 saxs_restraint.add_to_model()
129 output_objects.append(saxs_restraint)
133 hierarchy=hier, molecule=
"mGBP2_eGFP",
134 residue_indexes=range(261, 839),
135 representation_type=IMP.atom.DENSITIES
139 molecule=
"mGBP2_mCh",
140 residue_indexes=range(250, 827),
141 representation_type=IMP.atom.DENSITIES
143 target_gmm_file = str(root_dir /
"saxs" /
"SASDEG8.gmm.txt")
144 densities = sel.get_selected_particles()
147 target_fn=target_gmm_file,
148 scale_target_to_mass=
True,
150 target_radii_scale=3.0,
151 target_is_rigid_body=
True
153 gem.set_label(
"GaussianSAXS")
155 output_objects.append(gem)
196fps_json_fn = str(root_dir /
"mGBP2_FP.fps.json")
198fret_restraint = IMP.bff.restraints.AVNetworkRestraintWrapper(
200 mean_position_restraint=
True,
205fret_restraint.add_to_model()
206output_objects.append(fret_restraint)
230 simulated_annealing=
False,
232 monte_carlo_sample_objects=dof.get_movers(),
233 output_objects=output_objects,
234 monte_carlo_steps=10,
235 global_output_directory=
'./out/',
236 rmf_output_objects=
None,
237 monte_carlo_temperature=1.0,
238 number_of_best_scoring_models=0,
239 number_of_frames=num_frames
Class for storing model, its restraints, constraints, and particles.
Select hierarchy particles identified by the biological name.
Fit Gaussian-decorated particles to an EM map (also represented with a set of Gaussians).
A macro to build a IMP.pmi.topology.System based on a TopologyReader object.
A macro to help setup and run replica exchange.
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.
IMP::bayesianem.restraint
Restraints for handling electron microscopy maps.
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.
Handles cross-link data sets.
Protocols for sampling structures and analyzing them.
Some miscellaneous simple restraints.
Restraints for handling cross-linking data.
Restraints for handling small angle x-ray (SAXS) data.
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.
CheckLevel get_check_level()
Get the current audit mode.