2 """This script shows how to represent a system at multiple scales and do
6 from __future__
import print_function
20 print(
"This example is too slow to test in debug mode - run without")
21 print(
"internal tests enabled, or without the --run-quick-test flag")
27 components = [
"Rpb1",
"Rpb2",
"Rpb3",
"Rpb4"]
28 colors = [
'medium purple',
'goldenrod',
'orchid',
'olive drab']
39 for n
in range(len(components)):
40 print(
'PMI: setting up', components[n],
'1WCM:'+chains[n])
41 mol = st.create_molecule(
43 sequence=seqs[
'1WCM:'+chains[n]],
45 atomic = mol.add_structure(
47 chain_id=chains[n], offset=0)
48 mol.add_representation(atomic,
51 mol.add_representation(mol[:]-atomic,
52 resolutions=[beadsize],
73 dof.create_rigid_body(mol,
74 nonrigid_parts=mol.get_non_atomic_residues(),
77 nonrigid_max_trans=0.1)
92 output_objects.append(cr)
97 included_objects=mols)
99 output_objects.append(evr)
107 dof.optimize_flexible_beads(100)
115 monte_carlo_sample_objects=dof.get_movers(),
116 global_output_directory=
'multiscale_output/',
117 output_objects=output_objects,
118 monte_carlo_steps=10,
120 number_of_best_scoring_models=0,
Simplify creation of constraints and movers for an IMP Hierarchy.
Restraints for keeping correct stereochemistry.
A macro to help setup and run replica exchange.
Set of Python classes to create a multi-state, multi-resolution IMP hierarchy.
Strings setup_from_argv(const Strings &argv, std::string description, std::string positional_description, int num_positional)
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Protocols for sampling structures and analyzing them.
Represent the root node of the global IMP.atom.Hierarchy.
Class for storing model, its restraints, constraints, and particles.
Classes to handle different kinds of restraints.
Create a restraint between consecutive TempResidue objects or an entire PMI Molecule object...
Create movers and set up constraints for PMI objects.
A class to create an excluded volume restraint for a set of particles at a given resolution.
Python classes to represent, score, sample and analyze models.
A dictionary-like wrapper for reading and storing sequence data.
Functionality for loading, creating, manipulating and scoring atomic structures.
Support for the RMF file format for storing hierarchical molecular data and markup.