IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
config_step_2.py
1# Models for 3sfd using a sampling grid in domino
2
3
4# <============== This has changed to make the running time short
5class MonteCarloParams:
6
7 def __init__(self):
8 self.temperatures = [30000, 15000, 10000, 5000, 1000]
9 self.iterations = [2, 2, 2, 2]
10 self.cycles = 2
11 self.max_translations = [20, 15, 10, 5]
12 self.max_rotations = [1, 0.5, 0.25, 0.1]
13 # Probability of using a random move within a RelativePositionMover
14 self.non_relative_move_prob = 0.4
15
16
17class DominoSamplingPositions:
18
19 def __init__(self):
20 self.read = "monte_carlo_solutions.db"
21 self.max_number = 50 # max number of solutions to combine
22 self.orderby = "em2d" # criteria to order the solutions
23
24
25class DominoParams:
26
27 def __init__(self, ):
28 self.heap_solutions = 2000
29
30
31class TestParameters:
32
33 def __init__(self, ):
34 self.do_test = False
35 self.test_fn_assembly = ""
36
37
38class Benchmark:
39
40 def __init__(self, ):
41 self.fn_pdb_native = "3sfd.pdb"
42 # parameters for measuring the ccc with the 3D map
43 self.resolution = 8
44 self.voxel_size = 1.5
45 self.native_map_threshold = 0.25
46 # The component from the model is aligned to the native component before
47 # computing the measures for the benchmark
48 self.native_component = "3sfdB"
49 self.model_component = "3sfdB"
50
51
52class Experiment:
53
54 def __init__(self,):
55
56 # representation
57 self.model_name = ["3sfd"]
58 self.names = ["3sfdA", "3sfdB", "3sfdC", "3sfdD"]
59 self.fn_pdbs = ["3sfdA.pdb", "3sfdB.pdb", "3sfdC.pdb", "3sfdD.pdb"]
60 self.n_residues = 10
61 self.anchor = [False, True, False, False]
62 self.fixed = [False, False, False, False]
63
64 # Pair score restraint:
65 # component1,component2,name,distance,weight,pairs,stddev
66 self.pair_score_restraints = [["3sfdB", "3sfdA", "B_A", 0, 1, 1, 3.],
67 ["3sfdB", "3sfdC", "B_C", 0, 1, 1, 3.],
68 ["3sfdB", "3sfdD", "B_D", 0, 1, 1, 3.],
69 ["3sfdD", "3sfdC", "D_C", 0, 1, 1, 3.]
70
71 ]
72
73 # Excluded volume restraint: distance, weight,pairs,stddev
74 self.pairs_excluded_restraint = [0, 1, 0.1, 2]
75
76 # Em2DRestraint: name,images selection file, pixel_size,
77 # resolution, n_projections, weight, max_score
78 self.em2d_restraints = [["em2d", "em_images/images.sel", 1.5, 5, 20, 1000, 1000]
79 ]
80
81 # Cross-linking restraints component1,residue1, component2, residue2,
82 # distance,weight, stddev
83 self.xlink_restraints = [
84 ["3sfdB", "B", 23, "3sfdA", "A", 456, 30, 100, 2],
85 ["3sfdB",
86 "B",
87 241,
88 "3sfdC",
89 "C",
90 112,
91 30,
92 100,
93 2],
94 ["3sfdB",
95 "B",
96 205,
97 "3sfdD",
98 "D",
99 37,
100 30,
101 100,
102 2],
103 ["3sfdB",
104 "B",
105 177,
106 "3sfdD",
107 "D",
108 99,
109 30,
110 100,
111 2],
112 ["3sfdC",
113 "C",
114 95,
115 "3sfdD",
116 "D",
117 132,
118 30,
119 100,
120 2],
121 ["3sfdC",
122 "C",
123 9,
124 "3sfdD",
125 "D",
126 37,
127 30,
128 100,
129 2],
130 ["3sfdC",
131 "C",
132 78,
133 "3sfdD",
134 "D",
135 128,
136 30,
137 100,
138 2],
139 ]
140
141 # self.have_hexdock = False
142 self.dock_transforms = [
143 ["3sfdB", "3sfdA", "relative_positions_3sfdB-3sfdA.txt"],
144 ["3sfdB", "3sfdC", "relative_positions_3sfdB-3sfdC.txt"],
145 ["3sfdB", "3sfdD", "relative_positions_3sfdB-3sfdD.txt"],
146 ["3sfdD", "3sfdC", "relative_positions_3sfdD-3sfdC.txt"],
147 ]
148
149 self.sampling_positions = DominoSamplingPositions()
150
151 self.monte_carlo = MonteCarloParams()
152 self.domino_params = DominoParams()
153
154 self.test_opts = TestParameters()
155 # benchmark
156# self.benchmark = Benchmark()
157
158 # results
159 self.n_solutions = 2000
160 self.orderby = "em2d"