IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
config_step_1.py
1# Models for 3sfd using a sampling grid in domino
2
3
4class MonteCarloParams:
5
6 def __init__(self):
7 self.temperatures = [30000, 15000, 10000, 5000, 1000]
8 self.iterations = [200, 200, 200, 200]
9 self.cycles = 3
10 self.max_translations = [20, 15, 10, 5]
11 self.max_rotations = [1, 0.5, 0.25, 0.1]
12 # Probability of using a random move within a RelativePositionMover
13 self.non_relative_move_prob = 0.4
14
15
16class DominoSamplingPositions:
17
18 def __init__(self):
19 self.read = "monte_carlo_solutions.db"
20 self.max_number = 50 # max number of solutions to combine
21 self.orderby = "em2d" # criteria to order the solutions
22
23
24class DominoParams:
25
26 def __init__(self, ):
27 self.heap_solutions = 2000
28
29
30class TestParameters:
31
32 def __init__(self, ):
33 self.do_test = False
34 self.test_fn_assembly = ""
35
36
37class Benchmark:
38
39 def __init__(self, ):
40 self.fn_pdb_native = "3sfd.pdb"
41 # parameters for measuring the ccc with the 3D map
42 self.resolution = 8
43 self.voxel_size = 1.5
44 self.native_map_threshold = 0.25
45 # The component from the model is aligned to the native component before
46 # computing the measures for the benchmark
47 self.native_component = "3sfdB"
48 self.model_component = "3sfdB"
49
50
51class Experiment:
52
53 def __init__(self,):
54
55 # representation
56 self.model_name = ["3sfd"]
57 self.names = ["3sfdA", "3sfdB", "3sfdC", "3sfdD"]
58 self.fn_pdbs = ["3sfdA.pdb", "3sfdB.pdb", "3sfdC.pdb", "3sfdD.pdb"]
59 self.n_residues = 10
60 # <================ First start with all False
61 self.anchor = [False, False, 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", "C", 78, "3sfdD", "D", 128, 30, 100, 2], ]
131
132 # self.have_hexdock = False
133 # <================ The files of the transformations are not known yet
134 self.dock_transforms = []
135
136 self.sampling_positions = DominoSamplingPositions()
137
138 self.monte_carlo = MonteCarloParams()
139 self.domino_params = DominoParams()
140
141 self.test_opts = TestParameters()
142 # benchmark
143 self.benchmark = Benchmark()
144
145 # results
146 self.n_solutions = 2000
147 self.orderby = "em2d"