Skip to content

Commit a2b7f34

Browse files
authored
Merge pull request #1517 from haddocking/randorien
Enables separate control of molecules separation and random rotations
2 parents 525bc1e + d9295e2 commit a2b7f34

File tree

15 files changed

+3459
-3176
lines changed

15 files changed

+3459
-3176
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Changelog
22

3+
- 2026-04-15: Implemented separate control of separation and randome rotations of molecules - Issue #1491
34
- 2026-04-15: Solve bug related to workflow restarting without analysis folder - Issue #1518
45
- 2026-04-14: Increase max number of timesteps in openmm module - BioExcel forum 6072
56
- 2026-04-12: Add possibility to run MD (mdref, mdscoring) without solvent - Issue #1512

examples/docking-protein-glycan/docking-flexref-protein-glycan-full.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ tolerance = 5
3535
# generate 500 models
3636
sampling_factor = 500
3737
# randomize starting orientations
38-
randorien = true
38+
randrot = true
39+
separate = true
3940
# increase the number of steps by a factor 10 to allow
4041
# for docking during the flexible refinement
4142
mdsteps_rigid = 5000

examples/docking-protein-glycan/docking-flexref-protein-glycan-test.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ tolerance = 20
3030
# generate 5 models
3131
sampling_factor = 5
3232
# randomize starting orientations
33-
randorien = true
33+
randrot = true
34+
separate = true
3435
# increase the number of steps by a factor 10 to allow
3536
# for docking during the flexible refinement
3637
mdsteps_rigid = 5000

examples/docking-protein-ligand/data/neuraminidase-2BAT.pdb

Lines changed: 3023 additions & 3022 deletions
Large diffs are not rendered by default.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
HETATM 1 C1 G39 B 500 -3.025 80.782 110.942 1.00 31.18 B C
2+
HETATM 2 O1A G39 B 500 -3.636 81.879 110.998 1.00 30.30 B O
3+
HETATM 3 O1B G39 B 500 -3.567 79.723 111.340 1.00 31.23 B O
4+
HETATM 4 C2 G39 B 500 -1.651 80.740 110.409 1.00 30.48 B C
5+
HETATM 5 C3 G39 B 500 -0.943 79.410 110.260 1.00 30.04 B C
6+
HETATM 6 C4 G39 B 500 0.093 79.431 109.132 1.00 30.37 B C
7+
HETATM 7 N4 G39 B 500 0.917 78.238 109.241 1.00 30.09 B N1+
8+
HETATM 8 C5 G39 B 500 0.966 80.691 109.164 1.00 29.53 B C
9+
HETATM 9 N5 G39 B 500 1.947 80.677 108.092 1.00 28.16 B N
10+
HETATM 10 C6 G39 B 500 0.118 81.958 109.065 1.00 30.53 B C
11+
HETATM 11 C7 G39 B 500 -1.023 81.887 110.069 1.00 30.75 B C
12+
HETATM 12 O7 G39 B 500 0.919 83.133 109.320 1.00 31.80 B O
13+
HETATM 13 C8 G39 B 500 0.893 84.122 108.269 1.00 30.52 B C
14+
HETATM 14 C9 G39 B 500 -0.455 84.855 108.189 1.00 31.36 B C
15+
HETATM 15 C10 G39 B 500 3.265 80.575 108.300 1.00 27.13 B C
16+
HETATM 16 O10 G39 B 500 3.787 80.702 109.401 1.00 26.14 B O
17+
HETATM 17 C11 G39 B 500 4.088 80.286 107.080 1.00 26.05 B C
18+
HETATM 18 C81 G39 B 500 2.001 85.154 108.476 1.00 29.88 B C
19+
HETATM 19 C82 G39 B 500 3.389 84.594 108.252 1.00 28.23 B C
20+
HETATM 20 C91 G39 B 500 -0.795 85.628 109.453 1.00 32.33 B C
21+
HETATM 21 H01 G39 B 500 1.200 78.111 110.202 1.00 30.09 B H
22+
HETATM 22 H02 G39 B 500 0.124 85.973 109.928 1.00 32.33 B H
23+
HETATM 23 H03 G39 B 500 -1.684 78.639 110.045 1.00 30.04 B H
24+
HETATM 24 H04 G39 B 500 -0.435 79.444 108.178 1.00 30.37 B H
25+
HETATM 25 H05 G39 B 500 1.736 78.340 108.659 1.00 30.09 B H
26+
HETATM 26 H06 G39 B 500 1.488 80.695 110.120 1.00 29.53 B H
27+
HETATM 27 H07 G39 B 500 1.617 80.747 107.140 1.00 28.16 B H
28+
HETATM 28 H08 G39 B 500 -0.285 82.029 108.055 1.00 30.53 B H
29+
HETATM 29 H09 G39 B 500 -1.351 82.814 110.539 1.00 30.75 B H
30+
HETATM 30 H10 G39 B 500 1.049 83.584 107.334 1.00 30.52 B H
31+
HETATM 31 H11 G39 B 500 -1.239 84.120 108.011 1.00 31.36 B H
32+
HETATM 32 H12 G39 B 500 4.908 79.617 107.344 1.00 26.05 B H
33+
HETATM 33 H13 G39 B 500 1.939 85.529 109.498 1.00 29.88 B H
34+
HETATM 34 H14 G39 B 500 3.935 84.586 109.195 1.00 28.23 B H
35+
HETATM 35 H15 G39 B 500 -1.338 84.980 110.140 1.00 32.33 B H
36+
HETATM 36 H16 G39 B 500 -0.418 79.204 111.193 1.00 30.04 B H
37+
HETATM 37 H17 G39 B 500 0.387 77.434 108.937 1.00 30.09 B H
38+
HETATM 38 H18 G39 B 500 -0.379 85.580 107.379 1.00 31.36 B H
39+
HETATM 39 H19 G39 B 500 4.492 81.217 106.684 1.00 26.05 B H
40+
HETATM 40 H20 G39 B 500 1.848 85.944 107.741 1.00 29.88 B H
41+
HETATM 41 H21 G39 B 500 3.920 85.215 107.530 1.00 28.23 B H
42+
HETATM 42 H22 G39 B 500 -1.416 86.486 109.198 1.00 32.33 B H
43+
HETATM 43 H23 G39 B 500 3.462 79.811 106.324 1.00 26.05 B H
44+
HETATM 44 H24 G39 B 500 3.312 83.576 107.868 1.00 28.23 B H
45+
CONECT 1 2 3 4
46+
CONECT 2 1
47+
CONECT 3 1
48+
CONECT 4 1 5 11
49+
CONECT 5 4 6 23 36
50+
CONECT 6 5 7 8 24
51+
CONECT 7 6 21 25 37
52+
CONECT 8 6 9 10 26
53+
CONECT 9 8 15 27
54+
CONECT 10 8 11 12 28
55+
CONECT 11 4 10 29
56+
CONECT 12 10 13
57+
CONECT 13 12 14 18 30
58+
CONECT 14 13 20 31 38
59+
CONECT 15 9 16 17
60+
CONECT 16 15
61+
CONECT 17 15 32 39 43
62+
CONECT 18 13 19 33 40
63+
CONECT 19 18 34 41 44
64+
CONECT 20 14 22 35 42
65+
CONECT 21 7
66+
CONECT 22 20
67+
CONECT 23 5
68+
CONECT 24 6
69+
CONECT 25 7
70+
CONECT 26 8
71+
CONECT 27 9
72+
CONECT 28 10
73+
CONECT 29 11
74+
CONECT 30 13
75+
CONECT 31 14
76+
CONECT 32 17
77+
CONECT 33 18
78+
CONECT 34 19
79+
CONECT 35 20
80+
CONECT 36 5
81+
CONECT 37 7
82+
CONECT 38 14
83+
CONECT 39 17
84+
CONECT 40 18
85+
CONECT 41 19
86+
CONECT 42 20
87+
CONECT 43 17
88+
CONECT 44 19
89+
END
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# ====================================================================
2+
# Protein-ligand docking example, where ligans is pre-placed ("centered") at the binding site
3+
4+
# directory in which the docking will be done
5+
run_dir = "run1-centered"
6+
7+
# execution mode
8+
mode = "local"
9+
ncores = 50
10+
11+
# molecules to be docked
12+
molecules = [
13+
"data/neuraminidase-2BAT.pdb",
14+
"data/oseltamivir_zwitterion-centered.pdb"
15+
]
16+
17+
# ====================================================================
18+
[topoaa]
19+
autohis = true
20+
ligand_param_fname = "data/ligand-prodrg.param"
21+
ligand_top_fname = "data/ligand-prodrg.top"
22+
delenph = false
23+
24+
[rigidbody]
25+
tolerance = 5
26+
# Setting `separate = false` to keep the ligand in the binding site
27+
separate = false
28+
mol_fix_origin_1 = true
29+
ambig_fname = "data/ambig-active-rigidbody.tbl"
30+
ligand_param_fname = "data/ligand-prodrg.param"
31+
ligand_top_fname = "data/ligand-prodrg.top"
32+
sampling = 1000
33+
w_vdw = 0.0
34+
inter_rigid = 0.001
35+
36+
[caprieval]
37+
reference_fname = "data/target.pdb"
38+
39+
[seletop]
40+
select = 200
41+
42+
[caprieval]
43+
reference_fname = "data/target.pdb"
44+
45+
[flexref]
46+
tolerance = 5
47+
ambig_fname = "data/ambig-passive.tbl"
48+
ligand_param_fname = "data/ligand-prodrg.param"
49+
ligand_top_fname = "data/ligand-prodrg.top"
50+
mdsteps_rigid = 0
51+
mdsteps_cool1 = 0
52+
53+
[caprieval]
54+
reference_fname = "data/target.pdb"
55+
56+
[ilrmsdmatrix]
57+
58+
[clustrmsd]
59+
criterion = 'distance'
60+
linkage = 'average'
61+
min_population = 4
62+
clust_cutoff = 1.5
63+
64+
[seletopclusts]
65+
top_models = 4
66+
67+
[caprieval]
68+
reference_fname = "data/target.pdb"
69+
70+
# Running final caprieval with allatoms parameter set to true to also
71+
# include the evaluation of protein side chains
72+
# in both the alignment process and irmsd, ilrmsd computations
73+
# NOTE that all ligand atoms are always considered even without this option.
74+
[caprieval]
75+
allatoms = true
76+
reference_fname = "data/target.pdb"
77+
78+
# ====================================================================
79+
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# ====================================================================
2+
# Protein-ligand docking example, where ligans is pre-placed ("cenetered") at the binding site
3+
4+
# directory in which the docking will be done
5+
run_dir = "run1-centered-test"
6+
7+
# execution mode
8+
mode = "local"
9+
ncores = 50
10+
11+
# molecules to be docked
12+
molecules = [
13+
"data/neuraminidase-2BAT.pdb",
14+
"data/oseltamivir_zwitterion-centered.pdb"
15+
]
16+
17+
# ====================================================================
18+
[topoaa]
19+
autohis = true
20+
ligand_param_fname = "data/ligand-prodrg.param"
21+
ligand_top_fname = "data/ligand-prodrg.top"
22+
delenph = false
23+
24+
[rigidbody]
25+
tolerance = 5
26+
# Setting `separate = false` to keep the ligand in the binding site
27+
separate = false
28+
mol_fix_origin_1 = true
29+
ambig_fname = "data/ambig-active-rigidbody.tbl"
30+
ligand_param_fname = "data/ligand-prodrg.param"
31+
ligand_top_fname = "data/ligand-prodrg.top"
32+
sampling = 20
33+
w_vdw = 0.0
34+
inter_rigid = 0.001
35+
36+
[caprieval]
37+
reference_fname = "data/target.pdb"
38+
39+
[seletop]
40+
select = 5
41+
42+
[caprieval]
43+
reference_fname = "data/target.pdb"
44+
45+
[flexref]
46+
tolerance = 5
47+
ambig_fname = "data/ambig-passive.tbl"
48+
ligand_param_fname = "data/ligand-prodrg.param"
49+
ligand_top_fname = "data/ligand-prodrg.top"
50+
mdsteps_rigid = 0
51+
mdsteps_cool1 = 0
52+
53+
[caprieval]
54+
reference_fname = "data/target.pdb"
55+
56+
[ilrmsdmatrix]
57+
58+
[clustrmsd]
59+
criterion = 'distance'
60+
linkage = 'average'
61+
min_population = 1
62+
clust_cutoff = 1.5
63+
64+
[seletopclusts]
65+
top_models = 4
66+
67+
[caprieval]
68+
reference_fname = "data/target.pdb"
69+
70+
# Running final caprieval with allatoms parameter set to true to also
71+
# include the evaluation of protein side chains
72+
# in both the alignment process and irmsd, ilrmsd computations
73+
# NOTE that all ligand atoms are always considered even without this option.
74+
[caprieval]
75+
allatoms = true
76+
reference_fname = "data/target.pdb"
77+
78+
# ====================================================================
79+

src/haddock/modules/refinement/flexref/cns/flexref.cns

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ end if
2222
! Initialisation of variables
2323
!==================================================================!
2424

25-
evaluate ($saprotocol.randorien=$randorien)
25+
evaluate ($saprotocol.randrot=$randrot)
26+
evaluate ($saprotocol.separate=$separate)
2627
evaluate ($saprotocol.tadhigh_t=$temp_high)
2728
evaluate ($saprotocol.t1_init=$temp_cool1_init)
2829
evaluate ($saprotocol.t2_init=$temp_cool2_init)
@@ -227,8 +228,10 @@ if ($select gt 0) then
227228
end if
228229

229230
! random placement of molecules
230-
if ($SaProtocol.randorien eq true) then
231+
if ($SaProtocol.separate eq true) then
231232
@MODULE:separate.cns
233+
end if
234+
if ($SaProtocol.randrot eq true) then
232235
@MODULE:random_rotations.cns
233236
end if
234237

0 commit comments

Comments
 (0)