10 pose_from_pdb(p,
"test_dock.pdb")
15 print "setting up docking fold tree"
16 dock_prot = DockingProtocol()
17 dock_prot.setup_foldtree(p)
20 print "set up scoring functions"
21 scorefxn_low = create_score_function(
'interchain_cen')
22 scorefxn_high = create_score_function(
'docking')
23 scorefxn_high_min = create_score_function_ws_patch(
'docking',
'docking_min')
25 print "setting up movers"
28 to_centroid = protocols.simple_moves.SwitchResidueTypeSetMover(
'centroid')
29 to_fullatom = protocols.simple_moves.SwitchResidueTypeSetMover(
'fa_standard')
30 recover_sidechains = protocols.simple_moves.ReturnSidechainMover(starting_p)
33 randomize1 = RigidBodyRandomizeMover(p, dock_jump, rigid.partner_upstream)
34 randomize2 = RigidBodyRandomizeMover(p, dock_jump, rigid.partner_downstream)
35 dock_pert = RigidBodyPerturbMover(dock_jump, 3, 8)
36 spin = RigidBodySpinMover( dock_jump )
37 slide_into_contact = DockingSlideIntoContact( dock_jump )
40 docking_lowres = DockingLowRes( scorefxn_low, dock_jump )
43 docking_highres = DockingHighRes( scorefxn_high_min, dock_jump )
45 print "set up job distributor"
46 jd = PyJobDistributor(
"dock_output", 20, scorefxn_high)
47 jd.native_pose = starting_p
49 print "beginning docking..."
51 print "convert to centroid mode"
53 starting_p_centroid = Pose()
54 starting_p_centroid.assign(p)
56 while (jd.job_complete ==
False):
57 p.assign(starting_p_centroid)
59 print "initial perturbation"
61 slide_into_contact.apply(p)
63 print "low resolution stage docking"
64 docking_lowres.apply(p)
66 print "convert to fullatom mode"
71 print "high resolution stage docking"
72 docking_highres.apply(p)
74 print "outputting decoy..."
77 print "docking complete!"
void init()
set global 'init_was_called' to true