2 """This script shows how to represent a system at multiple scales and do basic sampling.
5 from __future__
import print_function
19 print(
"This example is too slow to test in debug mode - run without")
20 print(
"internal tests enabled, or without the --run-quick-test flag")
26 components = [
"Rpb1",
"Rpb2",
"Rpb3",
"Rpb4"]
27 colors = [
'medium purple',
'goldenrod',
'orchid',
'olive drab']
38 for n
in range(len(components)):
39 print(
'PMI: setting up',components[n],
'1WCM:'+chains[n])
40 mol = st.create_molecule(
42 sequence=seqs[
'1WCM:'+chains[n]],
47 mol.add_representation(atomic,
50 mol.add_representation(mol[:]-atomic,
51 resolutions=[beadsize],
69 dof.create_rigid_body(mol,
70 nonrigid_parts=mol.get_non_atomic_residues(),
73 nonrigid_max_trans=0.1)
76 IMP.pmi.tools.display_bonds(mol)
87 output_objects.append(cr)
93 output_objects.append(evr)
98 IMP.pmi.tools.shuffle_configuration(root_hier,
102 dof.optimize_flexible_beads(100)
107 crosslink_restraints=crs,
108 monte_carlo_sample_objects=dof.get_movers(),
109 global_output_directory=
'multiscale_output/',
110 output_objects=output_objects,
111 monte_carlo_steps=10,
112 number_of_best_scoring_models=0,