QPromaQ commited on
Commit
99c332d
·
verified ·
1 Parent(s): 5e797a4

Reset repository and upload final project (part 8)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +3 -0
  2. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._dna-rna_restraints.cns +0 -0
  3. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._flex_segment_back.cns +0 -0
  4. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._flex_segment_side.cns +0 -0
  5. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._flexauto-neighbors.cns +0 -0
  6. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._generate_dmso.cns +0 -0
  7. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._generate_water.cns +0 -0
  8. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._mdref.cns +0 -0
  9. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._print_coorheader.cns +0 -0
  10. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._protein-ss-restraints-all.cns +0 -0
  11. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._protein-ss-restraints-alpha-beta.cns +0 -0
  12. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._protein-ss-restraints-alpha.cns +0 -0
  13. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._read_data.cns +0 -0
  14. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._read_noes.cns +0 -0
  15. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._read_param.cns +0 -0
  16. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._restrain-ions.cns +0 -0
  17. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._scale_inter.cns +0 -0
  18. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._scale_inter_final.cns +0 -0
  19. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._scale_intra_only.cns +0 -0
  20. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._setflags.cns +0 -0
  21. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._symmultimer.cns +0 -0
  22. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/calc_free-ene.cns +24 -0
  23. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/check_coordinates.cns +100 -0
  24. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/cm-restraints.cns +144 -0
  25. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/contactairs.cns +27 -0
  26. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/def_solv_param.cns +105 -0
  27. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/dna-rna_restraints.cns +424 -0
  28. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/flex_segment_back.cns +56 -0
  29. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/flex_segment_side.cns +47 -0
  30. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/flexauto-neighbors.cns +42 -0
  31. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/generate_dmso.cns +121 -0
  32. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/generate_water.cns +122 -0
  33. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/mdref.cns +616 -0
  34. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/print_coorheader.cns +308 -0
  35. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/protein-ss-restraints-all.cns +88 -0
  36. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/protein-ss-restraints-alpha-beta.cns +128 -0
  37. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/protein-ss-restraints-alpha.cns +109 -0
  38. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/read_data.cns +81 -0
  39. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/read_noes.cns +65 -0
  40. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/read_param.cns +64 -0
  41. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/restrain-ions.cns +109 -0
  42. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/scale_inter.cns +45 -0
  43. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/scale_inter_final.cns +39 -0
  44. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/scale_intra_only.cns +36 -0
  45. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/setflags.cns +21 -0
  46. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/symmultimer.cns +677 -0
  47. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/defaults.yaml +0 -0
  48. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/openmm/.___init__.py +0 -0
  49. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/openmm/.___pycache__ +0 -0
  50. .venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/openmm/._defaults.yaml +0 -0
.gitattributes CHANGED
@@ -65,3 +65,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
65
  .venv_haddock/lib/python3.12/site-packages/Bio/Cluster/_cluster.cpython-312-darwin.so filter=lfs diff=lfs merge=lfs -text
66
  .venv_haddock/lib/python3.12/site-packages/freesasa.cpython-312-darwin.so filter=lfs diff=lfs merge=lfs -text
67
  .venv_haddock/lib/python3.12/site-packages/haddock/bin/haddock-restraints filter=lfs diff=lfs merge=lfs -text
 
 
 
 
65
  .venv_haddock/lib/python3.12/site-packages/Bio/Cluster/_cluster.cpython-312-darwin.so filter=lfs diff=lfs merge=lfs -text
66
  .venv_haddock/lib/python3.12/site-packages/freesasa.cpython-312-darwin.so filter=lfs diff=lfs merge=lfs -text
67
  .venv_haddock/lib/python3.12/site-packages/haddock/bin/haddock-restraints filter=lfs diff=lfs merge=lfs -text
68
+ .venv_haddock/lib/python3.12/site-packages/haddock/prodrg/prodrg_aarch64-linux filter=lfs diff=lfs merge=lfs -text
69
+ .venv_haddock/lib/python3.12/site-packages/haddock/prodrg/prodrg_arm64-darwin filter=lfs diff=lfs merge=lfs -text
70
+ .venv_haddock/lib/python3.12/site-packages/haddock/prodrg/prodrg_x86_64-linux filter=lfs diff=lfs merge=lfs -text
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._dna-rna_restraints.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._flex_segment_back.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._flex_segment_side.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._flexauto-neighbors.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._generate_dmso.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._generate_water.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._mdref.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._print_coorheader.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._protein-ss-restraints-all.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._protein-ss-restraints-alpha-beta.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._protein-ss-restraints-alpha.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._read_data.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._read_noes.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._read_param.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._restrain-ions.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._scale_inter.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._scale_inter_final.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._scale_intra_only.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._setflags.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/._symmultimer.cns ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/calc_free-ene.cns ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! calc_free-ene.cns
2
+ ! Calculate the total energy of the separated components
3
+ !
4
+ ! Script uses the store1 and store2 atom object, and COMP, REF and RMSD object
5
+ ! ***********************************************************************
6
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
7
+ ! * All rights reserved. *
8
+ ! * This code is part of the HADDOCK software and governed by its *
9
+ ! * license. Please see the LICENSE file that should have been included *
10
+ ! * as part of this package. *
11
+ ! ***********************************************************************
12
+ !
13
+ @MODULE:scale_intra_only.cns
14
+
15
+ evaluate ($eintfree = 0.0)
16
+ @MODULE:flex_segment_back.cns
17
+ fix sele=(((attr store5 = 0) or resn ANI or resn DAN or resn XAN or resn SHA) and not name H* and not (resn WAT or resn HOH or resn TIP*)) end
18
+
19
+ minimize powell nstep=100 drop=10.0 nprint=25 end
20
+ fix sele=(not all) end
21
+ energy end
22
+ evaluate ($eintfree = $bond + $angl + $impr + $dihe + $vdw + $elec)
23
+
24
+ display FREE MOLECULES INTERNAL ENERGY = $eintfree
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/check_coordinates.cns ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! check_coordinates.cns
2
+ ! Check max/min coordinates for compatibility with PDB format
3
+ !
4
+ ! ***********************************************************************
5
+ ! * Copyright 2025 Alexandre Bonvin, Utrecht University. *
6
+ ! * All rights reserved. *
7
+ ! * This code is part of the HADDOCK software and governed by its *
8
+ ! * license. Please see the LICENSE file that should have been included *
9
+ ! * as part of this package. *
10
+ ! ***********************************************************************
11
+ !
12
+ evaluate ($failure = false)
13
+
14
+ !check for coordinates >9999.999 (max writable in PDB format)
15
+
16
+ show max (x) (all)
17
+ evaluate ($maxcoor = $result)
18
+ show max (y) (all)
19
+ if ($result gt $maxcoor) then
20
+ evaluate ($maxcoor = $result)
21
+ end if
22
+ show max (z) (all)
23
+ if ($result gt $maxcoor) then
24
+ evaluate ($maxcoor = $result)
25
+ end if
26
+ if ($maxcoor gt 9999.999) then
27
+ evaluate ($failure = true)
28
+ end if
29
+
30
+ !check for coordinates <-999.999 (min writable in PDB format)
31
+
32
+ show min (x) (all)
33
+ evaluate ($mincoor = $result)
34
+ show min (y) (all)
35
+ if ($result lt $mincoor) then
36
+ evaluate ($maxcoor = $result)
37
+ end if
38
+ show min (z) (all)
39
+ if ($result lt $mincoor) then
40
+ evaluate ($mincoor = $result)
41
+ end if
42
+ if ($mincoor lt -999.999) then
43
+ evaluate ($failure = true)
44
+ end if
45
+
46
+ !if problem detected try correcting it by centering the system around 4500,4500,4500
47
+ !but only if no EM restraints are used
48
+
49
+ if ($failure eq true) then
50
+ if ($data.flags.em eq false) then
51
+
52
+ evaluate ($xc = 0.0)
53
+ evaluate ($yc = 0.0)
54
+ evaluate ($zc = 0.0)
55
+ show ave (x) (all)
56
+ evaluate ($xc = 4500 - $result)
57
+ show ave (y) (all)
58
+ evaluate ($yc = 4500 - $result)
59
+ show ave (z) (all)
60
+ evaluate ($zc = 4500 -$result)
61
+
62
+ do (x = x + $xc) (all)
63
+ do (y = y + $yc) (all)
64
+ do (z = z + $zc) (all)
65
+
66
+ evaluate ($failure = false)
67
+ evaluate ($maxcoor = -999)
68
+ evaluate ($mincoor = 9999)
69
+ !check again for coordinates >9999.999 (max writable in PDB format)
70
+ show max (x) (all)
71
+ evaluate ($maxcoor = $result)
72
+ show max (y) (all)
73
+ if ($result gt $maxcoor) then
74
+ evaluate ($maxcoor = $result)
75
+ end if
76
+ show max (z) (all)
77
+ if ($result gt $maxcoor) then
78
+ evaluate ($maxcoor = $result)
79
+ end if
80
+ if ($maxcoor gt 9999.999) then
81
+ evaluate ($failure = true)
82
+ end if
83
+
84
+ !check for coordinates <-999.999 (min writable in PDB format)
85
+ show min (x) (all)
86
+ evaluate ($mincoor = $result)
87
+ show min (y) (all)
88
+ if ($result lt $mincoor) then
89
+ evaluate ($maxcoor = $result)
90
+ end if
91
+ show min (z) (all)
92
+ if ($result lt $mincoor) then
93
+ evaluate ($mincoor = $result)
94
+ end if
95
+ if ($mincoor lt -999.999) then
96
+ evaluate ($failure = true)
97
+ end if
98
+ end if
99
+ end if
100
+
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/cm-restraints.cns ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! cm-restraints.cns
2
+ ! Define center-of-mass restraints between molecules
3
+ !
4
+ ! ***********************************************************************
5
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
6
+ ! * All rights reserved. *
7
+ ! * This code is part of the HADDOCK software and governed by its *
8
+ ! * license. Please see the LICENSE file that should have been included *
9
+ ! * as part of this package. *
10
+ ! ***********************************************************************
11
+ !
12
+ !define center of mass restraints between all molecules
13
+ !using distance restraints between CA, BB or N1 atoms with center averaging
14
+
15
+ evaluate ($ncount = 0)
16
+
17
+ ! store original coordinates
18
+ do (refx = x) (all)
19
+ do (refy = y) (all)
20
+ do (refz = z) (all)
21
+
22
+ while ($ncount < $data.ncomponents) loop nloop1
23
+ evaluate ($ncount = $ncount +1)
24
+ evaluate ($dim_$ncount = 0.0)
25
+
26
+ !orient molecule
27
+ coor orient sele=(segid $prot_segid_$ncount) end
28
+
29
+ ! find dimensions
30
+ show max (x) (segid $prot_segid_$ncount and (name CA or name BB or name N1))
31
+ evaluate ($xdim = $result)
32
+ show max (y) (segid $prot_segid_$ncount and (name CA or name BB or name N1))
33
+ evaluate ($ydim = $result)
34
+ show max (z) (segid $prot_segid_$ncount and (name CA or name BB or name N1))
35
+ evaluate ($zdim = $result)
36
+ show min (x) (segid $prot_segid_$ncount and (name CA or name BB or name N1))
37
+ evaluate ($xdim = $xdim - $result)
38
+ show min (y) (segid $prot_segid_$ncount and (name CA or name BB or name N1))
39
+ evaluate ($ydim = $ydim - $result)
40
+ show min (z) (segid $prot_segid_$ncount and (name CA or name BB or name N1))
41
+ evaluate ($zdim = $zdim - $result)
42
+
43
+ evaluate ($corr = max($xdim,$ydim))
44
+ evaluate ($corr = max($corr,$zdim))
45
+
46
+ if ($data.cmtight eq false) then
47
+ ! use average of all three dimensions
48
+ evaluate ($dim_$ncount = ($xdim + $ydim + $zdim)/6.0)
49
+ else
50
+ ! use only the average of the smallest two dimensions
51
+ evaluate ($dim_$ncount = ($xdim + $ydim + $zdim - $corr)/4.0)
52
+ end if
53
+
54
+ ! check if the molecule is a DNA
55
+ do (store6 = 0) (all)
56
+ do (store6 = 1) (segid $prot_segid_$ncount and tag)
57
+ show sum (store6) (all)
58
+ evaluate ($nresmol = $result)
59
+ do (store6 = 0) (all)
60
+ do (store6 = 1) (segid $prot_segid_$ncount and (resn DA or resn DC or resn DG or resn DT) and tag)
61
+ show sum (store6) (all)
62
+ if ($result eq $nresmol) then
63
+ ! we are dealing with DNA set dimension to 0
64
+ evaluate ($dim_$ncount = 0.0)
65
+ end if
66
+
67
+ ! check if the molecule is a small ligand
68
+ do (store6 = 0) (all)
69
+ do (store6 = 1) (segid $prot_segid_$ncount and (name CA or name BB or name N1))
70
+ show sum (store6) (all)
71
+ if ($result eq 0) then
72
+ ! we are dealing with a ligand set dimension to 0
73
+ evaluate ($dim_$ncount = 0.0)
74
+ end if
75
+
76
+ end loop nloop1
77
+
78
+ ! restore original coordinates
79
+ do (x = refx) (all)
80
+ do (y = refy) (all)
81
+ do (z = refz) (all)
82
+
83
+ eval($nchain = 0)
84
+ do (store9 = 0) (all)
85
+ do (store9 = 1) (name CA or name BB or name N1)
86
+ while ($nchain < $data.ncomponents) loop nloop0
87
+ eval($nchain = $nchain + 1)
88
+ show sum (store9) (segid $prot_segid_$nchain)
89
+ if ($result < 3) then
90
+ evaluate ($selat$nchain = 0 )
91
+ else
92
+ evaluate ($selat$nchain = 1 )
93
+ end if
94
+ end loop nloop0
95
+
96
+ eval($nchain1 = 0)
97
+ noe
98
+ class contact
99
+ while ($nchain1 < $data.ncomponents) loop nloop1
100
+ eval($nchain1 = $nchain1 + 1)
101
+ eval($nchain2 = $nchain1 )
102
+ if ($mol_shape_$nchain1 eq false) then
103
+ while ($nchain2 < $data.ncomponents) loop nloop2
104
+ eval($nchain2 = $nchain2 + 1)
105
+ if ($mol_shape_$nchain2 eq false) then
106
+ if ($data.cmtight eq false) then
107
+ eval($cm_dist = $dim_$nchain1 + $dim_$nchain2)
108
+ else
109
+ eval($cm_dist = ($dim_$nchain1 + $dim_$nchain2)/2 )
110
+ end if
111
+ if ($selat$nchain1 = 1) then
112
+ if ($selat$nchain2 = 1) then
113
+ assign (segid $prot_segid_$nchain1 and ( name CA or name BB or name N1 ))
114
+ (segid $prot_segid_$nchain2 and ( name CA or name BB or name N1 )) $cm_dist $cm_dist 1.0
115
+ else
116
+ assign (segid $prot_segid_$nchain1 and ( name CA or name BB or name N1 ))
117
+ (segid $prot_segid_$nchain2) $cm_dist $cm_dist 1.0
118
+ end if
119
+ else
120
+ if ($selat$nchain2 = 1) then
121
+ assign (segid $prot_segid_$nchain1)
122
+ (segid $prot_segid_$nchain2 and ( name CA or name BB or name N1 )) $cm_dist $cm_dist 1.0
123
+ else
124
+ assign (segid $prot_segid_$nchain1)
125
+ (segid $prot_segid_$nchain2) $cm_dist $cm_dist 1.0
126
+ end if
127
+ end if
128
+ end if
129
+ end loop nloop2
130
+ end if
131
+ end loop nloop1
132
+
133
+ averaging contact center
134
+ scale contact $Data.kcm
135
+ sqconstant contact 1.0
136
+ sqexponent contact 2
137
+ soexponent contact 1
138
+ rswitch contact 1.0
139
+ sqoffset contact 0.0
140
+ asymptote contact 2.0
141
+ msoexponent contact 1
142
+ masymptote contact -0.1
143
+ mrswitch contact 1.0
144
+ end
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/contactairs.cns ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! contactairs.cns
2
+ ! Define ambiguous distance restraints between residues at interfaces
3
+ !
4
+ ! ***********************************************************************
5
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
6
+ ! * All rights reserved. *
7
+ ! * This code is part of the HADDOCK software and governed by its *
8
+ ! * license. Please see the LICENSE file that should have been included *
9
+ ! * as part of this package. *
10
+ ! ***********************************************************************
11
+ !
12
+ eval($nchain1 = 0)
13
+ while ($nchain1 < $data.ncomponents) loop nloop1
14
+ eval($nchain1 = $nchain1 + 1)
15
+ for $id in id (tag and segid $prot_segid_$nchain1
16
+ and (not (segid $prot_segid_$nchain1 or resn ANI or resn DAN or resn XAN
17
+ or resn SHA or resn WAT or resn HOH or resn TIP* or resn DUM) around 5.0)) loop defnoe1
18
+ show (resid) (id $id)
19
+ evaluate ($inres = $result)
20
+ noe
21
+ assign (resid $inres and segid $prot_segid_$nchain1)
22
+ (byres (not (segid $prot_segid_$nchain1 or resn ANI or resn DAN or resn XAN
23
+ or resn SHA or resn WAT or resn HOH or resn TIP* or resn DUM)
24
+ and (segid $prot_segid_$nchain1) around 5.0)) 2.0 2.0 0.0
25
+ end
26
+ end loop defnoe1
27
+ end loop nloop1
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/def_solv_param.cns ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! def_solv_param.cns
2
+ ! Define atomic solvation parameters
3
+ ! Original valus taken from Fernandez-Recio et al. JMB 335:843 (2004)
4
+ !
5
+ ! ***********************************************************************
6
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
7
+ ! * All rights reserved. *
8
+ ! * This code is part of the HADDOCK software and governed by its *
9
+ ! * license. Please see the LICENSE file that should have been included *
10
+ ! * as part of this package. *
11
+ ! ***********************************************************************
12
+ !
13
+ evaluate ($arofac = 6.26)
14
+ evaluate ($alifac = 1.27)
15
+ evaluate ($polfac = 2.30)
16
+
17
+
18
+ do (store1 = 0.0000) (all)
19
+ do (store1 = 0.0151 * $alifac) (name C*)
20
+ do (store1 = 0.0176 * $arofac) ((name CG* or name CD* or name CE* or name CH* or name CZ*) and (resn PHE or resn TYR or resn HIS or resn TRP))
21
+ do (store1 = -0.0170 * $polfac) (name N*)
22
+ do (store1 = -0.0548 * $polfac) (name NT* or (name NZ* and resn LYS))
23
+ do (store1 = -0.0273 * $polfac) (name NH* and resn ARG)
24
+ do (store1 = -0.0136 * $polfac) (name O*)
25
+ do (store1 = -0.0185 * $polfac) (name OG* or name OH)
26
+ do (store1 = -0.0299 * $polfac) ((name OD* and resn ASP) or (name OE* and resn GLU))
27
+ do (store1 = 0.0112 * $polfac) (name S*)
28
+ do (store1 = 0.0022 * $polfac) ((name S* and attr charge = -0.3) or (name SD and resn MET))
29
+ do (store1 = 0.0000) (name SHA)
30
+
31
+ !
32
+ ! CG parameters matched from the original terms
33
+ !
34
+ ! Edesolv_aa
35
+ ! ASP_cg = _________________________
36
+ ! ASA_cg
37
+ !
38
+ ! ASA_cg and Edesol_aa calculated on a GGXGG peptide
39
+ ! accuracy=0.0025, rh2o=1.4, delete H, sele=(resn X)
40
+ !
41
+ ! e.g. BB bead alanine
42
+ !
43
+ ! BB = CA + C + N + O
44
+ ! ASA_cg = 176.4940
45
+ ! Edesolv_aa = -1.8889
46
+ !
47
+ ! ASP_cg = -0.0107
48
+ !
49
+ ! Charleen Don (2012), JR (2014), Jorge Roel (2017)
50
+ !
51
+ !
52
+
53
+ do (store1 = 0.0000) (name BB or name SC*)
54
+ ! Backbone beads
55
+ do (store1 = -0.0107) (name BB and resn ALA)
56
+ do (store1 = -0.0089) (name BB and resn GLY)
57
+ do (store1 = -0.0153) (name BB and resn ILE)
58
+ do (store1 = -0.0158) (name BB and resn VAL)
59
+ do (store1 = -0.0046) (name BB and resn PRO)
60
+ do (store1 = -0.0137) (name BB and resn ASN)
61
+ do (store1 = -0.0147) (name BB and resn GLN)
62
+ do (store1 = -0.0165) (name BB and resn THR)
63
+ do (store1 = -0.0154) (name BB and resn SER)
64
+ do (store1 = -0.0130) (name BB and resn MET)
65
+ do (store1 = -0.0167) (name BB and resn CYS)
66
+ do (store1 = -0.0126) (name BB and resn PHE)
67
+ do (store1 = -0.0134) (name BB and resn TYR)
68
+ do (store1 = -0.0134) (name BB and resn TRP)
69
+ do (store1 = -0.0169) (name BB and resn ASP)
70
+ do (store1 = -0.0150) (name BB and resn GLU)
71
+ do (store1 = -0.0155) (name BB and resn HIS)
72
+ do (store1 = -0.0163) (name BB and resn LYS)
73
+ do (store1 = -0.0162) (name BB and resn ARG)
74
+
75
+ ! Side-chain beads
76
+ !do (store1 = 0.0000) (name SC* and resn ALA)
77
+ !do (store1 = 0.0000) (name SC* and resn GLY)
78
+ do (store1 = 0.0255) (name SC* and resn ILE)
79
+ do (store1 = 0.0222) (name SC* and resn VAL)
80
+ do (store1 = 0.0230) (name SC* and resn PRO)
81
+ do (store1 = -0.0192) (name SC* and resn ASN)
82
+ do (store1 = -0.0135) (name SC* and resn GLN)
83
+ do (store1 = -0.0009) (name SC* and resn THR)
84
+ do (store1 = -0.0056) (name SC* and resn SER)
85
+ do (store1 = 0.0202) (name SC* and resn MET)
86
+ do (store1 = 0.0201) (name SC* and resn CYS)
87
+ do (store1 = 0.1005) (name SC* and resn PHE)
88
+ do (store1 = 0.0669) (name SC* and resn TYR)
89
+ do (store1 = 0.0872) (name SC* and resn TRP)
90
+ do (store1 = -0.0360) (name SC* and resn ASP)
91
+ do (store1 = -0.0301) (name SC* and resn GLU)
92
+ do (store1 = 0.0501) (name SC* and resn HIS)
93
+ do (store1 = -0.0210) (name SC* and resn LYS)
94
+ do (store1 = -0.0229) (name SC* and resn ARG)
95
+
96
+ ! Fake beads
97
+ do (store1 = 0.0) (name SCD* and resn ASN)
98
+ do (store1 = 0.0) (name SCD* and resn GLN)
99
+ do (store1 = 0.0) (name SCD* and resn SER)
100
+ do (store1 = 0.0) (name SCD* and resn THR)
101
+ do (store1 = 0.0) (name SCD* and resn ARG)
102
+ do (store1 = 0.0) (name SCD* and resn LYS)
103
+ do (store1 = 0.0) (name SCD* and resn GLU)
104
+ do (store1 = 0.0) (name SCD* and resn ASP)
105
+
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/dna-rna_restraints.cns ADDED
@@ -0,0 +1,424 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! dna-rna_restraints.def
2
+ ! Define backbone dihedral angles, hbonds and planarity restraints
3
+ ! for nucleic acids
4
+ !
5
+ ! ***********************************************************************
6
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
7
+ ! * This code is part of the HADDOCK software and governed by its *
8
+ ! * license. Please see the LICENSE file that should have been included *
9
+ ! * as part of this package. *
10
+ ! ***********************************************************************
11
+ !
12
+ {+ file: dna-rna_restraints.def +}
13
+ {+ description: Creates restraints to maintain conformation of DNA/RNA +}
14
+ {+ Additions and changes were made to allow for flexibility during docking +}
15
+ {+ comment:This file is to be read by refinement files that modify atom coordinates +}
16
+ {+ authors: Axel T. Brunger, and Paul D. Adams +}
17
+ {+ modified by Alexandre Bonvin and Marc van Dijk for HADDOCK use +}
18
+
19
+ {============================================== base planarity =============================================}
20
+
21
+ {* Restrain base planarity. This selection must only include nucleotide residues *}
22
+ evaluate ($dna_bases_planar=true)
23
+
24
+ {=================================== sugar-pucker dihedral angle restraints ================================}
25
+
26
+ {* Pick the dihedral angles of the sugar pucker from the input structure
27
+ and restrain them within the given error range *}
28
+ evaluate ($dna_pick_pucdih=true)
29
+
30
+ {* dihedral C1'-C2'-C3'-C4' error range *}
31
+ evaluate ($error_nu2=0.0)
32
+ {* dihedral C5'-C4'-C3'-C2' error range *}
33
+ evaluate ($error_nu3=0.0)
34
+ {* dihedral C1'-O4'-C4'-C5' error range *}
35
+ evaluate ($error_nu4=0.0)
36
+
37
+ {================================ phosphate backbone dihedral angle restraints =============================}
38
+
39
+ {* Pick the dihedral angles of the phosphate backbone from the input structure and
40
+ restrain them within the given error range *}
41
+ evaluate ($dna_pick_bacdih=true)
42
+
43
+ {* Error range for phosphate backbone dihedrals *}
44
+ {* alpha dihedral O3'-P-O5'-C5' error range *}
45
+ evaluate ($error_alpha=10.0)
46
+ {* beta dihedral P-O5'-C5'-C4' error range *}
47
+ evaluate ($error_beta=40.0)
48
+ {* gamma dihedral O5'-C5'-C4'-C3' error range *}
49
+ evaluate ($error_gamma=20.0)
50
+ {* delta dihedral C5'-C4'-C3'-O3' error range *}
51
+ evaluate ($error_delta=50.0)
52
+ {* epsilon dihedral C4'-C3'-O3'-P error range *}
53
+ evaluate ($error_eps=10.0)
54
+ {* zeta dihedral C3'-O3'-P-O5' error range *}
55
+ evaluate ($error_zeta=50.0)
56
+
57
+
58
+ {=========================================== Watson-Crick base pairs =======================================}
59
+
60
+ {* automatically pick Watson-Crick restraint values from structure *}
61
+ evaluate ($dna_pick_wc=true)
62
+
63
+ {* error range used for dna_pick_wc defined Watson-Crick restraints *}
64
+ evaluate ($wc_low=0.05)
65
+ evaluate ($wc_up=0.05)
66
+
67
+
68
+ {=========================================== Coarse-Grained ===========================================================}
69
+ {* Is the DNA/RNA molecule CG? *}
70
+ evaluate ($dna_cg=false)
71
+
72
+ {=========================================================================================================}
73
+ { things below this line do not normally need to be changed }
74
+ {=========================================================================================================}
75
+
76
+
77
+ {- find max and min residue numbers -}
78
+ evaluate ($min_resid = 99999)
79
+ evaluate ($max_resid = -99999)
80
+ show sum(1) ( (resn DA or resn A or resn DG or resn G or resn DT or resn T or resn DC or resn C or resn U) and tag )
81
+ if ( $result > 0 ) then
82
+ for $id in id ( (resn DA or resn A or resn DG or resn G or resn DT or resn T or resn DC or resn C or resn U) and tag ) loop resid
83
+ show (resid) ( id $id )
84
+ evaluate ($resid=decode($result))
85
+ evaluate ($min_resid = max($min_resid,$resid))
86
+ evaluate ($max_resid = max($max_resid,$resid))
87
+ end loop resid
88
+ end if
89
+
90
+ {- the planarity restraints single bases -}
91
+ if ($dna_bases_planar=true) then
92
+ for $id in id ( tag and (resn DA or resn A or resn DG or resn G or resn DT or resn T or resn DC or resn C or resn U) ) loop plan
93
+ show (segid) (id $id)
94
+ evaluate ($segid=$result)
95
+ show (resid) (id $id)
96
+ evaluate ($resid=decode($result))
97
+ evaluate ($plweight = 20)
98
+
99
+ restraints plane
100
+ group
101
+ selection=( segid $segid and resid $resid and
102
+ (resn T or resn C or resn G or resn A or resn U or
103
+ resn DT or resn DC or resn DG or resn DA) and
104
+ not (name c#' or name h#' or name h#'' or name o#p or
105
+ name h7# or name o#' or name p or name h#t or name o#t))
106
+ weight=$plweight
107
+ end
108
+ end
109
+ end loop plan
110
+ end if
111
+
112
+ {- Dihedral restraints for the sugar pucker -}
113
+
114
+ if ($dna_pick_pucdih=true) then
115
+ show sum(1) ( (resn DA or resn A or resn DG or resn G or resn DT or resn T or resn DC or resn C or resn U) and tag )
116
+ if ( $result > 0 ) then
117
+ for $id in id ( (resn DA or resn A or resn DG or resn G or resn DT or resn T or resn DC or resn C or resn U) and tag ) loop resid
118
+ show (segid) (id $id)
119
+ evaluate ($segid=$result)
120
+ show (resid) ( id $id )
121
+ evaluate ($resid=decode($result))
122
+ pick dihedral
123
+ ( segid $segid and resid $resid and name c1' )
124
+ ( segid $segid and resid $resid and name c2' )
125
+ ( segid $segid and resid $resid and name c3' )
126
+ ( segid $segid and resid $resid and name c4' )
127
+ geometry
128
+ evaluatate ($dihedral_nu2=$result)
129
+ pick dihedral
130
+ ( segid $segid and resid $resid and name c5' )
131
+ ( segid $segid and resid $resid and name c4' )
132
+ ( segid $segid and resid $resid and name c3' )
133
+ ( segid $segid and resid $resid and name c2' )
134
+ geometry
135
+ evaluatate ($dihedral_nu3=$result)
136
+ pick dihedral
137
+ ( segid $segid and resid $resid and name c1' )
138
+ ( segid $segid and resid $resid and name o4' )
139
+ ( segid $segid and resid $resid and name c4' )
140
+ ( segid $segid and resid $resid and name c5' )
141
+ geometry
142
+ evaluatate ($dihedral_nu4=$result)
143
+ restraints dihedral
144
+ assign ( segid $segid and resid $resid and name c1' )
145
+ ( segid $segid and resid $resid and name c2' )
146
+ ( segid $segid and resid $resid and name c3' )
147
+ ( segid $segid and resid $resid and name c4' )
148
+ 20.0 $dihedral_nu2 $error_nu2 2
149
+ assign ( segid $segid and resid $resid and name c5' )
150
+ ( segid $segid and resid $resid and name c4' )
151
+ ( segid $segid and resid $resid and name c3' )
152
+ ( segid $segid and resid $resid and name c2' )
153
+ 20.0 $dihedral_nu3 $error_nu3 2
154
+ assign ( segid $segid and resid $resid and name c1' )
155
+ ( segid $segid and resid $resid and name o4' )
156
+ ( segid $segid and resid $resid and name c4' )
157
+ ( segid $segid and resid $resid and name c5' )
158
+ 20.0 $dihedral_nu4 $error_nu4 2
159
+ scale=20.0
160
+ end
161
+ end loop resid
162
+ flags include cdih end
163
+ end if
164
+ end if
165
+
166
+ {- Dihedral restraints for the phosphate backbone -}
167
+
168
+ if ($dna_pick_bacdih=true) then
169
+ show sum(1) ( (resn DA or resn A or resn DG or resn G or resn DT or resn T or resn DC or resn C or resn U) and tag )
170
+ if ( $result > 0 ) then
171
+ evaluate ($resid=$min_resid)
172
+ evaluate ($nres=$max_resid - $min_resid + 1)
173
+ evaluate ($error_alpha=$error_alpha)
174
+ evaluate ($error_beta=$error_beta)
175
+ evaluate ($error_gamma=$error_gamma)
176
+ evaluate ($error_zeta=$error_zeta)
177
+ evaluate ($error_epsilon=$error_eps)
178
+ evaluate ($error_delta=$error_delta)
179
+ for $id in id ( (resn DA or resn A or resn DG or resn G or resn DT or resn T or resn DC or resn C or resn U) and tag ) loop resid
180
+ show (segid) (id $id)
181
+ evaluate ($segid=$result)
182
+ show (resid) ( id $id )
183
+ evaluate ($resid=decode($result))
184
+ if ($resid > $min_resid) then
185
+ evaluate ($rprec = $resid - 1)
186
+ ! check if previous residue exists
187
+ show sum(1) ( resid $rprec and tag )
188
+ if ( $result > 0 ) then
189
+ pick dihedral
190
+ ( segid $segid and resid $rprec and name O3' )
191
+ ( segid $segid and resid $resid and name P )
192
+ ( segid $segid and resid $resid and name O5' )
193
+ ( segid $segid and resid $resid and name C5' )
194
+ geometry
195
+ evaluatate ($dihedral_alpha=$result)
196
+ pick dihedral
197
+ ( segid $segid and resid $resid and name P )
198
+ ( segid $segid and resid $resid and name O5' )
199
+ ( segid $segid and resid $resid and name C5' )
200
+ ( segid $segid and resid $resid and name C4' )
201
+ geometry
202
+ evaluatate ($dihedral_beta=$result)
203
+ restraint dihedral
204
+ ! alpha
205
+ assign ( segid $segid and resid $rprec and name O3' )
206
+ ( segid $segid and resid $resid and name P )
207
+ ( segid $segid and resid $resid and name O5' )
208
+ ( segid $segid and resid $resid and name C5' )
209
+ 1.0 $dihedral_alpha $error_alpha 2
210
+ ! beta
211
+ assign ( segid $segid and resid $resid and name P )
212
+ ( segid $segid and resid $resid and name O5' )
213
+ ( segid $segid and resid $resid and name C5' )
214
+ ( segid $segid and resid $resid and name C4' )
215
+ 1.0 $dihedral_beta $error_beta 2
216
+ scale 200.0
217
+ end
218
+ end if
219
+ end if
220
+
221
+ pick dihedral
222
+ ( segid $segid and resid $resid and name O5' )
223
+ ( segid $segid and resid $resid and name C5' )
224
+ ( segid $segid and resid $resid and name C4' )
225
+ ( segid $segid and resid $resid and name C3' )
226
+ geometry
227
+ evaluatate ($dihedral_gamma=$result)
228
+ pick dihedral
229
+ ( segid $segid and resid $resid and name C5' )
230
+ ( segid $segid and resid $resid and name C4' )
231
+ ( segid $segid and resid $resid and name C3' )
232
+ ( segid $segid and resid $resid and name O3' )
233
+ geometry
234
+ evaluatate ($dihedral_delta=$result)
235
+
236
+ restraints dihedral
237
+ ! gamma
238
+ assign ( segid $segid and resid $resid and name O5' )
239
+ ( segid $segid and resid $resid and name C5' )
240
+ ( segid $segid and resid $resid and name C4' )
241
+ ( segid $segid and resid $resid and name C3' )
242
+ 1.0 $dihedral_gamma $error_gamma 2
243
+ ! delta
244
+ assign ( segid $segid and resid $resid and name C5' )
245
+ ( segid $segid and resid $resid and name C4' )
246
+ ( segid $segid and resid $resid and name C3' )
247
+ ( segid $segid and resid $resid and name O3' )
248
+ 1.0 $dihedral_delta $error_delta 2
249
+ scale=200.0
250
+ end
251
+
252
+ if ($resid < $max_resid) then
253
+ evaluate ($rfoll = $resid + 1)
254
+ ! check if next residue exists
255
+ show sum(1) ( resid $rfoll and segid $segid and tag )
256
+ if ( $result > 0 ) then
257
+ pick dihedral
258
+ ( segid $segid and resid $resid and name C4' )
259
+ ( segid $segid and resid $resid and name C3' )
260
+ ( segid $segid and resid $resid and name O3' )
261
+ ( segid $segid and resid $rfoll and name P )
262
+ geometry
263
+ evaluatate ($dihedral_epsilon=$result)
264
+ pick dihedral
265
+ ( segid $segid and resid $resid and name C3' )
266
+ ( segid $segid and resid $resid and name O3' )
267
+ ( segid $segid and resid $rfoll and name P )
268
+ ( segid $segid and resid $rfoll and name O5' )
269
+ geometry
270
+ evaluatate ($dihedral_zeta=$result)
271
+ restraint dihedral
272
+ ! epsilon
273
+ assign ( segid $segid and resid $resid and name C4' )
274
+ ( segid $segid and resid $resid and name C3' )
275
+ ( segid $segid and resid $resid and name O3' )
276
+ ( segid $segid and resid $rfoll and name P )
277
+ 1.0 $dihedral_epsilon $error_epsilon 2
278
+ ! zeta
279
+ assign ( segid $segid and resid $resid and name C3' )
280
+ ( segid $segid and resid $resid and name O3' )
281
+ ( segid $segid and resid $rfoll and name P )
282
+ ( segid $segid and resid $rfoll and name O5' )
283
+ 1.0 $dihedral_zeta $error_zeta 2
284
+ scale 200.0
285
+ end
286
+ end if
287
+ end if
288
+ end loop resid
289
+ flags include cdih end
290
+ end if
291
+ end if
292
+
293
+ {- Watson-Crick base pairing -}
294
+
295
+ if ($dna_pick_wc = true) then
296
+ evaluate ($hbcut = 3.5)
297
+ ! We only to check for ADE and CYT
298
+ show sum(1) ( (resn DA or resn A or resn DC or resn C) and tag )
299
+ if ( $result > 0 ) then
300
+ noe
301
+ class hres
302
+ averaging hres cent
303
+ potential hres square
304
+ sqconstant hres 1.
305
+ sqexponent hres 2
306
+ scale hres 70.
307
+ end
308
+ for $id in id ( (resn DA or resn A or resn DC or resn C) and tag ) loop resid
309
+ show (segid) (id $id)
310
+ evaluate ($segid=$result)
311
+ show (resid) ( id $id )
312
+ evaluate ($resid=decode($result))
313
+ evaluate ($presid=$resid-1)
314
+ evaluate ($fresid=$resid+1)
315
+ evaluate ($ares_name = none)
316
+ show ( resn ) (id $id)
317
+ evaluate ($ares=$result)
318
+
319
+ if ( $ares = DA ) then
320
+ eval ($ares_name = ADE)
321
+ elseif ( $ares = A ) then
322
+ eval ($ares_name = ADE)
323
+ end if
324
+
325
+ if ( $ares = DC ) then
326
+ eval ($ares_name = CYT)
327
+ elseif ( $ares = C ) then
328
+ eval ($ares_name = CYT)
329
+ end if
330
+
331
+ if ($ares_name = ADE) then
332
+ show sum(1) ( ((resn DT or resn T or resn U) and not (resid $presid or resid $fresid) and name N3)
333
+ and (resid $resid and name N1) around $hbcut)
334
+ if ($result = 1) then
335
+ show (resid) ( ((resn DT or resn T or resn U) and not (resid $presid or resid $fresid) and name N3)
336
+ and (resid $resid and name N1) around $hbcut)
337
+ evaluate ($rpair = $result)
338
+ pick bond
339
+ (resid $resid and name N6)
340
+ (resid $rpair and name O4)
341
+ geometry
342
+ evaluate ($n6o4=$result)
343
+ pick bond
344
+ (resid $resid and name N1)
345
+ (resid $rpair and name N3)
346
+ geometry
347
+ evaluate ($n1n3=$result)
348
+ pick bond
349
+ (resid $resid and name N1)
350
+ (resid $rpair and name O4)
351
+ geometry
352
+ evaluate ($n1o4=$result)
353
+ pick bond
354
+ (resid $resid and name N1)
355
+ (resid $rpair and name O2)
356
+ geometry
357
+ evaluate ($n1o2=$result)
358
+ noe
359
+ assign (resid $resid and name N6)
360
+ (resid $rpair and name O4)
361
+ $n6o4 $wc_low $wc_up
362
+ assign (resid $resid and name N1)
363
+ (resid $rpair and name N3)
364
+ $n1n3 $wc_low $wc_up
365
+ assign (resid $resid and name N1)
366
+ (resid $rpair and name O4)
367
+ $n1o4 $wc_low $wc_up
368
+ assign (resid $resid and name N1)
369
+ (resid $rpair and name O2)
370
+ $n1o2 $wc_low $wc_up
371
+ end
372
+ end if
373
+ end if
374
+
375
+ !find possible pairing for DC/C with DG/G
376
+ if ($ares_name = CYT) then
377
+ show sum(1) ( ((resn DG or resn G) and not (resid $presid or resid $fresid) and name N1)
378
+ and (resid $resid and name N3) around $hbcut)
379
+ if ($result = 1) then
380
+ show (resid) ( ((resn DG or resn G) and not (resid $presid or resid $fresid) and name N1)
381
+ and (resid $resid and name N3) around $hbcut)
382
+ evaluate ($rpair = $result)
383
+ pick bond
384
+ (resid $resid and name N3)
385
+ (resid $rpair and name N1)
386
+ geometry
387
+ evaluate ($n3n1=$result)
388
+ pick bond
389
+ (resid $resid and name N4)
390
+ (resid $rpair and name O6)
391
+ geometry
392
+ evaluate ($n4o6=$result)
393
+ pick bond
394
+ (resid $resid and name O2)
395
+ (resid $rpair and name N2)
396
+ geometry
397
+ evaluate ($o2n2=$result)
398
+ pick bond
399
+ (resid $resid and name N3)
400
+ (resid $rpair and name O6)
401
+ geometry
402
+ evaluate ($n3o6=$result)
403
+ pick bond
404
+ (resid $resid and name N3)
405
+ (resid $rpair and name N2)
406
+ geometry
407
+ evaluate ($n3n2=$result)
408
+ noe
409
+ assign (resid $resid and name N3)
410
+ (resid $rpair and name N1) $n3n1 $wc_low $wc_up
411
+ assign (resid $resid and name N4)
412
+ (resid $rpair and name O6) $n4o6 $wc_low $wc_up
413
+ assign (resid $resid and name O2)
414
+ (resid $rpair and name N2) $o2n2 $wc_low $wc_up
415
+ assign (resid $resid and name N3)
416
+ (resid $rpair and name O6) $n3o6 $wc_low $wc_up
417
+ assign (resid $resid and name N3)
418
+ (resid $rpair and name N2) $n3n2 $wc_low $wc_up
419
+ end
420
+ end if
421
+ end if
422
+ end loop resid
423
+ end if
424
+ end if
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/flex_segment_back.cns ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! flex_segment_back.cns
2
+ ! Define the semi-flexible segments (both side-chains and backbone)
3
+ !
4
+ ! ***********************************************************************
5
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
6
+ ! * All rights reserved. *
7
+ ! * This code is part of the HADDOCK software and governed by its *
8
+ ! * license. Please see the LICENSE file that should have been included *
9
+ ! * as part of this package. *
10
+ ! ***********************************************************************
11
+ !
12
+
13
+ do (store5 = 0) (all)
14
+ do (store6 = 0) (all)
15
+
16
+ !first flexible segments for docking
17
+ evaluate($nchain1 = 0)
18
+ while ($nchain1 < $data.ncomponents) loop nloop1
19
+ evaluate($nchain1 = $nchain1 + 1)
20
+ evaluate($nf=0)
21
+
22
+ if ($nseg$nchain1 = 0) then
23
+ display NO FLEXIBLE SEGMENTS for molecule $nchain1
24
+ else
25
+ if ($nseg$nchain1 < 0) then
26
+ display AUTOMATIC DEFINITION OF FLEXIBLE SEGMENTS BASED ON INTERMOLECULAR PROXIMITY FOR MOLECULE $nchain1
27
+ inline @MODULE:flexauto-neighbors.cns
28
+ else
29
+ display FLEXIBLE SIDE-CHAINS SEGMENTS for molecule $nchain1
30
+ while ($nf < $nseg$nchain1) loop Xflex
31
+ evaluate($nf=$nf + 1)
32
+ do (store5 = $nchain1) ( resid $seg_sta_$nchain1_$nf : $seg_end_$nchain1_$nf
33
+ and segid $prot_segid_$nchain1)
34
+ display FLEXIBLE SEGMENT NR $nf FROM $seg_sta_$nchain1_$nf TO $seg_end_$nchain1_$nf
35
+ end loop Xflex
36
+ end if
37
+ end if
38
+ end loop nloop1
39
+
40
+ !then fully flexible segments for all stages
41
+ display NO FLEXIBLE SEGMENTS for all molecule at this stage
42
+ if ($nfle = 0) then
43
+ display NO FULLY FLEXIBLE SEGMENTS
44
+ else
45
+ evaluate($nf=0)
46
+ while ($nf < $nfle) loop Xfflex
47
+ evaluate($nf=$nf + 1)
48
+ do (store5 = 1) ( resid $fle_sta_$nf : $fle_end_$nf and segid $fle_seg_$nf )
49
+ display FULLY FLEXIBLE SEGMENT NR $nf FROM $fle_sta_$nf TO $fle_end_$nf FOR CHAIN $fle_seg_$nf
50
+ end loop Xfflex
51
+ end if
52
+
53
+ do (store5 = 21) (resn WAT or resn HOH or resn TIP*)
54
+
55
+ do (store1 = 0) (all)
56
+ do (store1 = 1) ((resn WAT or resn HOH or resn TIP*) and name OH2)
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/flex_segment_side.cns ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ !first flexible segments for docking
3
+ evaluate($nchain1 = 0)
4
+ while ($nchain1 < $data.ncomponents) loop nloop1
5
+ evaluate($nchain1 = $nchain1 + 1)
6
+ evaluate($nf=0)
7
+ if ($nseg$nchain1 = 0) then
8
+ display NO FLEXIBLE SIDE-CHAINS SEGMENTS for molecule $nchain1
9
+ else
10
+ if ($nseg$nchain1 < 0) then
11
+ display AUTOMATIC DEFINITION OF FLEXIBLE SEGMENTS BASED ON INTERMOLECULAR PROXIMITY FOR MOLECULE $nchain1
12
+ inline @MODULE:flexauto-neighbors.cns
13
+ do (store5 = 0) (name CA or name BB or name C or name N or name O)
14
+ else
15
+ display FLEXIBLE SIDE-CHAINS SEGMENTS for molecule $nchain1
16
+ while ($nf < $nseg$nchain1) loop Xflex
17
+ evaluate($nf=$nf + 1)
18
+ do (store5 = $nchain1) ( resid $seg_sta_$nchain1_$nf : $seg_end_$nchain1_$nf
19
+ and segid $prot_segid_$nchain1
20
+ and not(name CA or name BB or name C or name N or name O) )
21
+ display FLEXIBLE SIDE-CHAINS SEGMENT NR $nf FROM $seg_sta_$nchain1_$nf TO $seg_end_$nchain1_$nf
22
+ end loop Xflex
23
+ end if
24
+ end if
25
+ end loop nloop1
26
+
27
+ !then fully flexible segments for all stages
28
+
29
+ !then fully flexible segments for all stages
30
+ display NO FLEXIBLE SEGMENTS for all molecule at this stage
31
+ if ($nfle = 0) then
32
+ display NO FULLY FLEXIBLE SEGMENTS
33
+ else
34
+ evaluate($nf=0)
35
+ while ($nf < $nfle) loop Xfflex
36
+ evaluate($nf=$nf + 1)
37
+ do (store5 = 1) ( resid $fle_sta_$nf : $fle_end_$nf and segid $fle_seg_$nf )
38
+ display FULLY FLEXIBLE SEGMENT NR $nf FROM $fle_sta_$nf TO $fle_end_$nf FOR CHAIN $fle_seg_$nf
39
+ end loop Xfflex
40
+ end if
41
+
42
+ do (store5 = 21) (resn WAT or resn HOH or resn TIP*)
43
+
44
+ do (store1 = 0) (all)
45
+ do (store1 = 1) ((resn WAT or resn HOH or resn TIP*) and name OH2)
46
+ show sum (store1) ((resn WAT or resn HOH or resn TIP*))
47
+
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/flexauto-neighbors.cns ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! flexauto-neighbors.cns
2
+ ! Automatic definition of flexible segments for docking for contacting residues
3
+ ! including neighboring residues of residues making contacts
4
+ !
5
+ ! ***********************************************************************
6
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
7
+ ! * All rights reserved. *
8
+ ! * This code is part of the HADDOCK software and governed by its *
9
+ ! * license. Please see the LICENSE file that should have been included *
10
+ ! * as part of this package. *
11
+ ! ***********************************************************************
12
+ !
13
+
14
+ evaluate ($flcut = 5.0)
15
+
16
+ do (store5 = $nchain1) (byres (segid $prot_segid_$nchain1
17
+ and (not (segid $prot_segid_$nchain1 or resn SHA)) around $flcut))
18
+
19
+ do (store6 = 0) (segid $prot_segid_$nchain1)
20
+ for $id in id (tag and attr store5 >0 and not ((resn WAT or resn HOH or resn TIP*) or resn DMSO) and segid $prot_segid_$nchain1) loop flexres1
21
+ show (resid) (id $id)
22
+ evaluate ($inres = decode($result))
23
+ evaluate ($preres = $inres)
24
+ evaluate ($nexres = $inres)
25
+ evaluate ($preres = $preres - 1)
26
+ do (store6 = $nchain1) (resid $preres and segid $prot_segid_$nchain1)
27
+ do (store6 = $nchain1) (resid $nexres and segid $prot_segid_$nchain1)
28
+ end loop flexres1
29
+
30
+ do (store5 = store6) (segid $prot_segid_$nchain1)
31
+
32
+ display THE FOLLOWING RESIDUES HAVE BEEN DEFINED AS FLEXIBLE for molecule $nchain1
33
+ for $id in id (tag and attr store5 >0 and not ((resn WAT or resn HOH or resn TIP*) or resn DMSO) and segid $prot_segid_$nchain1) loop flexres2
34
+ show (resid) (id $id)
35
+ evaluate ($inres = $result)
36
+ show (resn) (id $id)
37
+ evaluate ($nares = $result)
38
+ show (segid) (id $id)
39
+ evaluate ($seres = $result)
40
+ display AUTOMATICALLY SELECTED SEGMENT: $nares,$inres,$seres
41
+ end loop flexres2
42
+
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/generate_dmso.cns ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! generate_dmso.cns
2
+ ! Generate a DMSO solvent layer around the molecule
3
+ !
4
+ ! ***********************************************************************
5
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
6
+ ! * Originally adapted from Aria 1.2 from Nilges and Linge, EMBL. *
7
+ ! * All rights reserved. *
8
+ ! * This code is part of the HADDOCK software and governed by its *
9
+ ! * license. Please see the LICENSE file that should have been included *
10
+ ! * as part of this package. *
11
+ ! ***********************************************************************
12
+ !
13
+
14
+ eval ($boxlength = 29.1) ! length of the dmso box
15
+ eval ($thickness = 12.5) ! maxi. initial dmso-protein distance (heavy atoms)
16
+ eval ($pw_dist = 2.4) ! mini. initial dmso-protein distance (heavy atoms)
17
+ eval ($dmso_diam = 4.1) ! diameter of dmso molecule
18
+ eval ($dyncount = 1) ! iteration number (usually 1)
19
+
20
+ eval ($dmso = "DMS" + encode($dyncount))
21
+
22
+ !--------------------------------------------------
23
+ ! read in the same box of dmso several times, and move it around
24
+ ! so as to cover all the space around the site of interest.
25
+ ! take into account box offset
26
+
27
+ show max (x) ((not resn dms) and not resn ANI and not resn DAN and not resn XAN or resn DUM or resn SHA)
28
+ evaluate ($xmax = $result)
29
+ show min (x) ((not resn DMS) and not resn ANI and not resn DAN and not resn XAN or resn DUM or resn SHA)
30
+ evaluate ($xmin = $result)
31
+
32
+ show max (y) ((not resn DMS) and not resn ANI and not resn DAN and not resn XAN or resn DUM or resn SHA)
33
+ evaluate ($ymax = $result)
34
+ show min (y) ((not resn DMS) and not resn ANI and not resn DAN and not resn XAN or resn DUM or resn SHA)
35
+ evaluate ($ymin = $result)
36
+
37
+ show max (z) ((not resn DMS) and not resn ANI and not resn DAN and not resn XAN or resn DUM or resn SHA)
38
+ evaluate ($zmax = $result)
39
+ show min (z) ((not resn DMS) and not resn ANI and not resn DAN and not resn XAN or resn DUM or resn SHA)
40
+ evaluate ($zmin = $result)
41
+
42
+
43
+ ! loop over several iterations of dmso filling and dynamics
44
+
45
+
46
+ !--------------------------------------------------
47
+ ! read in the same box of dmso several times, and move it around
48
+ ! so as to cover all the space around the site of interest.
49
+ ! take into account box offset
50
+
51
+
52
+ ! determine how many boxes are necessary in each dimension
53
+ eval ($xbox = int( ($xmax - $xmin + 2 * ($thickness + $dmso_diam)) / $boxlength + 0.5))
54
+ eval ($ybox = int( ($ymax - $ymin + 2 * ($thickness + $dmso_diam)) / $boxlength + 0.5))
55
+ eval ($zbox = int( ($zmax - $zmin + 2 * ($thickness + $dmso_diam)) / $boxlength + 0.5))
56
+
57
+ eval ($xmtran = $xmax + $thickness - $boxlength/2 + $dmso_diam)
58
+ eval ($ymtran = $ymax + $thickness - $boxlength/2 + $dmso_diam)
59
+ eval ($zmtran = $zmax + $thickness - $boxlength/2 + $dmso_diam)
60
+
61
+ eval ($xcount=0)
62
+ eval ($xtrans = $xmin - $thickness - $dmso_diam - $boxlength )
63
+ while ($xtrans < $xmtran) loop dms1
64
+ eval ($xcount=$xcount+1)
65
+ eval ($xtrans = $xtrans + $boxlength)
66
+
67
+ eval ($ycount=0)
68
+ eval ($ytrans = $ymin - $thickness - $dmso_diam - $boxlength )
69
+ while ($ytrans < $ymtran) loop dms2
70
+ eval ($ycount=$ycount+1)
71
+ eval ($ytrans = $ytrans + $boxlength)
72
+
73
+ eval ($zcount=0)
74
+ eval ($ztrans = $zmin - $thickness - $dmso_diam - $boxlength )
75
+ while ($ztrans < $zmtran) loop dms3
76
+ eval ($zcount=$zcount+1)
77
+ eval ($ztrans = $ztrans + $boxlength)
78
+
79
+ segment
80
+ name=" "
81
+ chain
82
+ coordinates @@TOPPAR:dmso.pdb
83
+ end
84
+ end
85
+ coor @@TOPPAR/dmso.pdb
86
+ do (segid=DMSO) (segid " ")
87
+ coor sele=(segid DMSO) translate vector = ($xtrans $ytrans $ztrans) end
88
+
89
+ ! all new dmso oxygens
90
+ ident (store1) (segid DMSO and name sd)
91
+ ! all new dmso oxygens close to a protein heavy atom
92
+ ident (store2) (store1 and (not (resn DMS or resn ANI or resn DAN or resn XAN or resn DUM or resn SHA or hydro)) around $pw_dist)
93
+ ! all new dmso oxygens close to old dmso oxygens
94
+ ident (store3) (store1 and (segid DMS# and not hydro) around $dmso_diam)
95
+ ! all new dmso oxygens further than thickness away from a protein heavy atom
96
+ ident (store4) (store1 and not (not (resn DMS or resn ANI or resn DAN or resn XAN or resn DUM or resn SHA or hydro)) around $thickness)
97
+ delete sele= (byres (store2 or store3 or store4)) end
98
+
99
+
100
+ ! give dmso unique segid name
101
+ eval ($segid= "W" + encode($xcount) + encode($ycount) + encode($zcount))
102
+ do (segid = $segid) (segid DMSO)
103
+
104
+ end loop dms3
105
+ end loop dms2
106
+ end loop dms1
107
+
108
+ ! now, give dmso a unique resid so that we get the segid to play around with
109
+ ident (store1) (all)
110
+ show min (store1) (segid w*)
111
+ do (store1 = store1 - $result + 1) (segid w*)
112
+ do (resid = encode(int(store1/3 -0.1) +1)) (segid w* and not segid DMS#)
113
+ do (segid = $dmso) (segid w* and not segid DMS#)
114
+
115
+ ! shave off any dmso that left
116
+ delete sele= (byres (name sd and not (not (resn DMS or resn ANI or resn DAN or resn XAN or resn DUM or resn SHA or hydro)) around $thickness)) end
117
+
118
+ {* write out initial coordinates just for testing *}
119
+ !evaluate ($filename=$output_pdb_filename - ".pdb" + "wini.pdb")
120
+ !write coordinates sele= (all) output =$filename end
121
+
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/generate_water.cns ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! generate_water.cns
2
+ ! Generate a water solvent layer around the molecule
3
+ !
4
+ ! ***********************************************************************
5
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
6
+ ! * Originally adapted from Aria 1.2 from Nilges and Linge, EMBL. *
7
+ ! * All rights reserved. *
8
+ ! * This code is part of the HADDOCK software and governed by its *
9
+ ! * license. Please see the LICENSE file that should have been included *
10
+ ! * as part of this package. *
11
+ ! ***********************************************************************
12
+ !
13
+
14
+ eval ($boxlength = 18.856) ! length of Brooks' water box
15
+ eval ($thickness = 8) ! maxi. initial water-protein distance (heavy atoms)
16
+ eval ($pw_dist = 2.4) ! mini. initial water-protein distance (heavy atoms)
17
+ eval ($water_diam = 2.4) ! diameter of water molecule
18
+ eval ($dyncount = 21) ! for water segid (max number of molecules + 1)
19
+
20
+ eval ($water = "WA" + encode($dyncount))
21
+
22
+ !--------------------------------------------------
23
+ ! read in the same box of water several times, and move it around
24
+ ! so as to cover all the space around the site of interest.
25
+ ! take into account box offset
26
+
27
+ show max (x) ((not (resn WAT or resn HOH or resn TIP*)) and not (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA))
28
+ evaluate ($xmax = $result)
29
+ show min (x) ((not (resn WAT or resn HOH or resn TIP*)) and not (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA))
30
+ evaluate ($xmin = $result)
31
+
32
+ show max (y) ((not (resn WAT or resn HOH or resn TIP*)) and not (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA))
33
+ evaluate ($ymax = $result)
34
+ show min (y) ((not (resn WAT or resn HOH or resn TIP*)) and not (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA))
35
+ evaluate ($ymin = $result)
36
+
37
+ show max (z) ((not (resn WAT or resn HOH or resn TIP*)) and not (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA))
38
+ evaluate ($zmax = $result)
39
+ show min (z) ((not (resn WAT or resn HOH or resn TIP*)) and not (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA))
40
+ evaluate ($zmin = $result)
41
+
42
+
43
+ ! loop over several iterations of water filling and dynamics
44
+
45
+ !--------------------------------------------------
46
+ ! read in the same box of water several times, and move it around
47
+ ! so as to cover all the space around the site of interest.
48
+ ! take into account box offset
49
+
50
+
51
+ ! determine how many boxes are necessary in each dimension
52
+ eval ($xbox = int( ($xmax - $xmin + 2 * ($thickness + $water_diam)) / $boxlength + 0.5))
53
+ eval ($ybox = int( ($ymax - $ymin + 2 * ($thickness + $water_diam)) / $boxlength + 0.5))
54
+ eval ($zbox = int( ($zmax - $zmin + 2 * ($thickness + $water_diam)) / $boxlength + 0.5))
55
+
56
+ eval ($xmtran = $xmax + $thickness - $boxlength/2 + $water_diam)
57
+ eval ($ymtran = $ymax + $thickness - $boxlength/2 + $water_diam)
58
+ eval ($zmtran = $zmax + $thickness - $boxlength/2 + $water_diam)
59
+
60
+ eval ($xcount=0)
61
+ eval ($xtrans = $xmin - $thickness - $water_diam - $boxlength/2 )
62
+ while ($xtrans < $xmtran) loop wat1
63
+ eval ($xcount=$xcount+1)
64
+ eval ($xtrans = $xtrans + $boxlength)
65
+
66
+ eval ($ycount=0)
67
+ eval ($ytrans = $ymin - $thickness - $water_diam - $boxlength/2 )
68
+ while ($ytrans < $ymtran) loop wat2
69
+ eval ($ycount=$ycount+1)
70
+ eval ($ytrans = $ytrans + $boxlength)
71
+
72
+ eval ($zcount=0)
73
+ eval ($ztrans = $zmin - $thickness - $water_diam - $boxlength/2 )
74
+ while ($ztrans < $zmtran) loop wat3
75
+ eval ($zcount=$zcount+1)
76
+ eval ($ztrans = $ztrans + $boxlength)
77
+ segment
78
+ name=" "
79
+ chain
80
+ coordinates @@TOPPAR:boxtyp20.pdb
81
+ end
82
+ end
83
+ coor @@TOPPAR:boxtyp20.pdb
84
+ do (segid=W000) (segid " ")
85
+ coor sele=(segid W000) translate vector = ($xtrans $ytrans $ztrans) end
86
+
87
+ ! all new water oxygens
88
+ ident (store1) (segid W000 and name OH2)
89
+ ! all new water oxygens close to a protein heavy atom
90
+ ident (store2) (store1 and (not (resn WAT or resn HOH or resn TIP*
91
+ or resn ANI or resn DAN or resn XAN or resn DUM or resn SHA or hydro)) around $pw_dist)
92
+ ! all new water oxygens close to old water oxygens
93
+ ident (store3) (store1 and (segid wat# and not hydro) around $water_diam)
94
+ ! all new water oxygens further than thickness away from a protein heavy atom
95
+ ident (store4) (store1 and not (not (resn WAT or resn HOH or resn TIP*
96
+ or resn ANI or resn DAN or resn XAN or resn DUM or resn SHA or hydro)) around $thickness)
97
+ delete sele= (byres (store2 or store3 or store4)) end
98
+
99
+ ! give waters unique segid name
100
+ eval ($segid= "W" + encode($xcount) + encode($ycount) + encode($zcount))
101
+ do (segid = $segid) (segid W000)
102
+
103
+ end loop wat3
104
+ end loop wat2
105
+ end loop wat1
106
+
107
+ ! now, give waters a unique resid so that we get the segid to play around with
108
+ ident (store1) (all)
109
+ show min (store1) (segid w*)
110
+ do (store1 = store1 - $result + 1) (segid w*)
111
+ do (resid = encode(int(store1/3 -0.1) +1)) (segid w* and not segid wat#)
112
+ do (segid = $water) (segid w* and not segid wat#)
113
+
114
+ ! shave off any waters that left
115
+ delete sele= (byres (name oh2 and segid W* and
116
+ not (not (resn WAT or resn HOH or resn TIP*
117
+ or resn ANI or resn DAN or resn XAN or resn DUM or resn SHA or hydro)) around $thickness)) end
118
+
119
+ {* write out initial coordinates just for testing *}
120
+ !evaluate ($filename=$output_pdb_filename - ".pdb" + "wini.pdb")
121
+ !write coordinates sele= (all) output =$filename end
122
+
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/mdref.cns ADDED
@@ -0,0 +1,616 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! mdref.cns
2
+ ! Perform an explitic solvent (water or dmso) refinement
3
+ !
4
+ ! ***********************************************************************
5
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
6
+ ! * This code is part of the HADDOCK software and governed by its *
7
+ ! * license. Please see the LICENSE file that should have been included *
8
+ ! * as part of this package. *
9
+ ! ***********************************************************************
10
+ !
11
+
12
+ if ( $log_level = "verbose" ) then
13
+ set message=all echo=on end
14
+ elseif ( $log_level = "normal" ) then
15
+ set message=normal echo=off end
16
+ else
17
+ set message=off echo=off end
18
+ end if
19
+
20
+ !==================================================================!
21
+ ! Initialisation of variables
22
+ !==================================================================!
23
+
24
+ evaluate ($saprotocol.timestep=$timestep)
25
+ evaluate ($saprotocol.fbeta=100)
26
+ evaluate ($saprotocol.mass=100)
27
+
28
+ evaluate ($ini_count =1)
29
+
30
+ evaluate ($data.ncomponents=$ncomponents)
31
+
32
+
33
+ ! non-bonded parameter set to use
34
+ evaluate ($toppar.par_nonbonded = "OPLSX")
35
+
36
+
37
+ ! dihedrals, DNA and distance restraints
38
+ evaluate ($Data.dnarest =$dnarest_on)
39
+ evaluate ($Data.flags.cdih =$dihedrals_on)
40
+ evaluate ($Data.cdih.on =$dihedrals_on)
41
+ evaluate ($Data.ssdihed =$ssdihed)
42
+ evaluate ($Data.error_dih =$error_dih)
43
+ evaluate ($data.dihedrals.on=$dihedrals_on)
44
+ evaluate ($data.dihedrals_scale=$dihedrals_scale)
45
+
46
+ ! planarity restraints
47
+ evaluate ($Data.flags.plan = false)
48
+
49
+ ! distance restraints
50
+ evaluate ($Data.flags.noe = true)
51
+ evaluate ($data.randremoval=$randremoval)
52
+ evaluate ($data.npart=$npart)
53
+
54
+ evaluate ($data.ambig_scale=$ambig_scale)
55
+ evaluate ($data.unambig_scale=$unambig_scale)
56
+ evaluate ($data.hbond_scale=$hbond_scale)
57
+
58
+ evaluate ($data.cmrest=$cmrest)
59
+ evaluate ($data.cmtight=$cmtight)
60
+ evaluate ($data.kcm=$kcm)
61
+ evaluate ($data.contactairs=$contactairs)
62
+ evaluate ($data.kcont=$kcont)
63
+ if ($data.contactairs eq true) then
64
+ evaluate ($data.randremoval = false)
65
+ end if
66
+
67
+ ! NCS restraints
68
+ evaluate ($data.kncs = $kncs)
69
+ evaluate ($Data.flags.ncs = $ncs_on)
70
+ evaluate ($data.nncs = $nncs)
71
+
72
+ ! Symmetry restraints
73
+ evaluate ($data.ksym = $ksym)
74
+ evaluate ($Data.flags.sym = $sym_on)
75
+ evaluate ($data.nc2sym = $nc2sym)
76
+ evaluate ($data.nc3sym = $nc3sym)
77
+ evaluate ($data.ns3sym = $ns3sym)
78
+ evaluate ($data.nc4sym = $nc4sym)
79
+ evaluate ($data.nc5sym = $nc5sym)
80
+ evaluate ($data.nc6sym = $nc6sym)
81
+
82
+ !Electrostatics:
83
+ evaluate ($Data.flags.dihed =$dihedflag)
84
+ evaluate ($Data.flags.elec =$elecflag)
85
+ evaluate ($Data.epsilon =$epsilon)
86
+ evaluate ($Data.dielec =$dielec)
87
+
88
+ !Interaction matrix:
89
+ evaluate ($nmol1=1)
90
+ while ($nmol1 <=$data.ncomponents) loop mol1
91
+ evaluate ($nmol2=$nmol1 + 1)
92
+ evaluate ($scale.int_$nmol1_$nmol1 =$int_$nmol1_$nmol1)
93
+ while ($nmol2 <=$data.ncomponents) loop mol2
94
+ evaluate ($scale.int_$nmol1_$nmol2 =$int_$nmol1_$nmol2)
95
+ evaluate ($scale.int_$nmol2_$nmol1 =$int_$nmol1_$nmol2)
96
+ evaluate ($nmol2=$nmol2 + 1)
97
+ end loop mol2
98
+ evaluate ($nmol1 = $nmol1 + 1)
99
+ end loop mol1
100
+
101
+
102
+ ! Unsupported restraints
103
+ evaluate ($Data.flags.em = false)
104
+ evaluate ($Data.flags.rg = false)
105
+ evaluate ($Data.flags.zres = false)
106
+ evaluate ($Data.flags.sani = false)
107
+ evaluate ($Data.flags.xrdc = false)
108
+ evaluate ($Data.flags.xpcs = false)
109
+ evaluate ($Data.flags.dani = false)
110
+ evaluate ($Data.flags.vean = false)
111
+
112
+ ! Other parameters
113
+ evaluate ($refine.keepwater = false)
114
+ evaluate ($refine.keepwater=$keepwater)
115
+ evaluate ($refine.solvent=$solvent)
116
+ evaluate ($refine.heatsteps=$waterheatsteps)
117
+ evaluate ($refine.steps=$watersteps)
118
+ evaluate ($refine.coolsteps=$watercoolsteps)
119
+
120
+ !==================================================================!
121
+
122
+ {* Read paramters and set various force field related variables *}
123
+
124
+ @MODULE:read_param.cns
125
+
126
+ parameter
127
+ bond (resn WAT ) (resn WAT ) 1000 TOKEN
128
+ angle (resn WAT ) (resn WAT ) (resn WAT ) 500 TOKEN
129
+ bond (resn HOH ) (resn HOH ) 1000 TOKEN
130
+ angle (resn HOH ) (resn HOH ) (resn HOH ) 500 TOKEN
131
+ bond (resn TIP*) (resn TIP*) 1000 TOKEN
132
+ angle (resn TIP*) (resn TIP*) (resn TIP*) 500 TOKEN
133
+ end
134
+
135
+ igroup
136
+ interaction (not (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA))
137
+ (not (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA)) weight * 1 end
138
+ interaction (resn ANI or resn DAN or resn XAN or resn DUM or resn DUM)
139
+ (resn ANI or resn DAN or resn XAN or resn DUM or resn DUM) weight * 1 vdw 0.0 elec 0.0 end
140
+ interaction (resn SHA) (not resn SHA) weight * 0 end
141
+ end
142
+
143
+ flag include bond angle impr vdw end
144
+
145
+ if ($Data.flags.dihed eq true) then
146
+ flag include dihed end
147
+ end if
148
+
149
+ if ($Data.flags.elec eq true) then
150
+ flag include elec end
151
+ if ($Data.dielec eq "rdie") then
152
+ parameter nbonds eps=$Data.epsilon rdie shift switch end end
153
+ ! shift statement needed first to activate switch (CNS bug?)
154
+ else
155
+ parameter nbonds eps=$Data.epsilon cdie end end
156
+ end if
157
+ parameter nbonds ? end end
158
+ else
159
+ evaluate ($elec=0.0)
160
+ flag exclude elec end
161
+ end if
162
+
163
+ coor copy end
164
+
165
+ topology @@TOPPAR:solvent-allhdg5-4.top end
166
+
167
+ if ($refine.solvent = "water") then
168
+ do (segid = "PROT") (segid " ")
169
+ @MODULE:generate_water.cns
170
+ do (segid = " ") (segid "PROT")
171
+ elseif ($refine.solvent = "dmso") then
172
+ do (segid = "PROT") (segid " ")
173
+ @MODULE:generate_dmso.cns
174
+ do (segid = " ") (segid "PROT")
175
+ end if
176
+
177
+
178
+ {* Read the distance restraints ================================ *}
179
+ set seed $seed end
180
+ set message=normal echo=on end
181
+ inline @MODULE:read_data.cns
182
+
183
+ ! random removal of restaints
184
+ if ($Data.randremoval eq true) then
185
+ noe cv $npart ? end
186
+ end if
187
+
188
+ if ( $log_level = "verbose" ) then
189
+ set message=all echo=on end
190
+ elseif ( $log_level = "normal" ) then
191
+ set message=normal echo=off end
192
+ else
193
+ set message=off echo=off end
194
+ end if
195
+
196
+
197
+ evaluate ($numnoe = 0)
198
+
199
+ !Make sure that at least as many distance restraints are successfully
200
+ !read as the number of partitions for cross-validation
201
+ evaluate ($numnoe = 999)
202
+ noe ? end
203
+ if ($NUMNOE = 0) then
204
+ evaluate ($Data.npart = 1)
205
+ evaluate ($Data.randremoval = FALSE)
206
+ end if
207
+
208
+ if ($NUMNOE lt $Data.npart) then
209
+ noe part=1 end
210
+ evaluate ($Data.npart = 1)
211
+ evaluate ($Data.randremoval = FALSE)
212
+ end if
213
+
214
+ noe
215
+ averaging * sum
216
+ potential * soft
217
+ scale * 1.0
218
+ scale ambi $ambig_scale
219
+ scale dist $unambig_scale
220
+ scale hbon $hbond_scale
221
+ sqconstant * 1.0
222
+ sqexponent * 2
223
+ soexponent * 1
224
+ rswitch * 0.5
225
+ sqoffset * 0.0
226
+ asymptote * 0.1
227
+ msoexponent * 1
228
+ masymptote * -0.1
229
+ mrswitch * 0.5
230
+ end
231
+
232
+ {* set the energy flags ======================================================== *}
233
+
234
+ inline @MODULE:setflags.cns
235
+
236
+
237
+ {* Check for other restraints ================================================== *}
238
+
239
+ @MODULE:symmultimer.cns
240
+
241
+ if ($Data.cmrest eq true ) then
242
+ @MODULE:cm-restraints.cns
243
+ end if
244
+
245
+ if ($Data.contactairs eq true ) then
246
+ @MODULE:contactairs.cns
247
+ end if
248
+
249
+ if ($Data.dnarest eq true ) then
250
+ @MODULE:dna-rna_restraints.cns
251
+ end if
252
+
253
+ if ($Data.ssdihed eq "all" ) then
254
+ inline @MODULE:protein-ss-restraints-all.cns
255
+ end if
256
+ if ($Data.ssdihed eq "alpha" ) then
257
+ inline @MODULE:protein-ss-restraints-alpha.cns
258
+ end if
259
+ if ($Data.ssdihed eq "alphabeta" ) then
260
+ inline @MODULE:protein-ss-restraints-alpha-beta.cns
261
+ end if
262
+
263
+
264
+ {* Check for the presence of ions and add distance restraints / covalent bond == *}
265
+
266
+ @MODULE:restrain-ions.cns
267
+
268
+
269
+ {* Energy minimisation of solvent first ============================================= *}
270
+
271
+ ! fix everything except the solvent for initial minimization
272
+ fix sele = (not (resn WAT or resn HOH or resn TIP* or resn DMS)) end
273
+
274
+ if ($nemsteps > 0) then
275
+ minimize powell nstep=$nemsteps drop=100 end
276
+ end if
277
+
278
+
279
+ {* Energy minimisation with harmonic restraints on the molecules ==================== *}
280
+
281
+ fix sele = (not all) end
282
+
283
+ ! fix the shape
284
+ fix sele = (resn SHA) end
285
+
286
+ ! fix rigid molecules
287
+ evaluate($nchain1 = 0)
288
+ while ($nchain1 < $data.ncomponents) loop nloop1
289
+ evaluate($nchain1 = $nchain1 + 1)
290
+ evaluate($fcounter=0)
291
+ if ($nseg$nchain1 = 0) then
292
+ display NO FLEXIBLE SIDE-CHAINS SEGMENTS for molecule $nchain1
293
+ display FIXING IT
294
+ fix sele = (segid $prot_segid_$nchain1 and not name H*) end
295
+ end if
296
+ end loop nloop1
297
+
298
+ do (refx=x) (all)
299
+ do (refy=y) (all)
300
+ do (refz=z) (all)
301
+
302
+ ! Define harmonic restraints on heavy atoms of molecules
303
+ restraints harmonic
304
+ exponent = 2
305
+ end
306
+ do (harm = 0) (all)
307
+ do (harm = 5) (not name h* and not (resn WAT or resn HOH or resn TIP* or resn DMS))
308
+
309
+ igroup
310
+ interaction (not (resn ANI or resn DAN or resn XAN or resn SHA)) (not (resn ANI or resn DAN or resn XAN or resn SHA)) weight * 1 end
311
+ interaction (resn ANI or resn DAN or resn XAN)
312
+ (resn ANI or resn DAN or resn XAN) weight * 1 vdw 0.0 elec 0.0 end
313
+ end
314
+
315
+ if ($nemsteps > 0) then
316
+ minimize powell nstep=$nemsteps drop=10 end
317
+ end if
318
+
319
+
320
+ {* MD refinement with harmonic restraints on the molecules ==================== *}
321
+
322
+ do (refx=x) (all)
323
+ do (refy=y) (all)
324
+ do (refz=z) (all)
325
+
326
+ ! Define harmonic restraints on heavy atoms of molecules
327
+ do (harm = 0) (all)
328
+ do (harm = 5) (not name h* and not resn ANI and not resn DAN and not resn XAN and not (resn WAT or resn HOH or resn TIP3))
329
+ do (harm = 20) (resn ANI and name OO)
330
+ do (harm = 20) (resn DAN and name OO)
331
+
332
+ ! Remove harmonic restraints on interface side-chains
333
+ @MODULE:flex_segment_side.cns
334
+ eval ($nchain1 = 0)
335
+ while ($nchain1 < $data.ncomponents) loop nloop1
336
+ eval ($nchain1=$nchain1+1)
337
+ do (harm = 0) (attribute store5 = $nchain1 and
338
+ not ( name CA or name BB or name C or name N or name P or name C# or name C## ))
339
+ end loop nloop1
340
+
341
+
342
+ ! Start MD refinement
343
+
344
+ do (mass =$Saprotocol.mass) (all)
345
+ do (mass=1000) (resn ANI or resn DAN or resn XAN)
346
+ do (fbeta = 0) (all)
347
+ do (fbeta = $Saprotocol.fbeta {1/ps} ) ( all )
348
+
349
+ ! heat to 300 K
350
+ for $bath in (100 200 300) loop heat
351
+
352
+ do (vx=maxwell($bath)) (all)
353
+ do (vy=maxwell($bath)) (all)
354
+ do (vz=maxwell($bath)) (all)
355
+
356
+ dynamics cartesian
357
+ nstep=$refine.heatsteps timest=0.002{ps}
358
+ temperature=$bath tcoupling = true
359
+ nprint=50
360
+ end
361
+
362
+ end loop heat
363
+
364
+ do (refx=x) (all)
365
+ do (refy=y) (all)
366
+ do (refz=z) (all)
367
+
368
+ !define weaker harmonic restraints on heavy atoms of molecules
369
+ do (harm = 0) (all)
370
+ do (harm = 1) (not name h* and not resn ANI and not resn DAN and not resn XAN and not (resn WAT or resn HOH or resn TIP3))
371
+
372
+ !define flexible segments and remove harmonic restraints on backbone + side-chains of interface
373
+ @MODULE:flex_segment_back.cns
374
+ eval ($nchain1 = 0)
375
+ while ($nchain1 < $data.ncomponents) loop nloop1
376
+ eval ($nchain1=$nchain1+1)
377
+ do (harm = 0) (attribute store5 = $nchain1)
378
+ end loop nloop1
379
+ do (harm = 20) (resn ANI and name OO)
380
+ do (harm = 20) (resn DAN and name OO)
381
+
382
+ ! MD refinement
383
+ dynamics cartesian
384
+ nstep=$refine.steps timest=0.002{ps}
385
+ temperature=$bath tcoupling = true
386
+ nprint=50
387
+ end
388
+
389
+ do (refx=x) (all)
390
+ do (refy=y) (all)
391
+ do (refz=z) (all)
392
+
393
+ ! Define weak harmonic restraints on backbone only of molecules
394
+ do (harm = 0) (all)
395
+ do (harm = 1) (name CA or name BB or name C or name N or name P or name C# or name C##)
396
+ ! Remove harmonic restraints on interface side-chains
397
+ @MODULE:flex_segment_side.cns
398
+ eval ($nchain1 = 0)
399
+ while ($nchain1 < $data.ncomponents) loop nloop1
400
+ eval ($nchain1=$nchain1+1)
401
+ do (harm = 0) (attribute store5 = $nchain1)
402
+ end loop nloop1
403
+ do (harm = 20) (resn ANI and name OO)
404
+ do (harm = 20) (resn DAN and name OO)
405
+
406
+
407
+ ! cooling phase
408
+ for $bath in (300 200 100) loop cool
409
+
410
+ dynamics cartesian
411
+ nstep=$refine.coolsteps timest=0.002{ps}
412
+ temperature=$bath tcoupling = true
413
+ nprint=50
414
+ end
415
+
416
+ end loop cool
417
+
418
+
419
+ ! final minimization without harmonic restraints
420
+
421
+ flag excl harm end
422
+
423
+ if ($nemsteps > 0) then
424
+ minimize powell nstep=$nemsteps drop=10 end
425
+ end if
426
+
427
+
428
+ {* ======================= calculate free molecules internal energy *}
429
+
430
+ igroup
431
+ interaction (not (resn ANI or resn DAN or resn XAN or resn SHA or resn WAT or resn HOH or resn TIP* or resn DUM))
432
+ (not (resn ANI or resn DAN or resn XAN or resn SHA or resn WAT or resn HOH or resn TIP* or resn DUM)) weight * 1 end
433
+ end
434
+
435
+ do (refx=x) (all)
436
+ do (refy=y) (all)
437
+ do (refz=z) (all)
438
+
439
+ fix sele=(resn ANI or resn DAN or resn XAN or resn SHA or resn WAT or resn HOH or resn TIP* or resn DMS) end
440
+
441
+ flag excl noe dani sani vean xrdc xpcs coll cdih zhar end
442
+ flag include bond angle dihe impr vdw end
443
+
444
+ evaluate ($elec = 0.0)
445
+ evaluate ($eintfree = 0.0)
446
+ if ($Data.flags.elec eq true) then
447
+ flag include elec end
448
+ end if
449
+
450
+ if ($Data.dielec eq "rdie") then
451
+ parameter nbonds eps=$Data.epsilon rdie shift switch end end
452
+ ! shift statement needed first to activate switch (CNS bug?)
453
+ else
454
+ parameter nbonds eps=$Data.epsilon cdie end end
455
+ end if
456
+ parameter nbonds ? end end
457
+ inline @MODULE:calc_free-ene.cns
458
+
459
+ fix sele=(not all) end
460
+
461
+ do (x = refx) (all)
462
+ do (y = refy) (all)
463
+ do (z = refz) (all)
464
+
465
+
466
+ {* ===================== calculate complex internal energy *}
467
+
468
+ evaluate ($kinter = 1.0)
469
+ flag include bond angle dihe impr vdw end
470
+ energy end
471
+
472
+ @MODULE:scale_intra_only.cns
473
+
474
+ evaluate ($elec = 0.0)
475
+ evaluate ($eintcplx = 0.0)
476
+ if ($Data.flags.elec eq true) then
477
+ flag include elec end
478
+ end if
479
+
480
+ energy end
481
+
482
+ evaluate ($eintcplx = $bond + $angl + $impr + $dihe + $vdw + $elec)
483
+ evaluate ($ebond = $bond)
484
+ evaluate ($eangl= $angl)
485
+ evaluate ($eimpr= $impr)
486
+ evaluate ($edihe= $dihe)
487
+
488
+ evaluate ($result=0)
489
+ print thres=0.05 bonds
490
+ evaluate ($rms_bonds=$result)
491
+ evaluate ($result=0)
492
+ print thres=5. angles
493
+ evaluate ($rms_angles=$result)
494
+ evaluate ($result=0)
495
+ print thres=5. impropers
496
+ evaluate ($rms_impropers=$result)
497
+ evaluate ($result=0)
498
+ print thres=30. dihedrals
499
+ evaluate ($rms_dihedrals=$result)
500
+
501
+
502
+ {* ===================== calculate final energies and write structure *}
503
+ evaluate ($cdih=0.0)
504
+ flag incl noe cdih end
505
+ if ($Data.ncomponents > 1) then
506
+ evaluate ($kinter = 1.0)
507
+ @MODULE:scale_inter_final.cns
508
+ else
509
+ @MODULE:scale_intra_only.cns
510
+ end if
511
+
512
+ noe
513
+ scale dist $Data.unambig_scale
514
+ scale ambi $Data.ambig_scale
515
+ scale hbon $Data.hbond_scale
516
+ scale symm 0.0
517
+ scale cont 0.0
518
+ end
519
+ energy end
520
+ evaluate ($eair= $noe)
521
+
522
+ evaluate ($esym = 0.0)
523
+ evaluate ($ncs = 0.0)
524
+ evaluate ($zhar = 0.0)
525
+ evaluate ($rms_test_noe = 0.0)
526
+ evaluate ($violations_test_noe = 0)
527
+ if ($Data.flags.sym eq true) then
528
+ ! calculatee first the symmetry energy
529
+ noe reset nres= 1200000 end
530
+ @MODULE:symmultimer.cns
531
+ noe
532
+ scale symm $Data.ksym
533
+ end
534
+ energy end
535
+ evaluate ($esym = $noe)
536
+ noe reset end
537
+ set seed=$seed end
538
+ !read back all the distance restraints:
539
+ @@MODULE:read_noes.cns
540
+ !random removal of restaints
541
+ if ($Data.randremoval eq true) then
542
+ noe cv $npart ? end
543
+ end if
544
+ noe
545
+ scale dist $Data.unambig_scale
546
+ scale ambi $Data.ambig_scale
547
+ scale hbon $Data.hbond_scale
548
+ end
549
+ print threshold=0.3 noe
550
+ evaluate ($rms_noe=$result)
551
+ evaluate ($violations_noe=$violations)
552
+ if ($Data.randremoval eq true) then
553
+ evaluate ($rms_test_noe=$test_rms)
554
+ evaluate ($violations_test_noe=$test_violations)
555
+ end if
556
+ else
557
+ print threshold=0.3 noe
558
+ evaluate ($rms_noe=$result)
559
+ evaluate ($violations_noe=$violations)
560
+ if ($Data.randremoval eq true) then
561
+ evaluate ($rms_test_noe=$test_rms)
562
+ evaluate ($violations_test_noe=$test_violations)
563
+ end if
564
+ end if
565
+
566
+ if ($Data.dnarest eq true ) then
567
+ @MODULE:dna-rna_restraints.cns
568
+ end if
569
+
570
+ energy end
571
+ evaluate ($etot = $ener - $noe)
572
+ evaluate ($noe = $eair)
573
+ evaluate ($etot = $etot + $noe)
574
+
575
+ inline @MODULE:print_coorheader.cns
576
+
577
+
578
+ {* determine whether the final models should be reoriented along their principal *}
579
+ {* axes before writing to file ================================================= *}
580
+ eval($reorient = true)
581
+ evaluate ($ncount = 0)
582
+ while ($ncount < $data.ncomponents) loop orientmol
583
+ evaluate ($ncount = $ncount + 1)
584
+ eval($watersegname_$ncount="WA" + encode($ncount))
585
+ if ($mol_fix_origin_$ncount eq true) then
586
+ eval($reorient = false)
587
+ end if
588
+ end loop orientmol
589
+
590
+ if ($reorient = true) then
591
+ coor sele= (not name H* and not resn ANI and not resn XAN and not resn DAN) orient end
592
+ end if
593
+
594
+ inline @MODULE:check_coordinates.cns
595
+
596
+ if ($failure eq true) then
597
+ evaluate ($failfile = $output_pdb_filename - ".pdb" + ".fail")
598
+ set display=$failfile end
599
+ display "MAX/MIN possible coordinates exceeded - stopping"
600
+ close $failfile end
601
+ stop
602
+ else
603
+ write coordinates sele=(not (resn WA* or resn HOH or resn TIP* or resn DMS)) format=pdbo output=$output_pdb_filename end
604
+ end if
605
+
606
+ if ($refine.keepwater eq true) then
607
+ evaluate ($filename= $output_pdb_filename - ".pdb" + "_solvent.pdb")
608
+ write coordinates sele=(all) format=pdbo output=$filename end
609
+ end if
610
+
611
+ set message=normal echo=on end
612
+
613
+ display OUTPUT: $output_pdb_filename
614
+
615
+ stop
616
+
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/print_coorheader.cns ADDED
@@ -0,0 +1,308 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! print_coorheader.cns
2
+ ! Generate the coordinate header (REMARKS)
3
+ !
4
+ ! ***********************************************************************
5
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
6
+ ! * Originally adapted from Aria 1.2 from Nilges and Linge, EMBL. *
7
+ ! * All rights reserved. *
8
+ ! * This code is part of the HADDOCK software and governed by its *
9
+ ! * license. Please see the LICENSE file that should have been included *
10
+ ! * as part of this package. *
11
+ ! ***********************************************************************
12
+ !
13
+ if ($Data.flags.dihed eq false) then evaluate ($dihe = 0) end if
14
+ if ($Data.flags.sani eq false) then evaluate ($sani = 0) end if
15
+ if ($Data.flags.xrdc eq false) then evaluate ($xrdc = 0) end if
16
+ if ($Data.flags.xpcs eq false) then evaluate ($xpcs = 0) end if
17
+ if ($Data.flags.dani eq false) then evaluate ($dani = 0) end if
18
+ if ($Data.flags.vean eq false) then evaluate ($vean = 0) end if
19
+ if ($Data.flags.cdih eq false) then evaluate ($cdih = 0) end if
20
+ if ($Data.flags.noe eq false) then evaluate ($noe = 0) end if
21
+ if ($Data.flags.rg eq false) then evaluate ($coll = 0) end if
22
+ if ($Data.flags.zres eq false) then evaluate ($zhar = 0) end if
23
+ if ($Data.flags.em eq false) then evaluate ($lcc = 0) end if
24
+
25
+ evaluate($enerall=$etot)
26
+ evaluate($bondall=$ebond)
27
+ evaluate($anglall=$eangl)
28
+ evaluate($imprall=$eimpr)
29
+ evaluate($diheall=$edihe)
30
+ evaluate($vdwall=$vdw)
31
+ evaluate($elecall=$elec)
32
+ evaluate($noeall=$noe)
33
+ evaluate($rgall=$coll)
34
+ evaluate($zresall=$zhar)
35
+ evaluate($cdihall=$cdih)
36
+ evaluate($coupall=0)
37
+ evaluate($saniall=$sani+$xrdc)
38
+ evaluate($veanall=$vean)
39
+ evaluate($xpcsall=$xpcs)
40
+ evaluate($daniall=$dani)
41
+
42
+ if ($Data.flags.sym eq true) then
43
+ evaluate ($result=0)
44
+ evaluate ($violations=0)
45
+ print threshold=0.3 noe
46
+ evaluate ($rms_noe=$result)
47
+ evaluate ($violations_noe=$violations)
48
+ end if
49
+
50
+ if ($Data.randremoval eq false) then
51
+ evaluate ($violations_test_noe= 0)
52
+ evaluate ($rms_test_noe = 0)
53
+ evaluate ($npart = 0)
54
+ end if
55
+
56
+ evaluate ($result=0)
57
+ evaluate ($violations=0)
58
+ print threshold=5. cdih
59
+ evaluate ($rms_cdih=$result)
60
+ evaluate ($violations_cdih=$violations)
61
+ evaluate ($result=0)
62
+ evaluate ($violations=0)
63
+ evaluate ($rms_coup = 0)
64
+ evaluate ($violations_coup = 0)
65
+
66
+ evaluate( $rms_sani = 0)
67
+ evaluate( $violations_sani = 0)
68
+ if ($Data.flags.sani eq TRUE) then
69
+ sani print threshold = 0.20 class rd* end
70
+ evaluate( $rms_sani = $result)
71
+ evaluate( $violations_sani = $violations)
72
+ end if
73
+
74
+ evaluate( $rms_xrdc = 0)
75
+ evaluate( $violations_xrdc = 0)
76
+ if ($Data.flags.xrdc eq TRUE) then
77
+ xrdc print threshold = 0.2 class xr* end
78
+ evaluate( $rms_xrdc = $result)
79
+ evaluate( $violations_xrdc = $violations)
80
+ end if
81
+
82
+ evaluate( $violations_sani = $violations_sani + $violations_xrdc)
83
+ evaluate( $rms_sani = $rms_sani + $rms_xrdc)
84
+
85
+ evaluate( $rms_xpcs = 0)
86
+ evaluate( $violations_xpcs = 0)
87
+ if ($Data.flags.xpcs eq TRUE) then
88
+ xpcs print threshold = 0.2 class pc* end
89
+ evaluate( $rms_xpcs = $result)
90
+ evaluate( $violations_xpcs = $violations)
91
+ end if
92
+
93
+ evaluate( $rms_vean = 0)
94
+ evaluate( $violations_vean = 0)
95
+ if ($Data.flags.vean eq TRUE) then
96
+ vean print threshold = 5.00 class ve* end
97
+ evaluate( $rms_vean = $result)
98
+ evaluate( $violations_vean = $violations)
99
+ end if
100
+
101
+ evaluate( $rms_dani = 0)
102
+ evaluate( $violations_dani = 0)
103
+ if ($Data.flags.dani eq TRUE) then
104
+ dani print threshold = 0.20 class da* end
105
+ evaluate( $rms_dani = $result)
106
+ evaluate( $violations_dani = $violations)
107
+ end if
108
+
109
+ {====>} {* define ASA-based solvation parameters *}
110
+ inline @MODULE:def_solv_param.cns
111
+
112
+ {====>} {* buried surface area and desolvation*}
113
+ evaluate ($nchain1 = 0)
114
+ evaluate ($saafree = 0)
115
+ evaluate ($esolfree = 0)
116
+ while ($nchain1 < $data.ncomponents) loop nloop1
117
+ evaluate ($nchain1 = $nchain1 + 1)
118
+ {====>} {* buried surface area and desolvation*}
119
+ do (rmsd = 0) (all)
120
+ surface mode=access accu=0.075 rh2o=1.4 sele=(segid $prot_segid_$nchain1 and not (resn WAT or resn HOH or resn TIP* or resn DMS or resn SHA)) end
121
+ show sum (rmsd) (segid $prot_segid_$nchain1 and not (resn WAT or resn HOH or resn TIP* or resn DMS or resn SHA))
122
+ evaluate ($saafree = $saafree + $result)
123
+ do (store2 = rmsd * store1) (segid $prot_segid_$nchain1 and not (resn WAT or resn HOH or resn TIP* or resn DMS or resn SHA))
124
+ show sum (store2) (segid $prot_segid_$nchain1 and not (resn WAT or resn HOH or resn TIP* or resn DMS or resn SHA))
125
+ evaluate ($esolfree = $esolfree + $result)
126
+ end loop nloop1
127
+
128
+ do (rmsd = 0) (all)
129
+ do (store2 = 0) (all)
130
+ surface mode=access accu=0.075 rh2o=1.4 sele=(not (resn WAT or resn HOH or resn TIP* or resn DMS or resn SHA)) end
131
+ show sum (rmsd) (not ((resn WAT or resn HOH or resn TIP*) or resn DMS or resn SHA))
132
+ evaluate ($satot = $result)
133
+ do (store2 = rmsd * store1) (not (resn WAT or resn HOH or resn TIP* or resn DMS or resn SHA))
134
+ show sum (store2) (not (resn WAT or resn HOH or resn TIP* or resn DMS or resn SHA))
135
+ evaluate ($esolcplx = $result)
136
+ evaluate ($saburied = $saafree - $satot)
137
+ if ($saburied < 0) then
138
+ evaluate ($saburied = -999999)
139
+ end if
140
+
141
+ evaluate ($edesolv = $esolcplx - $esolfree)
142
+
143
+ evaluate ($dhbinding = $edesolv + $eintcplx - $eintfree + $elecall + $vdwall)
144
+
145
+ evaluate ($nshape = 0)
146
+ evaluate ($ncount = 0)
147
+ while ($ncount < $data.ncomponents) loop shape
148
+ evaluate ($ncount = $ncount + 1)
149
+ if ($mol_shape_$ncount eq true) then
150
+ evaluate ($nshape = $nshape + 1)
151
+ end if
152
+ end loop shape
153
+
154
+ evaluate ($nonshape = $Data.ncomponents - $nshape)
155
+
156
+ if ($nonshape = 1) then
157
+ evaluate ($saburied = 0)
158
+ evaluate ($edesolv = 0)
159
+ evaluate ($dhbinding = 0)
160
+ evaluate ($eintfree = $eintcplx)
161
+ end if
162
+
163
+ if ($Data.flags.sym eq true) then
164
+ evaluate ($enerall = $enerall + $esym)
165
+ end if
166
+ if ($Data.flags.ncs eq true) then
167
+ evaluate ($enerall = $enerall + $ncs)
168
+ end if
169
+
170
+ evaluate ($procwat = false)
171
+ if ($refine.keepwater eq true) then
172
+ evaluate ($procwat = true)
173
+ end if
174
+
175
+ if ($procwat eq true) then
176
+ ident (store3) (not all)
177
+ flag exclude * include vdw elec end
178
+
179
+ eval($nchain1 = 0)
180
+
181
+ while ($nchain1 < $data.ncomponents) loop nloop1
182
+ eval($nchain1 = $nchain1 + 1)
183
+
184
+ igroup
185
+ interaction (segid $prot_segid_$nchain1) ((resn WAT or resn HOH or resn TIP* or resn DMS) and not store3) weight * 1.0 end
186
+ interaction (not segid $prot_segid_$nchain1) (resn WAT or resn HOH or resn TIP* or resn DMS) weight * 0.0 end
187
+ interaction (segid $prot_segid_$nchain1) (not ((resn WAT or resn HOH or resn TIP* or resn DMS) and store3)) weight * 0.0 end
188
+ end
189
+ energy end
190
+ evaluate ($ener_water_$nchain1 = $ener)
191
+ evaluate ($enerall = $enerall + $ener)
192
+ evaluate ($vdw_water_$nchain1 = $vdw)
193
+ evaluate ($elec_water_$nchain1 = $elec)
194
+
195
+ end loop nloop1
196
+ if ($data.ncomponents > 1) then
197
+ eval($nchain1 = $data.ncomponents)
198
+ while ($nchain1 < $data.ncomponents) loop nloop1
199
+ eval($nchain1 = $nchain1 + 1)
200
+ evaluate ($ener_water_$nchain1 = 0.0)
201
+ evaluate ($vdw_water_$nchain1 = 0.0)
202
+ evaluate ($elec_water_$nchain1 = 0.0)
203
+ end loop nloop1
204
+ end if
205
+
206
+ eval($nchain1 = 0)
207
+
208
+ igroup
209
+ while ($nchain1 < $data.ncomponents) loop nloop2
210
+ eval($nchain1 = $nchain1 + 1)
211
+ interaction (segid $prot_segid_$nchain1) (all) weight * 0.0 end
212
+ end loop nloop2
213
+ interaction ((resn WAT or resn HOH or resn TIP* or resn DMS) and not store3)
214
+ ((resn WAT or resn HOH or resn TIP* or resn DMS) and not store3) weight * 1.0 end
215
+ interaction (store3) (store3) weight * 0.0 end
216
+ interaction (resn SHA) (not resn SHA) weight * 0.0 end
217
+ interaction (resn SHA) (resn SHA) weight * 0.0 end
218
+ end
219
+ energy end
220
+ evaluate ($ener_water_water = $ener)
221
+ evaluate ($enerall = $enerall + $ener)
222
+ evaluate ($vdw_water_water = $vdw)
223
+ evaluate ($elec_water_water = $elec)
224
+ else
225
+ eval($nchain1 = 0)
226
+
227
+ while ($nchain1 < $data.ncomponents ) loop nloop1
228
+ eval($nchain1 = $nchain1 + 1)
229
+ evaluate ($ener_water_$nchain1 = 0.0)
230
+ evaluate ($vdw_water_$nchain1 = 0.0)
231
+ evaluate ($elec_water_$nchain1 = 0.0)
232
+ end loop nloop1
233
+ evaluate ($ener_water_water = 0.0)
234
+ evaluate ($vdw_water_water = 0.0)
235
+ evaluate ($elec_water_water = 0.0)
236
+ end if
237
+
238
+ ! calculate the HADDOCK score
239
+ evaluate ($hscore = $w_vdw * $vdwall)
240
+ evaluate ($hscore = $hscore + $w_elec * $elecall)
241
+ evaluate ($hscore = $hscore + $w_air * $noeall)
242
+ evaluate ($hscore = $hscore + $w_rg * $rgall)
243
+ evaluate ($hscore = $hscore + $w_cdih * $cdihall)
244
+ evaluate ($hscore = $hscore + $w_sani * $saniall)
245
+ evaluate ($hscore = $hscore + $w_xpcs * $xpcsall)
246
+ evaluate ($hscore = $hscore + $w_dani * $daniall)
247
+ evaluate ($hscore = $hscore + $w_vean * $veanall)
248
+ evaluate ($hscore = $hscore + $w_sym * $esym)
249
+ evaluate ($hscore = $hscore + $w_bsa * $saburied)
250
+ evaluate ($hscore = $hscore + $w_desolv * $edesolv)
251
+ evaluate ($hscore = $hscore + $w_lcc * $lcc)
252
+
253
+ set message=on echo=on end
254
+ set remarks=reset end
255
+ set remarks=accumulate end
256
+ remarks ===============================================================
257
+ remarks HADDOCK stats for $output_pdb_filename
258
+ remarks ===============================================================
259
+ remarks HADDOCK score: $hscore
260
+ remarks ===============================================================
261
+
262
+ !list input molecules
263
+ evaluate ($nmol=1)
264
+ while ($nmol <=$data.ncomponents) loop mol
265
+ if ( $exist_input_pdb_filename_$nmol = true) then
266
+ remarks initial structure $nmol - $input_pdb_filename_$nmol
267
+ end if
268
+ evaluate ($nmol = $nmol + 1)
269
+ end loop mol
270
+
271
+ remarks ===============================================================
272
+ remarks total,bonds,angles,improper,dihe,vdw,elec,air,cdih,coup,rdcs,vean,dani,xpcs,rg
273
+ remarks energies: $enerall, $bondall, $anglall, $imprall, $diheall, $vdwall, $elecall, $noeall, $cdihall, $coupall, $saniall, $veanall, $daniall, $xpcsall, $rgall
274
+ remarks ===============================================================
275
+ remarks bonds,angles,impropers,dihe,air,cdih,coup,rdcs,vean,dani,xpcs
276
+ remarks rms-dev.: $rms_bonds,$rms_angles,$rms_impropers,$rms_dihedrals,$rms_noe,$rms_cdih,$rms_coup, $rms_sani, $rms_vean, $rms_dani, $rms_xpcs
277
+ remarks ===============================================================
278
+ remarks air,cdih,coup,rdcs,vean,dani,xpcs
279
+ remarks >0.3,>5,>1,>0,>5,>0.2,>0.2
280
+ remarks violations.: $violations_noe, $violations_cdih, $violations_coup, $violations_sani, $violations_vean, $violations_dani, $violations_xpcs
281
+ remarks ===============================================================
282
+ remarks CVpartition#,violations,rms
283
+ remarks AIRs cross-validation: $npart, $violations_test_noe, $rms_test_noe
284
+ remarks ===============================================================
285
+ remarks NCS energy: $ncs
286
+ remarks ===============================================================
287
+ remarks Symmetry energy: $esym
288
+ remarks ===============================================================
289
+ remarks Membrane restraining energy: $zresall
290
+ remarks ===============================================================
291
+ remarks Local cross-correlation: $lcc[f7.4]
292
+ remarks ===============================================================
293
+ remarks Desolvation energy: $edesolv
294
+ remarks Internal energy free molecules: $eintfree
295
+ remarks Internal energy complex: $eintcplx
296
+ remarks Binding energy: $dhbinding
297
+ remarks ===============================================================
298
+ remarks buried surface area: $saburied
299
+ remarks ===============================================================
300
+ set remark accumulate end
301
+ evaluate($ncount = 0)
302
+ while ($ncount < $data.ncomponents) loop waterremark
303
+ evaluate ($ncount = $ncount +1)
304
+ remarks water - chain_$ncount: $ener_water_$ncount $vdw_water_$ncount $elec_water_$ncount
305
+ end loop waterremark
306
+ remarks ===============================================================
307
+ remarks water - water: $ener_water_water $vdw_water_water $elec_water_water
308
+ remarks ===============================================================
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/protein-ss-restraints-all.cns ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! protein-ss-restraints-all.def
2
+ ! Define automatically secondary stucture dihedral angle restraints for all residues
3
+ !
4
+ ! ***********************************************************************
5
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
6
+ ! * All rights reserved. *
7
+ ! * This code is part of the HADDOCK software and governed by its *
8
+ ! * license. Please see the LICENSE file that should have been included *
9
+ ! * as part of this package. *
10
+ ! ***********************************************************************
11
+ !
12
+ {+ file: protein-ss-restraints.def +}
13
+ {+ description: Creates dihedral angle restraints to maintain conformation of the protein backbone +}
14
+ {+ authors: Axel T. Brunger, and Paul D. Adams, +}
15
+ {+ modified by Alexandre Bonvin for HADDOCK use +}
16
+
17
+ {=========================================================================================================}
18
+ { things below this line do not normally need to be changed }
19
+ {=========================================================================================================}
20
+
21
+ {- Dihedral restraints for the protein backbone -}
22
+ restraint dihedral
23
+ nass = 50000
24
+ end
25
+ do (store1 = 1) (all)
26
+ evaluate ($group=1)
27
+ evaluate ($done=false)
28
+ while ( $done = false ) loop bdihe
29
+ if ( $exist_prot_segid_$group = true ) then
30
+ show sum(1) ( segid $prot_segid_$group )
31
+ if ( $result > 0 ) then
32
+ evaluate ($error_phi=$Data.error_dih)
33
+ evaluate ($error_psi=$Data.error_dih)
34
+ for $id in id ( segid $prot_segid_$group and tag and not resn TIP3 ) loop resid
35
+ show (segid) (id $id)
36
+ evaluate ($segid=$result)
37
+ show (resid) ( id $id )
38
+ evaluate ($resid=decode($result))
39
+ evaluate ($rprec = $resid - 1)
40
+ show sum (store1) (resid $rprec and name C)
41
+ if ($result ne 0) then
42
+ evaluate ($rprec = $resid - 1)
43
+ pick dihedral
44
+ ( segid $segid and resid $rprec and name C )
45
+ ( segid $segid and resid $resid and name N )
46
+ ( segid $segid and resid $resid and name CA )
47
+ ( segid $segid and resid $resid and name C )
48
+ geometry
49
+ evaluatate ($dihedral_phi=$result)
50
+ restraint dihedral
51
+ ! phi
52
+ assign ( segid $segid and resid $rprec and name C )
53
+ ( segid $segid and resid $resid and name N )
54
+ ( segid $segid and resid $resid and name CA )
55
+ ( segid $segid and resid $resid and name C )
56
+ 1.0 $dihedral_phi $error_phi 2
57
+ scale 200.0
58
+ end
59
+ end if
60
+ evaluate ($rnext = $resid + 1)
61
+ show sum (store1) (resid $rnext and name N)
62
+ if ($result ne 0) then
63
+ pick dihedral
64
+ ( segid $segid and resid $resid and name N )
65
+ ( segid $segid and resid $resid and name CA )
66
+ ( segid $segid and resid $resid and name C )
67
+ ( segid $segid and resid $rnext and name N )
68
+ geometry
69
+ evaluatate ($dihedral_psi=$result)
70
+ restraint dihedral
71
+ ! psi
72
+ assign ( segid $segid and resid $resid and name N )
73
+ ( segid $segid and resid $resid and name CA )
74
+ ( segid $segid and resid $resid and name C )
75
+ ( segid $segid and resid $rnext and name N )
76
+ 1.0 $dihedral_psi $error_psi 2
77
+ scale 200.0
78
+ end
79
+ end if
80
+ end loop resid
81
+ end if
82
+ else
83
+ evaluate ($done=true)
84
+ end if
85
+ evaluate ($group=$group+1)
86
+ end loop bdihe
87
+
88
+ flags include cdih end
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/protein-ss-restraints-alpha-beta.cns ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! protein-ss-restraints-alpha-beta.cns
2
+ ! Define automatically secondary structure dihedral angle restraints
3
+ ! for helical and beta-sheet segments
4
+ !
5
+ ! ***********************************************************************
6
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
7
+ ! * All rights reserved. *
8
+ ! * This code is part of the HADDOCK software and governed by its *
9
+ ! * license. Please see the LICENSE file that should have been included *
10
+ ! * as part of this package. *
11
+ ! ***********************************************************************
12
+ !
13
+ {+ file: protein-ss-restraints.def +}
14
+ {+ description: Creates dihedral angle restraints to maintain conformation of the protein backbone +}
15
+ {+ comment:This file is to be read by refinement files that modify atom coordinates +}
16
+ {+ authors: Axel T. Brunger, and Paul D. Adams +}
17
+ {+ modified by Alexandre Bonvin for HADDOCK use +}
18
+
19
+ {=========================================================================================================}
20
+ { things below this line do not normally need to be changed }
21
+ {=========================================================================================================}
22
+
23
+ {- Dihedral restraints for the protein backbone in alpha-beta regions -}
24
+
25
+ do (store1 = 1) (all)
26
+ restraint dihedral
27
+ nass = 50000
28
+ end
29
+ evaluate ($group=1)
30
+ evaluate ($done=false)
31
+ while ( $done = false ) loop bdihe
32
+ if ( $exist_prot_segid_$group = true ) then
33
+ show sum(1) ( segid $prot_segid_$group )
34
+ if ( $result > 0 ) then
35
+ evaluate ($error_phi=$Data.error_dih)
36
+ evaluate ($error_psi=$Data.error_dih)
37
+ for $id in id ( segid $prot_segid_$group and tag and not resn TIP* ) loop resid
38
+ show (segid) (id $id)
39
+ evaluate ($segid=$result)
40
+ show (resid) ( id $id )
41
+ evaluate ($resid=decode($result))
42
+ evaluate ($alphaphi = 0)
43
+ evaluate ($alphapsi = 0)
44
+ evaluate ($alpha_check = 0)
45
+ evaluate ($betaphi = 0)
46
+ evaluate ($betapsi = 0)
47
+ evaluate ($beta_check = 0)
48
+ evaluate ($rprec = $resid - 1)
49
+ show sum (store1) (resid $rprec and name C)
50
+ if ($result ne 0) then
51
+ pick dihedral
52
+ ( segid $segid and resid $rprec and name C )
53
+ ( segid $segid and resid $resid and name N )
54
+ ( segid $segid and resid $resid and name CA )
55
+ ( segid $segid and resid $resid and name C )
56
+ geometry
57
+ evaluate ($dihedral_phi=$result)
58
+ evaluate ($alphaphi=max($dihedral_phi,-77))
59
+ evaluate ($alphaphi=max($dihedral_phi,-37))
60
+ if ($alphaphi eq -37) then
61
+ evaluate ($alpha_check = 1)
62
+ else
63
+ evaluate ($alpha_check = 0)
64
+ end if
65
+ evaluate ($betaphi=max($dihedral_phi,-145))
66
+ evaluate ($betaphi=max($dihedral_phi,-105))
67
+ if ($betaphi eq -105) then
68
+ evaluate ($beta_check = 1)
69
+ else
70
+ evaluate ($beta_check = 0)
71
+ end if
72
+ end if
73
+ evaluate ($rnext = $resid + 1)
74
+ show sum (store1) (resid $rnext and name N)
75
+ if ($result ne 0) then
76
+ pick dihedral
77
+ ( segid $segid and resid $resid and name N )
78
+ ( segid $segid and resid $resid and name CA )
79
+ ( segid $segid and resid $resid and name C )
80
+ ( segid $segid and resid $rnext and name N )
81
+ geometry
82
+ evaluate ($dihedral_psi=$result)
83
+ evaluate ($alphapsi=max($dihedral_psi,-67))
84
+ evaluate ($alphapsi=max($dihedral_psi,-27))
85
+ if ($alphapsi eq -27) then
86
+ evaluate ($alpha_check = $alpha_check + 1)
87
+ end if
88
+ evaluate ($betapsi=max($dihedral_psi,105))
89
+ evaluate ($betapsi=max($dihedral_psi,145))
90
+ if ($betapsi eq 145) then
91
+ evaluate ($beta_check = $beta_check + 1)
92
+ end if
93
+ end if
94
+ evaluate ($defrest = 0)
95
+ if ($alpha_check eq 2) then
96
+ evaluate ($defrest = 1)
97
+ end if
98
+ if ($beta_check eq 2) then
99
+ evaluate ($defrest = 1)
100
+ end if
101
+ if ($defrest = 1) then
102
+ restraint dihedral
103
+ ! phi
104
+ assign ( segid $segid and resid $rprec and name C )
105
+ ( segid $segid and resid $resid and name N )
106
+ ( segid $segid and resid $resid and name CA )
107
+ ( segid $segid and resid $resid and name C )
108
+ 1.0 $dihedral_phi $error_phi 2
109
+ ! psi
110
+ assign ( segid $segid and resid $resid and name N )
111
+ ( segid $segid and resid $resid and name CA )
112
+ ( segid $segid and resid $resid and name C )
113
+ ( segid $segid and resid $rnext and name N )
114
+ 1.0 $dihedral_psi $error_psi 2
115
+ scale 200.0
116
+ end
117
+ end if
118
+ end loop resid
119
+ end if
120
+ else
121
+ evaluate ($done=true)
122
+ end if
123
+ evaluate ($group=$group+1)
124
+ end loop bdihe
125
+
126
+ flags include cdih end
127
+
128
+
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/protein-ss-restraints-alpha.cns ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! protein-ss-restraints-alpha.cns
2
+ ! Define automatically secondary structure dihedral angle restraints
3
+ ! for helical segments
4
+ !
5
+ ! ***********************************************************************
6
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
7
+ ! * All rights reserved. *
8
+ ! * This code is part of the HADDOCK software and governed by its *
9
+ ! * license. Please see the LICENSE file that should have been included *
10
+ ! * as part of this package. *
11
+ ! ***********************************************************************
12
+ !
13
+ {+ file: protein-ss-restraints.def +}
14
+ {+ description: Creates dihedral angle restraints to maintain conformation of the protein backbone +}
15
+ {+ comment:This file is to be read by refinement files that modify atom coordinates +}
16
+ {+ authors: Axel T. Brunger, and Paul D. Adams +}
17
+ {+ modified by Alexandre Bonvin for HADDOCK use +}
18
+
19
+ {=========================================================================================================}
20
+ { things below this line do not normally need to be changed }
21
+ {=========================================================================================================}
22
+
23
+ {- Dihedral restraints for the protein backbone in alpha-helical regions -}
24
+ restraint dihedral
25
+ nass = 50000
26
+ end
27
+ do (store1 = 1) (all)
28
+ evaluate ($group=1)
29
+ evaluate ($done=false)
30
+ while ( $done = false ) loop bdihe
31
+ if ( $exist_prot_segid_$group = true ) then
32
+ show sum(1) ( segid $prot_segid_$group )
33
+ if ( $result > 0 ) then
34
+ evaluate ($error_phi=$Data.error_dih)
35
+ evaluate ($error_psi=$Data.error_dih)
36
+ for $id in id (segid $prot_segid_$group and tag and not resn TIP3 ) loop resid
37
+ show (segid) (id $id)
38
+ evaluate ($segid=$result)
39
+ show (resid) ( id $id )
40
+ evaluate ($resid=decode($result))
41
+ evaluate ($alphaphi = 0)
42
+ evaluate ($alphapsi = 0)
43
+ evaluate ($alpha_check = 0)
44
+ evaluate ($rprec = $resid - 1)
45
+ show sum (store1) (resid $rprec and name C)
46
+ if ($result ne 0) then
47
+ pick dihedral
48
+ ( segid $segid and resid $rprec and name C )
49
+ ( segid $segid and resid $resid and name N )
50
+ ( segid $segid and resid $resid and name CA )
51
+ ( segid $segid and resid $resid and name C )
52
+ geometry
53
+ evaluate ($dihedral_phi=$result)
54
+ evaluate ($alphaphi=max($dihedral_phi,-77))
55
+ evaluate ($alphaphi=max($dihedral_phi,-37))
56
+ if ($alphaphi eq -37) then
57
+ evaluate ($alpha_check = 1)
58
+ else
59
+ evaluate ($alpha_check = 0)
60
+ end if
61
+ end if
62
+ evaluate ($rnext = $resid + 1)
63
+ show sum (store1) (resid $rnext and name N)
64
+ if ($result ne 0) then
65
+ pick dihedral
66
+ ( segid $segid and resid $resid and name N )
67
+ ( segid $segid and resid $resid and name CA )
68
+ ( segid $segid and resid $resid and name C )
69
+ ( segid $segid and resid $rnext and name N )
70
+ geometry
71
+ evaluate ($dihedral_psi=$result)
72
+ evaluate ($alphapsi=max($dihedral_psi,-67))
73
+ evaluate ($alphapsi=max($dihedral_psi,-27))
74
+ if ($alphapsi eq -27) then
75
+ evaluate ($alpha_check = $alpha_check + 1)
76
+ end if
77
+ end if
78
+ evaluate ($defrest = 0)
79
+ if ($alpha_check eq 2) then
80
+ evaluate ($defrest = 1)
81
+ end if
82
+ if ($defrest = 1) then
83
+ restraint dihedral
84
+ ! phi
85
+ assign ( segid $segid and resid $rprec and name C )
86
+ ( segid $segid and resid $resid and name N )
87
+ ( segid $segid and resid $resid and name CA )
88
+ ( segid $segid and resid $resid and name C )
89
+ 1.0 $dihedral_phi $error_phi 2
90
+ ! psi
91
+ assign ( segid $segid and resid $resid and name N )
92
+ ( segid $segid and resid $resid and name CA )
93
+ ( segid $segid and resid $resid and name C )
94
+ ( segid $segid and resid $rnext and name N )
95
+ 1.0 $dihedral_psi $error_psi 2
96
+ scale 200.0
97
+ end
98
+ end if
99
+ end loop resid
100
+ end if
101
+ else
102
+ evaluate ($done=true)
103
+ end if
104
+ evaluate ($group=$group+1)
105
+ end loop bdihe
106
+
107
+ flags include cdih end
108
+
109
+
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/read_data.cns ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! read_data.cns
2
+ ! Read the various restraints data
3
+ ! (distances and dihedral angles only in this version)
4
+ !
5
+ ! ***********************************************************************
6
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
7
+ ! * All rights reserved. *
8
+ ! * This code is part of the HADDOCK software and governed by its *
9
+ ! * license. Please see the LICENSE file that should have been included *
10
+ ! * as part of this package. *
11
+ ! ***********************************************************************
12
+ !
13
+ ! Ambiguous and unambiguous distance restraints, hbonds
14
+ noe
15
+ reset
16
+ nrestraints = 12000000 ! allocate space for NOEs
17
+ ceiling 1000
18
+ end
19
+
20
+ evaluate ($filenam0 = $ambig_fname + "_" + encode($count))
21
+ fileexist $filenam0 end
22
+ if ($result eq false) then
23
+ evaluate ($filenam0 = $ambig_fname)
24
+ end if
25
+
26
+ if ($filenam0 # "") then
27
+ fileexist $filenam0 end
28
+ if ($result eq true) then
29
+ noe class ambi @@$filenam0 end
30
+ end if
31
+ end if
32
+
33
+ if ($Data.randremoval eq true) then
34
+ noe part $Data.npart end
35
+ end if
36
+
37
+ if ($unambig_fname # "") then
38
+ fileexist $unambig_fname end
39
+ if ($result eq true) then
40
+ noe class dist @@$unambig_fname end
41
+ end if
42
+ end if
43
+
44
+ if ($hbond_fname # "") then
45
+ fileexist $hbond_fname end
46
+ if ($result eq true) then
47
+ noe class hbon @@$hbond_fname end
48
+ end if
49
+ end if
50
+
51
+ noe
52
+ averaging * sum
53
+ potential * soft
54
+ scale * 1.0
55
+ sqconstant * 1.0
56
+ sqexponent * 2
57
+ soexponent * 1
58
+ rswitch * 1.0
59
+ sqoffset * 0.0
60
+ asymptote * 2.0
61
+ msoexponent * 1
62
+ masymptote * -0.1
63
+ mrswitch * 1.0
64
+ end
65
+
66
+
67
+ !dihedral restraints:
68
+ restraints dihedral
69
+ reset
70
+ nassign 50000
71
+ end
72
+ if ($dihe_fname # "") then
73
+ fileexist $dihe_fname end
74
+ if ($result eq true) then
75
+ restraints dihedral
76
+ @@$dihe_fname
77
+ end
78
+ end if
79
+ end if
80
+
81
+ restraints dihedral ? end
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/read_noes.cns ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! read_noes.cns
2
+ ! Read the various restraints data
3
+ ! In this version only distance-based restraints
4
+ !
5
+ ! ***********************************************************************
6
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
7
+ ! * Originally adapted from Aria 1.2 from Nilges and Linge, EMBL. *
8
+ ! * All rights reserved. *
9
+ ! * This code is part of the HADDOCK software and governed by its *
10
+ ! * license. Please see the LICENSE file that should have been included *
11
+ ! * as part of this package. *
12
+ ! ***********************************************************************
13
+ !
14
+ ! Ambiguous and unambiguous distance restraints, hbonds
15
+ noe
16
+ reset
17
+ nrestraints = 12000000 ! allocate space for NOEs
18
+ ceiling 1000
19
+ end
20
+
21
+ evaluate ($filenam0 = $ambig_fname + "_" + encode($count))
22
+ fileexist $filenam0 end
23
+ if ($result eq false) then
24
+ evaluate ($filenam0 = $ambig_fname)
25
+ end if
26
+
27
+ if ($filenam0 # "") then
28
+ fileexist $filenam0 end
29
+ if ($result eq true) then
30
+ noe class ambi @@$filenam0 end
31
+ end if
32
+ end if
33
+
34
+ if ($Data.randremoval eq true) then
35
+ noe part $Data.npart end
36
+ end if
37
+
38
+ if ($unambig_fname # "") then
39
+ fileexist $unambig_fname end
40
+ if ($result eq true) then
41
+ noe class dist @@$unambig_fname end
42
+ end if
43
+ end if
44
+
45
+ if ($hbond_fname # "") then
46
+ fileexist $hbond_fname end
47
+ if ($result eq true) then
48
+ noe class hbon @@$hbond_fname end
49
+ end if
50
+ end if
51
+
52
+ noe
53
+ averaging * sum
54
+ potential * soft
55
+ scale * 1.0
56
+ sqconstant * 1.0
57
+ sqexponent * 2
58
+ soexponent * 1
59
+ rswitch * 1.0
60
+ sqoffset * 0.0
61
+ asymptote * 2.0
62
+ msoexponent * 1
63
+ masymptote * -0.1
64
+ mrswitch * 1.0
65
+ end
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/read_param.cns ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! read_param.cns
2
+ ! Reads parameter files.
3
+ !
4
+ ! ***********************************************************************
5
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
6
+ !! * All rights reserved. *
7
+ ! * This code is part of the HADDOCK software and governed by its *
8
+ ! * license. Please see the LICENSE file that should have been included *
9
+ ! * as part of this package. *
10
+ ! ***********************************************************************
11
+
12
+ {* protein parameter file *}
13
+ eval ($prot_parameter_infile="TOPPAR:protein-allhdg5-4.param")
14
+
15
+ {* nucleic acid parameter file *}
16
+ eval ($nucl_parameter_infile="TOPPAR:dna-rna-allatom-hj-opls-1.3.param")
17
+
18
+ {* carbohydrate parameter file *}
19
+ eval ($carbo_parameter_infile="TOPPAR:carbohydrate.param")
20
+
21
+ {* solvent parameter file *}
22
+ eval ($solv_parameter_infile="TOPPAR:solvent-allhdg5-4.param")
23
+
24
+ {* fragment probes parameter file *}
25
+ eval ($ligands_parameter_infile="TOPPAR:fragment_probes.param")
26
+
27
+ {* ion parameter file *}
28
+ eval ($ion_parameter_infile="TOPPAR:ion.param")
29
+
30
+ {* heme parameter file *}
31
+ eval ($heme_parameter_infile="TOPPAR:hemes-allhdg.param")
32
+
33
+ {* shape parameter file *}
34
+ eval ($shape_parameter_infile="TOPPAR:shape.param")
35
+
36
+ {* cofactors parameter file *}
37
+ eval ($cofactors_parameter_infile="TOPPAR:cofactors.param")
38
+
39
+ parameter
40
+ @@$prot_parameter_infile
41
+ @@$ion_parameter_infile
42
+ @@$nucl_parameter_infile
43
+ @@$carbo_parameter_infile
44
+ @@$solv_parameter_infile
45
+ @@$ligands_parameter_infile
46
+ @@$heme_parameter_infile
47
+ @@$shape_parameter_infile
48
+ @@$cofactors_parameter_infile
49
+ if ($ligand_param_fname # "") then
50
+ fileexist $ligand_param_fname end
51
+ if ($result eq true) then
52
+ @@$ligand_param_fname
53
+ end if
54
+ end if
55
+ end
56
+
57
+ parameter
58
+ nbonds
59
+ nbxmod=5 atom cdie shift
60
+ cutnb=9.5 ctofnb=8.5 ctonnb=6.5 eps=1.0 e14fac=0.4 inhibit 0.25
61
+ wmin=0.5 tolerance 0.5
62
+ end
63
+ end
64
+
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/restrain-ions.cns ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! restrain-ions.cns
2
+ ! distance restraints between an ion and any coordinating atom within 5A
3
+ ! to maintain the coordination topologu
4
+ !
5
+ ! ***********************************************************************
6
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
7
+ ! * All rights reserved. *
8
+ ! * This code is part of the HADDOCK software and governed by its *
9
+ ! * license. Please see the LICENSE file that should have been included *
10
+ ! * as part of this package. *
11
+ ! ***********************************************************************
12
+ !
13
+ noe class dist end
14
+
15
+ ! first deal with monoatomic ions
16
+ evaluate ($pcount = 0)
17
+ for $id1 in id ( name "LI+1" or name "F-1" or name "NA+1" or name "MG+2" or name "AL+3"
18
+ or name "CL-1" or name "K+1" or name "CA+2" or name "V+2" or name "V+3"
19
+ or name "CR+2" or name "CR+3" or name "MN+2" or name "MN+3" or name "FE+2"
20
+ or name "FE+3" or name "NI+2" or name "CO+2" or name "CO+3" or name "CU+1"
21
+ or name "CU+2" or name "ZN+2" or name "BR-1" or name "SR+2" or name "MO+3"
22
+ or name "AG+1" or name "CD+2" or name "I-1" or name "CS+2" or name "HO+3"
23
+ or name "YB+2" or name "YB+3" or name "OS+4" or name "IR+3" or name "PT+2"
24
+ or name "AU+1" or name "AU+2" or name "HG+1" or name "HG+2" or name "PB+2"
25
+ or name "U+3" or name "U+4" or name "ZN+1" or name "ZN" ) loop sions
26
+
27
+ show (segid) (id $id1)
28
+ evaluate ($segid1=$result)
29
+ show (resid) (id $id1)
30
+ evaluate ($resid1=$result)
31
+ show (resname) (id $id1)
32
+ evaluate ($resname1=$result)
33
+ show (name) (id $id1)
34
+ evaluate ($name1=$result)
35
+
36
+ evaluate ($mindis = 4.0)
37
+ for $id2 in id ( (name O* or name S* or name N*) and (id $id1) around $mindis and
38
+ (resn ACE or resn ALA or resn ALY or resn ARG or resn ASN or resn ASH or resn ASP or
39
+ resn CSP or resn CTN or resn CYC or resn CYF or resn CYM or resn CYS or resn DDZ or
40
+ resn GLN or resn GLH or resn GLU or resn GLY or resn HIS or resn HY3 or resn HYP or
41
+ resn ILE or resn LEU or resn LYS or resn M3L or resn MLY or resn MLZ or resn MET or
42
+ resn MSE or resn NEP or resn NME or resn PHE or resn PNS or resn PRO or resn PTR or
43
+ resn QSR or resn SEP or resn SER or resn THR or resn TOP or resn TRP or resn TYP or
44
+ resn TYR or resn TYS or resn VAL or resn A or resn C or resn G or resn T or
45
+ resn DA or resn DC or resn DG or resn DT or resn DJ )) loop search
46
+
47
+ pick bond (id $id1) (id $id2) geometry
48
+ evaluate ($upper = $result)
49
+ show (segid) (id $id2)
50
+ evaluate ($segid2=$result)
51
+ show (resid) (id $id2)
52
+ evaluate ($resid2=$result)
53
+ show (name) (id $id2)
54
+ evaluate ($name2=$result)
55
+
56
+ if ($segid1 eq $segid2) then
57
+ noe
58
+ assign (resid $resid1 and segid $segid1 and name $name1)
59
+ (resid $resid2 and segid $segid2 and name $name2) $upper 0.1 0.1
60
+ end
61
+ end if
62
+
63
+ end loop search
64
+
65
+ end loop sions
66
+
67
+ ! then deal with multiatomic mions
68
+ evaluate ($pcount = 0)
69
+ for $id1 in id ( (resn SO4 or resn PO4 or resn WO4) and name O* ) loop mions
70
+
71
+ show (segid) (id $id1)
72
+ evaluate ($segid1=$result)
73
+ show (resid) (id $id1)
74
+ evaluate ($resid1=$result)
75
+ show (resname) (id $id1)
76
+ evaluate ($resname1=$result)
77
+ show (name) (id $id1)
78
+ evaluate ($name1=$result)
79
+
80
+ evaluate ($mindis = 4.0)
81
+ for $id2 in id ( (name O* or name S* or name N*) and (id $id1) around $mindis and
82
+ (resn ACE or resn ALA or resn ALY or resn ARG or resn ASN or resn ASH or resn ASP or
83
+ resn CSP or resn CTN or resn CYC or resn CYF or resn CYM or resn CYS or resn DDZ or
84
+ resn GLN or resn GLH or resn GLU or resn GLY or resn HIS or resn HY3 or resn HYP or
85
+ resn ILE or resn LEU or resn LYS or resn M3L or resn MLY or resn MLZ or resn MET or
86
+ resn MSE or resn NEP or resn NME or resn PHE or resn PNS or resn PRO or resn PTR or
87
+ resn QSR or resn SEP or resn SER or resn THR or resn TOP or resn TRP or resn TYP or
88
+ resn TYR or resn TYS or resn VAL or resn A or resn C or resn G or resn T or
89
+ resn DA or resn DC or resn DG or resn DT or resn DJ )) loop search
90
+
91
+ pick bond (id $id1) (id $id2) geometry
92
+ evaluate ($upper = $result)
93
+ show (segid) (id $id2)
94
+ evaluate ($segid2=$result)
95
+ show (resid) (id $id2)
96
+ evaluate ($resid2=$result)
97
+ show (name) (id $id2)
98
+ evaluate ($name2=$result)
99
+
100
+ if ($segid1 eq $segid2) then
101
+ noe
102
+ assign (resid $resid1 and segid $segid1 and name $name1)
103
+ (resid $resid2 and segid $segid2 and name $name2) $upper 0.1 0.1
104
+ end
105
+ end if
106
+
107
+ end loop search
108
+
109
+ end loop mions
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/scale_inter.cns ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! scale_inter.cns
2
+ ! Scaling of intermolecular interactions
3
+ !
4
+ ! ***********************************************************************
5
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
6
+ ! * All rights reserved. *
7
+ ! * This code is part of the HADDOCK software and governed by its *
8
+ ! * license. Please see the LICENSE file that should have been included *
9
+ ! * as part of this package. *
10
+ ! ***********************************************************************
11
+ !
12
+ igroup interaction (not all) (not all) end
13
+
14
+ igroup
15
+
16
+ eval($nchain1 = 0)
17
+
18
+ while ($nchain1 < $data.ncomponents) loop nloop1
19
+ eval($nchain1 = $nchain1 + 1)
20
+
21
+ interaction (segid $prot_segid_$nchain1 and not (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA))
22
+ (segid $prot_segid_$nchain1 and not (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA)) weight * $scale.int_$nchain1_$nchain1 end
23
+ interaction (segid $prot_segid_$nchain1 and not (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA))
24
+ ((resn WAT or resn HOH or resn TIP* or resn DMS)) weight * 1.0 vdw $kinter elec $kinter end
25
+
26
+ eval($nchain2 = $nchain1 )
27
+ while ($nchain2 < $data.ncomponents) loop nloop2
28
+ eval($nchain2 = $nchain2 + 1)
29
+ eval($scalfac = $kinter * $scale.int_$nchain1_$nchain2)
30
+ interaction (segid $prot_segid_$nchain1 and not (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA))
31
+ (segid $prot_segid_$nchain2 and not (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA)) weight * 1.0 vdw $scalfac elec $scalfac end
32
+ end loop nloop2
33
+
34
+ end loop nloop1
35
+
36
+ interaction (resn ANI) (resn ANI) weight * 1.0 vdw 0.0 elec 0.0 end
37
+ interaction (resn DAN) (resn DAN) weight * 1.0 vdw 0.0 elec 0.0 end
38
+ interaction (resn XAN) (resn XAN) weight * 1.0 vdw 0.0 elec 0.0 end
39
+ interaction (resn DUM) (resn DUM) weight * 1.0 vdw 0.0 elec 0.0 end
40
+ interaction (resn SHA) (resn SHA) weight * 1.0 vdw 0.0 elec 0.0 end
41
+ interaction (resn SHA) (not resn SHA) weight * 0.0 end
42
+
43
+ interaction ((resn WAT or resn HOH or resn TIP* or resn DMS)) ((resn WAT or resn HOH or resn TIP* or resn DMS)) weight * 1.0 end
44
+
45
+ end
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/scale_inter_final.cns ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! scale_inter_final.cns
2
+ ! Scaling of intermolecular interactions
3
+ !
4
+ ! ***********************************************************************
5
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
6
+ ! * All rights reserved. *
7
+ ! * This code is part of the HADDOCK software and governed by its *
8
+ ! * license. Please see the LICENSE file that should have been included *
9
+ ! * as part of this package. *
10
+ ! ***********************************************************************
11
+ !
12
+ igroup interaction (not all) (not all) end
13
+
14
+ igroup
15
+
16
+ eval($nchain1 = 0)
17
+
18
+ while ($nchain1 < $data.ncomponents) loop nloop1
19
+ eval($nchain1 = $nchain1 + 1)
20
+ eval($nchain2 = $nchain1 )
21
+ while ($nchain2 < $data.ncomponents) loop nloop2
22
+ eval($nchain2 = $nchain2 + 1)
23
+ eval($scalfac = $kinter * $scale.int_$nchain1_$nchain2)
24
+ interaction (segid $prot_segid_$nchain1 and not
25
+ (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA or resn DPP or resn PCW or resn PEE))
26
+ (segid $prot_segid_$nchain2 and not
27
+ (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA or resn DPP or resn PCW or resn PEE)) weight * 1.0 vdw $scalfac elec $scalfac end
28
+ end loop nloop2
29
+
30
+ end loop nloop1
31
+
32
+ interaction (resn ANI) (resn ANI) weight * 1.0 vdw 0.0 elec 0.0 end
33
+ interaction (resn DAN) (resn DAN) weight * 1.0 vdw 0.0 elec 0.0 end
34
+ interaction (resn XAN) (resn XAN) weight * 1.0 vdw 0.0 elec 0.0 end
35
+ interaction (resn DUM) (resn DUM) weight * 1.0 vdw 0.0 elec 0.0 end
36
+ interaction (resn SHA) (resn SHA) weight * 1.0 vdw 0.0 elec 0.0 end
37
+ interaction (resn SHA) (not resn SHA) weight * 0.0 end
38
+
39
+ end
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/scale_intra_only.cns ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! scale_intra_only.cns
2
+ ! Scaling of intramolecular energies (no intermolecular energies)
3
+ !
4
+ ! ***********************************************************************
5
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
6
+ ! * All rights reserved. *
7
+ ! * This code is part of the HADDOCK software and governed by its *
8
+ ! * license. Please see the LICENSE file that should have been included *
9
+ ! * as part of this package. *
10
+ ! ***********************************************************************
11
+ !
12
+ igroup interaction (not all) (not all) end
13
+
14
+ igroup
15
+
16
+ eval($nchain1 = 0)
17
+
18
+ while ($nchain1 < $data.ncomponents) loop nloop1
19
+ eval($nchain1 = $nchain1 + 1)
20
+
21
+ interaction (segid $prot_segid_$nchain1 and not (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA))
22
+ (segid $prot_segid_$nchain1 and not (resn ANI or resn DAN or resn XAN or resn DUM or resn SHA)) weight * 1.0 end
23
+
24
+ end loop nloop1
25
+
26
+ interaction (resn ANI) (resn ANI) weight * 1.0 vdw 0.0 elec 0.0 end
27
+ interaction (resn DAN) (resn DAN) weight * 1.0 vdw 0.0 elec 0.0 end
28
+ interaction (resn XAN) (resn XAN) weight * 1.0 vdw 0.0 elec 0.0 end
29
+ interaction (resn DUM) (resn DUM) weight * 1.0 vdw 0.0 elec 0.0 end
30
+ interaction (resn SHA) (resn SHA) weight * 1.0 vdw 0.0 elec 0.0 end
31
+ interaction (resn SHA) (not resn SHA) weight * 0.0 end
32
+
33
+ end
34
+
35
+
36
+
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/setflags.cns ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! setflags.cns
2
+ ! Defines energy flags
3
+ !
4
+ ! ***********************************************************************
5
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
6
+ ! * All rights reserved. *
7
+ ! * This code is part of the HADDOCK software and governed by its *
8
+ ! * license. Please see the LICENSE file that should have been included *
9
+ ! * as part of this package. *
10
+ ! ***********************************************************************
11
+ !
12
+
13
+ if ($Data.flags.noe = TRUE) then
14
+ flags include noe end
15
+ end if
16
+ if ($Data.flags.cdih = TRUE) then
17
+ flags include cdih end
18
+ end if
19
+ if ($Data.flags.ncs = TRUE) then
20
+ flags include ncs end
21
+ end if
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/cns/symmultimer.cns ADDED
@@ -0,0 +1,677 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ! symmultimer.cns
2
+ ! Define symmetry restraints
3
+ !
4
+ ! ***********************************************************************
5
+ ! * Copyright 2003-2022 Alexandre Bonvin, Utrecht University. *
6
+ ! * Originally adapted from Aria 1.2 from Nilges and Linge, EMBL. *
7
+ ! * All rights reserved. *
8
+ ! * This code is part of the HADDOCK software and governed by its *
9
+ ! * license. Please see the LICENSE file that should have been included *
10
+ ! * as part of this package. *
11
+ ! ***********************************************************************
12
+ !
13
+
14
+ if ($Data.flags.sym eq true) then
15
+
16
+ noe class symm end
17
+
18
+ ! Define C2 symmetry restraints for symmetrical multimers
19
+ !
20
+ eval ($ncount = 0)
21
+ while ($ncount < $data.nc2sym) loop c2symloop
22
+
23
+ eval ($ncount = $ncount + 1)
24
+ evaluate ($i1start = $c2sym_sta1_$ncount)
25
+ evaluate ($i1end = $c2sym_end1_$ncount)
26
+ evaluate ($chain1 = $c2sym_seg1_$ncount)
27
+ evaluate ($i2start = $c2sym_sta2_$ncount)
28
+ evaluate ($i2end = $c2sym_end2_$ncount)
29
+ evaluate ($chain2 = $c2sym_seg2_$ncount)
30
+
31
+ !first check that the chain lengths are equal for the two defined molecules
32
+ evaluate ($diff1 = $i1end - $i1start)
33
+ evaluate ($diff2 = $i2end - $i2start)
34
+ if ($diff1 ne $diff2) then
35
+ display CHAIN LENGTH FOR SYMMETRY RESTRAINTS DOES NOT MATCH
36
+ display PLEASE CHECK CAREFULLY YOUR INPUT
37
+ display ... stopping ...
38
+ stop
39
+ end if
40
+
41
+ eval ($icount = 0)
42
+ while ($i1start < $i1end) loop genc2sym
43
+
44
+ evaluate ($resid1 = $i1start)
45
+ evaluate ($resid2 = $i2end - $icount)
46
+ evaluate ($resid3 = $i2start)
47
+ evaluate ($resid4 = $i1end - $icount)
48
+
49
+ noe
50
+ assign (resid $resid1 and (name CA or name P or name BB) and segid $chain1)
51
+ (resid $resid2 and (name CA or name P or name BB) and segid $chain2) 0 0 0
52
+ assign (resid $resid3 and (name CA or name P or name BB) and segid $chain2)
53
+ (resid $resid4 and (name CA or name P or name BB) and segid $chain1) 0 0 0
54
+ end
55
+
56
+ evaluate ($icount = $icount + 1)
57
+ evaluate ($i1start = $i1start + 1)
58
+ evaluate ($i2start = $i2start + 1)
59
+
60
+ end loop genc2sym
61
+
62
+ end loop c2symloop
63
+
64
+
65
+ ! Define C3 symmetry restraints for symmetrical multimers
66
+ !
67
+ eval ($ncount = 0)
68
+ while ($ncount < $data.nc3sym) loop c3symloop
69
+
70
+ eval ($ncount = $ncount + 1)
71
+ evaluate ($i1start = $c3sym_sta1_$ncount)
72
+ evaluate ($i1end = $c3sym_end1_$ncount)
73
+ evaluate ($chain1 = $c3sym_seg1_$ncount)
74
+ evaluate ($i2start = $c3sym_sta2_$ncount)
75
+ evaluate ($i2end = $c3sym_end2_$ncount)
76
+ evaluate ($chain2 = $c3sym_seg2_$ncount)
77
+ evaluate ($i3start = $c3sym_sta3_$ncount)
78
+ evaluate ($i3end = $c3sym_end3_$ncount)
79
+ evaluate ($chain3 = $c3sym_seg3_$ncount)
80
+
81
+ !first check that the chain lengths are equal for the two defined molecules
82
+ evaluate ($diff1 = $i1end - $i1start)
83
+ evaluate ($diff2 = $i2end - $i2start)
84
+ evaluate ($diff3 = $i3end - $i3start)
85
+ if ($diff1 ne $diff2) then
86
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
87
+ display PLEASE CHECK CAREFULLY YOUR INPUT
88
+ display ... stopping ...
89
+ stop
90
+ end if
91
+ if ($diff1 ne $diff3) then
92
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
93
+ display PLEASE CHECK CAREFULLY YOUR INPUT
94
+ display ... stopping ...
95
+ stop
96
+ end if
97
+ if ($diff2 ne $diff3) then
98
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
99
+ display PLEASE CHECK CAREFULLY YOUR INPUT
100
+ display ... stopping ...
101
+ stop
102
+ end if
103
+
104
+ eval ($icount = 0)
105
+ while ($i1start < $i1end) loop genc3sym
106
+
107
+ evaluate ($resst1 = $i1start)
108
+ evaluate ($resst2 = $i2start)
109
+ evaluate ($resst3 = $i3start)
110
+ evaluate ($resen1 = $i1end - $icount)
111
+ evaluate ($resen2 = $i2end - $icount)
112
+ evaluate ($resen3 = $i3end - $icount)
113
+
114
+ noe
115
+
116
+ assign (resid $resst1 and (name CA or name P or name BB) and segid $chain1)
117
+ (resid $resen2 and (name CA or name P or name BB) and segid $chain2) 0 0 0
118
+ assign (resid $resst2 and (name CA or name P or name BB) and segid $chain2)
119
+ (resid $resen3 and (name CA or name P or name BB) and segid $chain3) 0 0 0
120
+
121
+ assign (resid $resst2 and (name CA or name P or name BB) and segid $chain2)
122
+ (resid $resen3 and (name CA or name P or name BB) and segid $chain3) 0 0 0
123
+ assign (resid $resst3 and (name CA or name P or name BB) and segid $chain3)
124
+ (resid $resen1 and (name CA or name P or name BB) and segid $chain1) 0 0 0
125
+
126
+ assign (resid $resst3 and (name CA or name P or name BB) and segid $chain3)
127
+ (resid $resen1 and (name CA or name P or name BB) and segid $chain1) 0 0 0
128
+ assign (resid $resst1 and (name CA or name P or name BB) and segid $chain1)
129
+ (resid $resen2 and (name CA or name P or name BB) and segid $chain2) 0 0 0
130
+
131
+ end
132
+
133
+ evaluate ($icount = $icount + 2)
134
+ evaluate ($i1start = $i1start + 2)
135
+ evaluate ($i2start = $i2start + 2)
136
+ evaluate ($i3start = $i3start + 2)
137
+
138
+ end loop genc3sym
139
+
140
+ end loop c3symloop
141
+
142
+ ! Define S3 symmetry restraints for symmetrical multimers
143
+ !
144
+ eval ($ncount = 0)
145
+ while ($ncount < $data.ns3sym) loop s3symloop
146
+
147
+ eval ($ncount = $ncount + 1)
148
+ evaluate ($i1start = $s3sym_sta1_$ncount)
149
+ evaluate ($i1end = $s3sym_end1_$ncount)
150
+ evaluate ($chain1 = $s3sym_seg1_$ncount)
151
+ evaluate ($i2start = $s3sym_sta2_$ncount)
152
+ evaluate ($i2end = $s3sym_end2_$ncount)
153
+ evaluate ($chain2 = $s3sym_seg2_$ncount)
154
+ evaluate ($i3start = $s3sym_sta3_$ncount)
155
+ evaluate ($i3end = $s3sym_end3_$ncount)
156
+ evaluate ($chain3 = $s3sym_seg3_$ncount)
157
+
158
+ !first check that the chain lengths are equal for the two defined molecules
159
+ evaluate ($diff1 = $i1end - $i1start)
160
+ evaluate ($diff2 = $i2end - $i2start)
161
+ evaluate ($diff3 = $i3end - $i3start)
162
+ if ($diff1 ne $diff2) then
163
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
164
+ display PLEASE CHECK CAREFULLY YOUR INPUT
165
+ display ... stopping ...
166
+ stop
167
+ end if
168
+ if ($diff1 ne $diff3) then
169
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
170
+ display PLEASE CHECK CAREFULLY YOUR INPUT
171
+ display ... stopping ...
172
+ stop
173
+ end if
174
+ if ($diff2 ne $diff3) then
175
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
176
+ display PLEASE CHECK CAREFULLY YOUR INPUT
177
+ display ... stopping ...
178
+ stop
179
+ end if
180
+
181
+ eval ($icount = 0)
182
+ eval ($istep = 4)
183
+ eval ($istop = $i1end - $istep)
184
+ while ($i1start < $istop) loop gens3sym
185
+
186
+ evaluate ($resst11 = $i1start)
187
+ evaluate ($resst21 = $i1start+1)
188
+ evaluate ($resst12 = $i2start)
189
+ evaluate ($resst22 = $i2start+1)
190
+ evaluate ($resst13 = $i3start)
191
+ evaluate ($resst23 = $i3start+1)
192
+
193
+
194
+ noe
195
+
196
+ assign (resid $resst11 and (name CA or name P or name BB) and segid $chain1)
197
+ (resid $resst12 and (name CA or name P or name BB) and segid $chain2) 0 0 0
198
+ assign (resid $resst12 and (name CA or name P or name BB) and segid $chain2)
199
+ (resid $resst13 and (name CA or name P or name BB) and segid $chain3) 0 0 0
200
+
201
+ assign (resid $resst21 and (name CA or name P or name BB) and segid $chain1)
202
+ (resid $resst22 and (name CA or name P or name BB) and segid $chain2) 0 0 0
203
+ assign (resid $resst22 and (name CA or name P or name BB) and segid $chain2)
204
+ (resid $resst23 and (name CA or name P or name BB) and segid $chain3) 0 0 0
205
+
206
+ end
207
+
208
+ evaluate ($icount = $icount + $istep)
209
+ evaluate ($i1start = $i1start + $istep)
210
+ evaluate ($i2start = $i2start + $istep)
211
+ evaluate ($i3start = $i3start + $istep)
212
+
213
+ end loop gens3sym
214
+
215
+ end loop s3symloop
216
+
217
+ ! Define C4 symmetry restraints for symmetrical multimers
218
+ !
219
+ eval ($istep = 10)
220
+ eval ($ncount = 0)
221
+ while ($ncount < $data.nc4sym) loop c4symloop
222
+
223
+ eval ($ncount = $ncount + 1)
224
+ evaluate ($i1start = $c4sym_sta1_$ncount)
225
+ evaluate ($i1end = $c4sym_end1_$ncount)
226
+ evaluate ($chain1 = $c4sym_seg1_$ncount)
227
+ evaluate ($i2start = $c4sym_sta2_$ncount)
228
+ evaluate ($i2end = $c4sym_end2_$ncount)
229
+ evaluate ($chain2 = $c4sym_seg2_$ncount)
230
+ evaluate ($i3start = $c4sym_sta3_$ncount)
231
+ evaluate ($i3end = $c4sym_end3_$ncount)
232
+ evaluate ($chain3 = $c4sym_seg3_$ncount)
233
+ evaluate ($i4start = $c4sym_sta4_$ncount)
234
+ evaluate ($i4end = $c4sym_end4_$ncount)
235
+ evaluate ($chain4 = $c4sym_seg4_$ncount)
236
+
237
+ !first check that the chain lengths are equal for the four defined molecules
238
+ evaluate ($diff1 = $i1end - $i1start)
239
+ evaluate ($diff2 = $i2end - $i2start)
240
+ evaluate ($diff3 = $i3end - $i3start)
241
+ evaluate ($diff4 = $i4end - $i4start)
242
+ if ($diff1 ne $diff2) then
243
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
244
+ display PLEASE CHECK CAREFULLY YOUR INPUT
245
+ display ... stopping ...
246
+ stop
247
+ end if
248
+ if ($diff1 ne $diff3) then
249
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
250
+ display PLEASE CHECK CAREFULLY YOUR INPUT
251
+ display ... stopping ...
252
+ stop
253
+ end if
254
+ if ($diff1 ne $diff4) then
255
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
256
+ display PLEASE CHECK CAREFULLY YOUR INPUT
257
+ display ... stopping ...
258
+ stop
259
+ end if
260
+ if ($diff2 ne $diff3) then
261
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
262
+ display PLEASE CHECK CAREFULLY YOUR INPUT
263
+ display ... stopping ...
264
+ stop
265
+ end if
266
+ if ($diff2 ne $diff4) then
267
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
268
+ display PLEASE CHECK CAREFULLY YOUR INPUT
269
+ display ... stopping ...
270
+ stop
271
+ end if
272
+ if ($diff3 ne $diff4) then
273
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
274
+ display PLEASE CHECK CAREFULLY YOUR INPUT
275
+ display ... stopping ...
276
+ stop
277
+ end if
278
+
279
+ eval ($icount = 0)
280
+ while ($i1start < $i1end) loop genc4sym
281
+
282
+ evaluate ($resst1 = $i1start)
283
+ evaluate ($resst2 = $i2start)
284
+ evaluate ($resst3 = $i3start)
285
+ evaluate ($resst4 = $i4start)
286
+ evaluate ($resen1 = $i1end - $icount)
287
+ evaluate ($resen2 = $i2end - $icount)
288
+ evaluate ($resen3 = $i3end - $icount)
289
+ evaluate ($resen4 = $i4end - $icount)
290
+
291
+ noe
292
+
293
+ ! N to N sequential restraints to prevent anti-parallel arrangements
294
+ assign (resid $resst1 and (name CA or name P or name BB) and segid $chain1)
295
+ (resid $resst2 and (name CA or name P or name BB) and segid $chain2) 0 0 0
296
+ assign (resid $resst2 and (name CA or name P or name BB) and segid $chain2)
297
+ (resid $resst3 and (name CA or name P or name BB) and segid $chain3) 0 0 0
298
+
299
+ assign (resid $resst2 and (name CA or name P or name BB) and segid $chain2)
300
+ (resid $resst3 and (name CA or name P or name BB) and segid $chain3) 0 0 0
301
+ assign (resid $resst3 and (name CA or name P or name BB) and segid $chain3)
302
+ (resid $resst4 and (name CA or name P or name BB) and segid $chain4) 0 0 0
303
+
304
+ assign (resid $resst3 and (name CA or name P or name BB) and segid $chain3)
305
+ (resid $resst4 and (name CA or name P or name BB) and segid $chain4) 0 0 0
306
+ assign (resid $resst4 and (name CA or name P or name BB) and segid $chain4)
307
+ (resid $resst1 and (name CA or name P or name BB) and segid $chain1) 0 0 0
308
+
309
+ assign (resid $resst4 and (name CA or name P or name BB) and segid $chain4)
310
+ (resid $resst1 and (name CA or name P or name BB) and segid $chain1) 0 0 0
311
+ assign (resid $resst1 and (name CA or name P or name BB) and segid $chain1)
312
+ (resid $resst2 and (name CA or name P or name BB) and segid $chain2) 0 0 0
313
+
314
+ ! N to C sequential restraints to assure planarity
315
+ assign (resid $resst1 and (name CA or name P or name BB) and segid $chain1)
316
+ (resid $resen2 and (name CA or name P or name BB) and segid $chain2) 0 0 0
317
+ assign (resid $resst2 and (name CA or name P or name BB) and segid $chain2)
318
+ (resid $resen3 and (name CA or name P or name BB) and segid $chain3) 0 0 0
319
+
320
+ assign (resid $resst2 and (name CA or name P or name BB) and segid $chain2)
321
+ (resid $resen3 and (name CA or name P or name BB) and segid $chain3) 0 0 0
322
+ assign (resid $resst3 and (name CA or name P or name BB) and segid $chain3)
323
+ (resid $resen4 and (name CA or name P or name BB) and segid $chain4) 0 0 0
324
+
325
+ assign (resid $resst3 and (name CA or name P or name BB) and segid $chain3)
326
+ (resid $resen4 and (name CA or name P or name BB) and segid $chain4) 0 0 0
327
+ assign (resid $resst4 and (name CA or name P or name BB) and segid $chain4)
328
+ (resid $resen1 and (name CA or name P or name BB) and segid $chain1) 0 0 0
329
+
330
+ assign (resid $resst4 and (name CA or name P or name BB) and segid $chain4)
331
+ (resid $resen1 and (name CA or name P or name BB) and segid $chain1) 0 0 0
332
+ assign (resid $resst1 and (name CA or name P or name BB) and segid $chain1)
333
+ (resid $resen2 and (name CA or name P or name BB) and segid $chain2) 0 0 0
334
+
335
+ assign (resid $resen1 and (name CA or name P or name BB) and segid $chain1)
336
+ (resid $resst2 and (name CA or name P or name BB) and segid $chain2) 0 0 0
337
+ assign (resid $resen2 and (name CA or name P or name BB) and segid $chain2)
338
+ (resid $resst3 and (name CA or name P or name BB) and segid $chain3) 0 0 0
339
+
340
+ assign (resid $resen2 and (name CA or name P or name BB) and segid $chain2)
341
+ (resid $resst3 and (name CA or name P or name BB) and segid $chain3) 0 0 0
342
+ assign (resid $resen3 and (name CA or name P or name BB) and segid $chain3)
343
+ (resid $resst4 and (name CA or name P or name BB) and segid $chain4) 0 0 0
344
+
345
+ assign (resid $resen3 and (name CA or name P or name BB) and segid $chain3)
346
+ (resid $resst4 and (name CA or name P or name BB) and segid $chain4) 0 0 0
347
+ assign (resid $resen4 and (name CA or name P or name BB) and segid $chain4)
348
+ (resid $resst1 and (name CA or name P or name BB) and segid $chain1) 0 0 0
349
+
350
+ assign (resid $resen4 and (name CA or name P or name BB) and segid $chain4)
351
+ (resid $resst1 and (name CA or name P or name BB) and segid $chain1) 0 0 0
352
+ assign (resid $resen1 and (name CA or name P or name BB) and segid $chain1)
353
+ (resid $resst2 and (name CA or name P or name BB) and segid $chain2) 0 0 0
354
+
355
+ end
356
+
357
+ evaluate ($icount = $icount + $istep)
358
+ evaluate ($i1start = $i1start + $istep)
359
+ evaluate ($i2start = $i2start + $istep)
360
+ evaluate ($i3start = $i3start + $istep)
361
+ evaluate ($i4start = $i4start + $istep)
362
+
363
+ end loop genc4sym
364
+
365
+ end loop c4symloop
366
+
367
+
368
+ ! Define C5 symmetry restraints for symmetrical multimers
369
+ !
370
+ eval ($istep = 4)
371
+ eval ($ncount = 0)
372
+ while ($ncount < $data.nc5sym) loop c5symloop
373
+
374
+ eval ($ncount = $ncount + 1)
375
+ evaluate ($i1start = $c5sym_sta1_$ncount)
376
+ evaluate ($i1end = $c5sym_end1_$ncount)
377
+ evaluate ($chain1 = $c5sym_seg1_$ncount)
378
+ evaluate ($i2start = $c5sym_sta2_$ncount)
379
+ evaluate ($i2end = $c5sym_end2_$ncount)
380
+ evaluate ($chain2 = $c5sym_seg2_$ncount)
381
+ evaluate ($i3start = $c5sym_sta3_$ncount)
382
+ evaluate ($i3end = $c5sym_end3_$ncount)
383
+ evaluate ($chain3 = $c5sym_seg3_$ncount)
384
+ evaluate ($i4start = $c5sym_sta4_$ncount)
385
+ evaluate ($i4end = $c5sym_end4_$ncount)
386
+ evaluate ($chain4 = $c5sym_seg4_$ncount)
387
+ evaluate ($i5start = $c5sym_sta5_$ncount)
388
+ evaluate ($i5end = $c5sym_end5_$ncount)
389
+ evaluate ($chain5 = $c5sym_seg5_$ncount)
390
+
391
+ !first check that the chain lengths are equal for the two defined molecules
392
+ evaluate ($diff1 = $i1end - $i1start)
393
+ evaluate ($diff2 = $i2end - $i2start)
394
+ evaluate ($diff3 = $i3end - $i3start)
395
+ evaluate ($diff4 = $i4end - $i4start)
396
+ evaluate ($diff5 = $i5end - $i5start)
397
+ if ($diff1 ne $diff2) then
398
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
399
+ display PLEASE CHECK CAREFULLY YOUR INPUT
400
+ display ... stopping ...
401
+ stop
402
+ end if
403
+ if ($diff1 ne $diff3) then
404
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
405
+ display PLEASE CHECK CAREFULLY YOUR INPUT
406
+ display ... stopping ...
407
+ stop
408
+ end if
409
+ if ($diff2 ne $diff3) then
410
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
411
+ display PLEASE CHECK CAREFULLY YOUR INPUT
412
+ display ... stopping ...
413
+ stop
414
+ end if
415
+ if ($diff3 ne $diff4) then
416
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
417
+ display PLEASE CHECK CAREFULLY YOUR INPUT
418
+ display ... stopping ...
419
+ stop
420
+ end if
421
+ if ($diff4 ne $diff5) then
422
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
423
+ display PLEASE CHECK CAREFULLY YOUR INPUT
424
+ display ... stopping ...
425
+ stop
426
+ end if
427
+
428
+ eval ($icount = 0)
429
+ while ($i1start < $i1end) loop genc5sym
430
+
431
+ evaluate ($resst1 = $i1start)
432
+ evaluate ($resst2 = $i2start)
433
+ evaluate ($resst3 = $i3start)
434
+ evaluate ($resst4 = $i4start)
435
+ evaluate ($resst5 = $i5start)
436
+ evaluate ($resen1 = $i1end - $icount)
437
+ evaluate ($resen2 = $i2end - $icount)
438
+ evaluate ($resen3 = $i3end - $icount)
439
+ evaluate ($resen4 = $i4end - $icount)
440
+ evaluate ($resen5 = $i5end - $icount)
441
+
442
+ noe
443
+ assign (resid $resst1 and (name CA or name P or name BB) and segid $chain1)
444
+ (resid $resst3 and (name CA or name P or name BB) and segid $chain3) 0 0 0
445
+ assign (resid $resst1 and (name CA or name P or name BB) and segid $chain1)
446
+ (resid $resst4 and (name CA or name P or name BB) and segid $chain4) 0 0 0
447
+
448
+ assign (resid $resst2 and (name CA or name P or name BB) and segid $chain2)
449
+ (resid $resst4 and (name CA or name P or name BB) and segid $chain4) 0 0 0
450
+ assign (resid $resst2 and (name CA or name P or name BB) and segid $chain2)
451
+ (resid $resst5 and (name CA or name P or name BB) and segid $chain5) 0 0 0
452
+
453
+ assign (resid $resst3 and (name CA or name P or name BB) and segid $chain3)
454
+ (resid $resst5 and (name CA or name P or name BB) and segid $chain5) 0 0 0
455
+ assign (resid $resst3 and (name CA or name P or name BB) and segid $chain3)
456
+ (resid $resst1 and (name CA or name P or name BB) and segid $chain1) 0 0 0
457
+
458
+ assign (resid $resst4 and (name CA or name P or name BB) and segid $chain4)
459
+ (resid $resst1 and (name CA or name P or name BB) and segid $chain1) 0 0 0
460
+ assign (resid $resst4 and (name CA or name P or name BB) and segid $chain4)
461
+ (resid $resst2 and (name CA or name P or name BB) and segid $chain2) 0 0 0
462
+
463
+ assign (resid $resst5 and (name CA or name P or name BB) and segid $chain5)
464
+ (resid $resst2 and (name CA or name P or name BB) and segid $chain2) 0 0 0
465
+ assign (resid $resst5 and (name CA or name P or name BB) and segid $chain5)
466
+ (resid $resst3 and (name CA or name P or name BB) and segid $chain3) 0 0 0
467
+
468
+ end
469
+
470
+ evaluate ($icount = $icount + $istep)
471
+ evaluate ($i1start = $i1start + $istep)
472
+ evaluate ($i2start = $i2start + $istep)
473
+ evaluate ($i3start = $i3start + $istep)
474
+ evaluate ($i4start = $i4start + $istep)
475
+ evaluate ($i5start = $i5start + $istep)
476
+
477
+ end loop genc5sym
478
+
479
+ end loop c5symloop
480
+
481
+ ! Define C6 symmetry restraints for symmetrical multimers
482
+ !
483
+ eval ($istep = 10)
484
+ eval ($ncount = 0)
485
+ while ($ncount < $data.nc6sym) loop c6symloop
486
+
487
+ eval ($ncount = $ncount + 1)
488
+ evaluate ($i1start = $c6sym_sta1_$ncount)
489
+ evaluate ($i1end = $c6sym_end1_$ncount)
490
+ evaluate ($chain1 = $c6sym_seg1_$ncount)
491
+ evaluate ($i2start = $c6sym_sta2_$ncount)
492
+ evaluate ($i2end = $c6sym_end2_$ncount)
493
+ evaluate ($chain2 = $c6sym_seg2_$ncount)
494
+ evaluate ($i3start = $c6sym_sta3_$ncount)
495
+ evaluate ($i3end = $c6sym_end3_$ncount)
496
+ evaluate ($chain3 = $c6sym_seg3_$ncount)
497
+ evaluate ($i4start = $c6sym_sta4_$ncount)
498
+ evaluate ($i4end = $c6sym_end4_$ncount)
499
+ evaluate ($chain4 = $c6sym_seg4_$ncount)
500
+ evaluate ($i5start = $c6sym_sta5_$ncount)
501
+ evaluate ($i5end = $c6sym_end5_$ncount)
502
+ evaluate ($chain5 = $c6sym_seg5_$ncount)
503
+ evaluate ($i6start = $c6sym_sta6_$ncount)
504
+ evaluate ($i6end = $c6sym_end6_$ncount)
505
+ evaluate ($chain6 = $c6sym_seg6_$ncount)
506
+
507
+ !first check that the chain lengths are equal for the two defined molecules
508
+ evaluate ($diff1 = $i1end - $i1start)
509
+ evaluate ($diff2 = $i2end - $i2start)
510
+ evaluate ($diff3 = $i3end - $i3start)
511
+ evaluate ($diff4 = $i4end - $i4start)
512
+ evaluate ($diff5 = $i5end - $i5start)
513
+ evaluate ($diff6 = $i6end - $i6start)
514
+ if ($diff1 ne $diff2) then
515
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
516
+ display PLEASE CHECK CAREFULLY YOUR INPUT
517
+ display ... stopping ...
518
+ stop
519
+ end if
520
+ if ($diff1 ne $diff3) then
521
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
522
+ display PLEASE CHECK CAREFULLY YOUR INPUT
523
+ display ... stopping ...
524
+ stop
525
+ end if
526
+ if ($diff2 ne $diff3) then
527
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
528
+ display PLEASE CHECK CAREFULLY YOUR INPUT
529
+ display ... stopping ...
530
+ stop
531
+ end if
532
+ if ($diff3 ne $diff4) then
533
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
534
+ display PLEASE CHECK CAREFULLY YOUR INPUT
535
+ display ... stopping ...
536
+ stop
537
+ end if
538
+ if ($diff4 ne $diff5) then
539
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
540
+ display PLEASE CHECK CAREFULLY YOUR INPUT
541
+ display ... stopping ...
542
+ stop
543
+ end if
544
+ if ($diff5 ne $diff6) then
545
+ display CHAIN LENGHT FOR SYMMETRY RESTRAINTS DO NOT MATCH
546
+ display PLEASE CHECK CAREFULLY YOUR INPUT
547
+ display ... stopping ...
548
+ stop
549
+ end if
550
+
551
+ eval ($icount = 0)
552
+ while ($i1start < $i1end) loop genc6sym
553
+
554
+ evaluate ($resst1 = $i1start)
555
+ evaluate ($resst2 = $i2start)
556
+ evaluate ($resst3 = $i3start)
557
+ evaluate ($resst4 = $i4start)
558
+ evaluate ($resst5 = $i5start)
559
+ evaluate ($resst6 = $i6start)
560
+ evaluate ($resen1 = $i1end - $icount)
561
+ evaluate ($resen2 = $i2end - $icount)
562
+ evaluate ($resen3 = $i3end - $icount)
563
+ evaluate ($resen4 = $i4end - $icount)
564
+ evaluate ($resen5 = $i5end - $icount)
565
+ evaluate ($resen6 = $i6end - $icount)
566
+
567
+ noe
568
+
569
+ ! Around the C6 ring
570
+ ! N to N sequential restraints to prevent anti-parallel arrangements
571
+
572
+ assign (resid $resst1 and (name CA or name P or name BB) and segid $chain1)
573
+ (resid $resst2 and (name CA or name P or name BB) and segid $chain2) 0 0 0
574
+ assign (resid $resst2 and (name CA or name P or name BB) and segid $chain2)
575
+ (resid $resst3 and (name CA or name P or name BB) and segid $chain3) 0 0 0
576
+
577
+ assign (resid $resst2 and (name CA or name P or name BB) and segid $chain2)
578
+ (resid $resst3 and (name CA or name P or name BB) and segid $chain3) 0 0 0
579
+ assign (resid $resst3 and (name CA or name P or name BB) and segid $chain3)
580
+ (resid $resst4 and (name CA or name P or name BB) and segid $chain4) 0 0 0
581
+
582
+ assign (resid $resst3 and (name CA or name P or name BB) and segid $chain3)
583
+ (resid $resst4 and (name CA or name P or name BB) and segid $chain4) 0 0 0
584
+ assign (resid $resst4 and (name CA or name P or name BB) and segid $chain4)
585
+ (resid $resst5 and (name CA or name P or name BB) and segid $chain5) 0 0 0
586
+
587
+ assign (resid $resst4 and (name CA or name P or name BB) and segid $chain4)
588
+ (resid $resst5 and (name CA or name P or name BB) and segid $chain5) 0 0 0
589
+ assign (resid $resst5 and (name CA or name P or name BB) and segid $chain5)
590
+ (resid $resst6 and (name CA or name P or name BB) and segid $chain6) 0 0 0
591
+
592
+ assign (resid $resst5 and (name CA or name P or name BB) and segid $chain5)
593
+ (resid $resst6 and (name CA or name P or name BB) and segid $chain6) 0 0 0
594
+ assign (resid $resst6 and (name CA or name P or name BB) and segid $chain6)
595
+ (resid $resst1 and (name CA or name P or name BB) and segid $chain1) 0 0 0
596
+
597
+ assign (resid $resst6 and (name CA or name P or name BB) and segid $chain6)
598
+ (resid $resst1 and (name CA or name P or name BB) and segid $chain1) 0 0 0
599
+ assign (resid $resst1 and (name CA or name P or name BB) and segid $chain1)
600
+ (resid $resst2 and (name CA or name P or name BB) and segid $chain2) 0 0 0
601
+
602
+ ! N to C sequential restraints to assure planarity
603
+
604
+ assign (resid $resst1 and (name CA or name P or name BB) and segid $chain1)
605
+ (resid $resen2 and (name CA or name P or name BB) and segid $chain2) 0 0 0
606
+ assign (resid $resst2 and (name CA or name P or name BB) and segid $chain2)
607
+ (resid $resen3 and (name CA or name P or name BB) and segid $chain3) 0 0 0
608
+
609
+ assign (resid $resst2 and (name CA or name P or name BB) and segid $chain2)
610
+ (resid $resen3 and (name CA or name P or name BB) and segid $chain3) 0 0 0
611
+ assign (resid $resst3 and (name CA or name P or name BB) and segid $chain3)
612
+ (resid $resen4 and (name CA or name P or name BB) and segid $chain4) 0 0 0
613
+
614
+ assign (resid $resst3 and (name CA or name P or name BB) and segid $chain3)
615
+ (resid $resen4 and (name CA or name P or name BB) and segid $chain4) 0 0 0
616
+ assign (resid $resst4 and (name CA or name P or name BB) and segid $chain4)
617
+ (resid $resen5 and (name CA or name P or name BB) and segid $chain5) 0 0 0
618
+
619
+ assign (resid $resst4 and (name CA or name P or name BB) and segid $chain4)
620
+ (resid $resen5 and (name CA or name P or name BB) and segid $chain5) 0 0 0
621
+ assign (resid $resst5 and (name CA or name P or name BB) and segid $chain5)
622
+ (resid $resen6 and (name CA or name P or name BB) and segid $chain6) 0 0 0
623
+
624
+ assign (resid $resst5 and (name CA or name P or name BB) and segid $chain5)
625
+ (resid $resen6 and (name CA or name P or name BB) and segid $chain6) 0 0 0
626
+ assign (resid $resst6 and (name CA or name P or name BB) and segid $chain6)
627
+ (resid $resen1 and (name CA or name P or name BB) and segid $chain1) 0 0 0
628
+
629
+ ! Triples
630
+
631
+ assign (resid $resst1 and (name CA or name P or name BB) and segid $chain1)
632
+ (resid $resen3 and (name CA or name P or name BB) and segid $chain3) 0 0 0
633
+ assign (resid $resst3 and (name CA or name P or name BB) and segid $chain3)
634
+ (resid $resen5 and (name CA or name P or name BB) and segid $chain5) 0 0 0
635
+
636
+ assign (resid $resst3 and (name CA or name P or name BB) and segid $chain3)
637
+ (resid $resen5 and (name CA or name P or name BB) and segid $chain5) 0 0 0
638
+ assign (resid $resst5 and (name CA or name P or name BB) and segid $chain5)
639
+ (resid $resen1 and (name CA or name P or name BB) and segid $chain1) 0 0 0
640
+
641
+ assign (resid $resst2 and (name CA or name P or name BB) and segid $chain2)
642
+ (resid $resen4 and (name CA or name P or name BB) and segid $chain4) 0 0 0
643
+ assign (resid $resst4 and (name CA or name P or name BB) and segid $chain4)
644
+ (resid $resen6 and (name CA or name P or name BB) and segid $chain6) 0 0 0
645
+
646
+ assign (resid $resst4 and (name CA or name P or name BB) and segid $chain4)
647
+ (resid $resen6 and (name CA or name P or name BB) and segid $chain6) 0 0 0
648
+ assign (resid $resst6 and (name CA or name P or name BB) and segid $chain6)
649
+ (resid $resen2 and (name CA or name P or name BB) and segid $chain2) 0 0 0
650
+
651
+ end
652
+
653
+ evaluate ($icount = $icount + $istep)
654
+ evaluate ($i1start = $i1start + $istep)
655
+ evaluate ($i2start = $i2start + $istep)
656
+ evaluate ($i3start = $i3start + $istep)
657
+ evaluate ($i4start = $i4start + $istep)
658
+ evaluate ($i5start = $i5start + $istep)
659
+ evaluate ($i6start = $i6start + $istep)
660
+
661
+ end loop genc6sym
662
+
663
+ end loop c6symloop
664
+
665
+
666
+ noe
667
+ potential symm symmetry
668
+ scale symm $Data.ksym
669
+ sqconstant symm 1.0
670
+ sqexponent symm 2
671
+ soexponent symm 1
672
+ rswitch symm 0.5
673
+ sqoffset symm 0.0
674
+ asymptote symm 1.0
675
+ end
676
+
677
+ end if
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/mdref/defaults.yaml ADDED
The diff for this file is too large to render. See raw diff
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/openmm/.___init__.py ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/openmm/.___pycache__ ADDED
Binary file (4.1 kB). View file
 
.venv_haddock/lib/python3.12/site-packages/haddock/modules/refinement/openmm/._defaults.yaml ADDED
Binary file (4.1 kB). View file