# Ab-initio warning

**URL:** https://ask.bioexcel.eu/t/ab-initio-warning/4370
**Category:** HADDOCK
**Created:** [June 7, 2023, 5:28pm UTC](https://ask.bioexcel.eu/t/ab-initio-warning/4370 "2023-06-07T17:28:59Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![gaurav.sharmapsit](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/gaurav.sharmapsit/32/689_2.png) [@gaurav.sharmapsit](https://ask.bioexcel.eu/u/gaurav.sharmapsit)
#### Post date: [June 7, 2023, 5:28pm UTC](https://ask.bioexcel.eu/t/ab-initio-warning/4370/1 "2023-06-07T17:28:59Z")

</div>

Hello, I am getting this error while running ab-initio docking on linux.

TOTAL NUMBER OF DISTANCE RESTRAINTS FOR RIGID BODY DOCKING IS ZERO!  
CONTROL YOUR PARAMETER SETTINGS AND RESTRAINT DEFINITIONS  
STRUCTURE NUMBER 1

I have made following changes in the run.cns file.

1: Number of structures to dock = **10000,400,400**  
2: analysis and clustering = **RMSD, 7.5**  
3: Do you want to randomly exclude a fraction of the ambiguous restraints (AIRs)? noecv= **true**  
4: epsilon\_0 (it0) = **10.0** and epsilon\_0 (it1) = **10.0**

Please tell me what I am doing wrong.  
Thank you

---

<div class="post-metadata">

### Author: ![amjjbonvin](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/amjjbonvin/32/23_2.png) [@amjjbonvin](https://ask.bioexcel.eu/u/amjjbonvin)
#### Post date: [June 8, 2023, 8:51am UTC](https://ask.bioexcel.eu/t/ab-initio-warning/4370/2 "2023-06-08T08:51:23Z")

</div>

You will have to enable either the center of mass restraints (cmrest=true) or the random AIRs (ranair=true) in run.cns for ab-initio docking

---

<div class="post-metadata">

### Author: ![honoratorv](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/honoratorv/32/672_2.png) [@honoratorv](https://ask.bioexcel.eu/u/honoratorv)
#### Post date: [June 8, 2023, 9:41am UTC](https://ask.bioexcel.eu/t/ab-initio-warning/4370/3 "2023-06-08T09:41:16Z")

</div>

Thanks for reporting this warning @gaurav.sharmapsit.

There is information about ab-initio docking in our Best Practices Guide, please have a look at the ab initio section: [How to use information about interactions in HADDOCK? – Bonvin Lab](https://www.bonvinlab.org/software/bpg/restraints/#ab-initio-docking)

In this guide you will also find an explanation about the different types of ab initio docking supported by HADDOCK - [Random interaction restraints](https://www.bonvinlab.org/haddock2.4/airs/#random-air-definition-ab-initio-mode), [Surface contact restraints](https://www.bonvinlab.org/haddock2.4/airs/#surface-contact-restraint) and [Center of mass restraints](https://www.bonvinlab.org/software/haddock2.4/airs/#center-of-mass-restraints).

The best one to use will depend on your scenario, please have a look at the guide and the tutorials that it references. Good luck!

---

<div class="post-metadata">

### Author: ![gaurav.sharmapsit](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/gaurav.sharmapsit/32/689_2.png) [@gaurav.sharmapsit](https://ask.bioexcel.eu/u/gaurav.sharmapsit)
#### Post date: [June 16, 2023, 5:33pm UTC](https://ask.bioexcel.eu/t/ab-initio-warning/4370/4 "2023-06-16T17:33:01Z")

</div>

Hello,

Thanks for the reply. One more question. where is the run.cns file is saved. If I want to make modifications.

Best

---

<div class="post-metadata">

### Author: ![amjjbonvin](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/amjjbonvin/32/23_2.png) [@amjjbonvin](https://ask.bioexcel.eu/u/amjjbonvin)
#### Post date: [June 17, 2023, 3:17pm UTC](https://ask.bioexcel.eu/t/ab-initio-warning/4370/5 "2023-06-17T15:17:12Z")

</div>

When using the server, you can download all pre-processed file before submission.

And otherwise you can find it in the full archive of the run provided in the results pages.

But you can’t upload a modified run.cns file to the server

---

<div class="post-metadata">

### Author: ![gaurav.sharmapsit](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/gaurav.sharmapsit/32/689_2.png) [@gaurav.sharmapsit](https://ask.bioexcel.eu/u/gaurav.sharmapsit)
#### Post date: [June 20, 2023, 6:49pm UTC](https://ask.bioexcel.eu/t/ab-initio-warning/4370/6 "2023-06-20T18:49:15Z")

</div>

Okay. Thanks for the explanation.

I am running ab initio docking in with 10000, 400 and 400 docking steps. However, in first 10000 steps I am getting the following error:  
_Structure 8056: running_  
_Structure 8057: running_  
_------------------------------------------------------------_  
_HADDOCK has detected an error_  
_Check the FAILED file in /home/abwer/Downloads/haddock2.4-2022-01/examples/CD44\_d24\_blind/run1_  
_Stopping…_

- Cleaning up the run directory …\*  
_Cleaning up HADDOCK run directory_  
_Only files for structure #1 will be kept…_  
_QUEUE\_DOWN_  
_gzip: CD44\_d24\_blind\_run1\_it0\_refine\_8048.out: No such file or directory_

_Queue command failed, retrying in 15 seconds_  
_QUEUE\_DOWN_  
_gzip: CD44\_d24\_blind\_run1\_it0\_refine\_8047.out: No such file or directory_

_Queue command failed, retrying in 15 seconds_  
_##############################################################################_  
_Finishing HADDOCK on: 2023-06-20 14:44:17_  
_Au revoir._  
_Tot ziens._  
_Bye bye._  
I can fix it by deleting the FAILED file and running haddock again. However, what is the actual reason and how to prevent this error from happening again and again.

Thanks you so much for your guidance  
Gaurav

---

<div class="post-metadata">

### Author: ![amjjbonvin](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/amjjbonvin/32/23_2.png) [@amjjbonvin](https://ask.bioexcel.eu/u/amjjbonvin)
#### Post date: [June 21, 2023, 6:25am UTC](https://ask.bioexcel.eu/t/ab-initio-warning/4370/7 "2023-06-21T06:25:22Z")

</div>

Check the content of the FAILED file if any.

You are running a local version, which one?

This file is generated usually if no restraints are defined. What mode are you using for ab-initio docking?

---

<div class="post-metadata">

### Author: ![gaurav.sharmapsit](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/gaurav.sharmapsit/32/689_2.png) [@gaurav.sharmapsit](https://ask.bioexcel.eu/u/gaurav.sharmapsit)
#### Post date: [June 21, 2023, 2:13pm UTC](https://ask.bioexcel.eu/t/ab-initio-warning/4370/8 "2023-06-21T14:13:14Z")

</div>

The FAILED file was empty. I am using Haddock 2.4 version January release. For distance restraint I have only changed the {===\>} cmrest=true;

Following are the distance restraint in run.cns  
{===\>} noecv=true;  
{===\>} ncvpart=2;  
{===\>} hbonds\_on=false;  
{===\>} ranair=false;  
**{===\>} cmrest=true;**  
{===\>} cmtight=true;  
{===\>} kcont=1.0;  
{===\>} surfrest=false;  
{===\>} ksurf=1.0;

Finally, I am not sure about the mode. But these are the two “mode” I found in run.cns file.

{\* number of semi-flexible segments for molecule 1 (-1 for automated mode) _}  
{_ Note that current max is 10 (edit the run.cns to add more segments \*}  
{===\>} nseg\_1=-1;

{\* Rebuild missing atoms in the context of the complex? (refinement mode) \*}  
{+ choice: true false +}  
{===\>} rebuildcplx=false;

Thank you for your help

---

<div class="post-metadata">

### Author: ![amjjbonvin](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/amjjbonvin/32/23_2.png) [@amjjbonvin](https://ask.bioexcel.eu/u/amjjbonvin)
#### Post date: [June 22, 2023, 6:32am UTC](https://ask.bioexcel.eu/t/ab-initio-warning/4370/9 "2023-06-22T06:32:44Z")

</div>

Ok - nothing special

In any case you can try:

1. to delete the FAILED file

2. run haddock-clean from the tools directory to clean the output files

3. restart haddock in the run directory. It will try to complete the missing models (i.e. do not delete the PDB files or start a new run)

And eventually you can change the CNS code in the protocols directory not to write those FAILED files in case of problems…  
You might get bad models (or undocked ones) in that case. There are two instance of writing the FAILED file in the refine.inp CNS script.  
Search for FAILED and in particular the

```
evaluate ($errfile = "RUN:FAILED”)

```

statements. And change `RUN:FAILED` to e.g. `RUN:WARNING`

---

<div class="post-metadata">

### Author: ![valerio](https://avatars.discourse-cdn.com/v4/letter/v/3be4f8/32.png) [@valerio](https://ask.bioexcel.eu/u/valerio)
#### Post date: [December 12, 2024, 2:45pm UTC](https://ask.bioexcel.eu/t/ab-initio-warning/4370/10 "2024-12-12T14:45:19Z")

</div>

Hello,

I’m also running on Haddock2.4 local and I had the same error:

TOTAL NUMBER OF DISTANCE RESTRAINTS FOR RIGID BODY DOCKING IS ZERO!  
CONTROL YOUR PARAMETER SETTINGS AND RESTRAINT DEFINITIONS  
STRUCTURE NUMBER 1

I was following the tutorial for ab-inition Ab-antigen docking ([Tutorial describing the use of a local version of HADDOCK2.4 – Bonvin Lab](https://www.bonvinlab.org/education/HADDOCK24/HADDOCK24-local-tutorial/#dealing-with-multi-chain-proteins)) hance I was using VH-VL restraints and freeSASA\>40% residues as passive resiudes for the antigen. But no randomAIR of Surface Contacts as per the tutorial.

I read in this topic that including randomAIR and Surface Contacts might resolve the issue. Is there any counter indications in my case of study against this so that was absent in the tutorial?

on the run.cns is really easy to turn both true, but I didn’t get if Surface contacts will work with the run.cns selection of semiflexible region as is (automatic) or if I have to insert the sequence of the protein.

Thanks

---

<div class="post-metadata">

### Author: ![amjjbonvin](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/amjjbonvin/32/23_2.png) [@amjjbonvin](https://ask.bioexcel.eu/u/amjjbonvin)
#### Post date: [December 12, 2024, 3:04pm UTC](https://ask.bioexcel.eu/t/ab-initio-warning/4370/11 "2024-12-12T15:04:47Z")

</div>

most likely something is wrong with your restraints.

check for example that the segid definitions match what you have in your pdb files
