3 This script shows how to simulate residue-protein
4 binding contacts inferred from mutagenesis studies.
5 This example shows protein A binding to protein B
6 through a set of residues predicted to be required
7 for binding in mutagensis studies.
26 print(
"This example is too slow to test in debug mode - run without")
27 print(
"internal tests enabled, or without the --run-quick-test flag")
31 |molecule_name|color|fasta_fn|fasta_id|pdb_fn|chain|residue_range|pdb_offset|bead_size|em_residues_per_gaussian|rigid_body|super_rigid_body|chain_of_super_rigid_bodies|
32 |Rpb4 |red |1WCM.fasta |1WCM:D |1WCM_fitted.pdb |D|1,END |0 |5|0 |1 | | ||
33 |Rpb7 |gold |1WCM.fasta |1WCM:G |1WCM_fitted.pdb |G|1,END |0 |5|0 |2 | | ||
38 tf = tempfile.NamedTemporaryFile(delete=
False, mode=
'w')
54 hier, dof = bs.execute_macro()
63 moldict = bs.get_molecules()[0]
65 for molname
in moldict:
66 for mol
in moldict[molname]:
69 output_objects.append(cr)
75 included_objects=mols)
77 output_objects.append(evr)
86 hier, selection=(
'Rpb7', 38, 44,
'Rpb4'), label=
'B38_44')
90 output_objects.append(br)
98 molecule=
"Rpb4").get_selected_particles()
100 xyzs, rbs = dof.disable_movers(part_p1,
108 dof.optimize_flexible_beads(100)
113 monte_carlo_sample_objects=dof.get_movers(),
114 global_output_directory=
'output/',
115 output_objects=output_objects,
116 monte_carlo_steps=10,
117 number_of_best_scoring_models=0,
118 number_of_frames=500)