Trouble Configuring HADDOCK2.5

Hi!
I’ve been able to complete CNS setup, but the final steps of the HADDOCK setup (for Haddock2.4 from the instruction manual webpage) don’t seem to be working for me:

Edit then a configuration file specific to your system.

This configuration file should contain the following information:

CNSTMP defining the location of your CNS executable
QUEUETMP defining the submission command for running the jobs (e.g. either via csh or through a specific command submitting to your local batch system)
NUMJOBs defining the number of concurrent jobs executed (or submitted).
QUEUESUB defining the HADDOCK python script used to run the jobs (the default QueueSubmit_concat.py should do in most cases).

And example configuration file for running on local resources assuming a 4 core system would be:

set CNSTMP=/home/software/cns/cns_solve-1.31-UU-Linux64bits.exe set QUEUETMP=/bin/csh set NUMJOB=4 set QUEUESUB=QueueSubmit_concat.py

For submitting to a batch system instead you might want to use a wrapper script. An example for torque can be found here.

In order to configure HADDOCK, call the install.csh script with as argument the configuration script you just created:

./install.csh my-config-file

I also tried using a wrapper script for running on slurm instead but this also didn’t seem to work for me.

This is my current configuration file:
cat haddock_config.ini
[HADDOCK]
CNS_EXE=/scratch/dkarunat/software/haddock2.5-2024-12/bin/cns
QUEUE_CMD=/cvmfs/soft.computecanada.ca/gentoo/2023/x86-64-v3/usr/bin/csh
NUM_JOBS=20
SUBMIT_SCRIPT=ssub_slurm

This is my current SLURM wrapper script:
#!/bin/csh -f
if ($#argv < 1) then
** echo “Usage : ssub_slurm jobname”**
** exit 1**
endif

# check if job exists + make it executable
set jobname=$1
if (! -e $1) then
** echo “job file does not exist”**
** exit 1**
endif
if (! -x $jobname) chmod +x $jobname

# write temporary slurm script
set slurmjob=$jobname.slurmjob.$$
if (! -e $slurmjob) then
** touch $slurmjob**
else
** \rm $slurmjob**
** touch $slurmjob**
endif
set PWD=pwd

echo “#!/bin/csh” >> $slurmjob
echo “#SBATCH --job-name=$jobname” >> $slurmjob
echo “#SBATCH --output=$PWD/$jobname.out.%j” >> $slurmjob
echo “#SBATCH --error=$PWD/$jobname.err.%j” >> $slurmjob
echo “#SBATCH --ntasks=1” >> $slurmjob
echo “#SBATCH --cpus-per-task=1” >> $slurmjob
echo “cd $PWD” >> $slurmjob
echo “./$jobname” >> $slurmjob

chmod +x $slurmjob
sbatch $slurmjob
rm -f $slurmjob
exit

QUEUE_CMD should point to your slurm submission script

Oh okay, so it should look like this?

[HADDOCK]
CNS_EXE=/scratch/dkarunat/software/haddock2.5-2024-12/bin/cns
QUEUE_CMD=ssub_slurm
NUM_JOBS=20
SUBMIT_SCRIPT=ssub_slurm

You don’t need the SUBMIT_SCRIPT entry
and best to give the full path to your script

Thank you! I believe that it worked:

This was the content of my final configuration file:

cat haddock_config.ini
[HADDOCK]
CNS_EXE=/scratch/dkarunat/software/haddock2.5-2024-12/bin/cns
QUEUE_CMD=/scratch/dkarunat/software/haddock2.5-2024-12/ssub_slurm
NUM_JOBS=20
[THIRD_PARTY]
PRODIGY=
WHISCY=
DISVIS=

python3 install.py haddock_config.ini
[2025/07/17 13:02:15] Reading configuration file
[2025/07/17 13:02:15] success!
[2025/07/17 13:02:15] Editing run.cns
[2025/07/17 13:02:16] success!
[2025/07/17 13:02:16] Configuring queue submission scripts
[2025/07/17 13:02:16] success!
[2025/07/17 13:02:16] Configuring results processing scripts
[2025/07/17 13:02:16] success!
[2025/07/17 13:02:16] Compiling C/C++ tools
[2025/07/17 13:02:21] success!
[2025/07/17 13:02:21] Writing source files
[2025/07/17 13:02:21] success!

Are you actually following the installation instructions of haddock2.5?

Check the INSTALLATION.md file in the haddock2.5 directory

I’ve tried to follow the instructions in that file and also the instructions in the manual on the haddock2.4 webpage, but I keep getting stuck.

The INSTALLATION.md file mentioned to install the third party software and I’ve downloaded the auxillary software mentioned on the webpage: CNS, Python 3.11, FreeSASA, reduce (MolProbity), HADDOCK-tools, PDB-tools.

But I’m not sure where to find the links mentioned for:
third-party executable not found in PATH: NACCESS
third-party executable not found in PATH: PALES
third-party executable not found in PATH: PROFIT
third-party executable not found in PATH: TENSOR2

I’ve followed the instructions for CNS and then tried to run haddock. I got the following output:

[dkarunat@gra-login2 haddock2.5-2024-12]$ python install.py configs/config.local
[2025/07/19 18:52:36] Reading configuration file
[2025/07/19 18:52:36] success!
[2025/07/19 18:52:36] Editing run.cns
[2025/07/19 18:52:36] success!
[2025/07/19 18:52:36] Configuring queue submission scripts
[2025/07/19 18:52:36] success!
[2025/07/19 18:52:36] Configuring results processing scripts
[2025/07/19 18:52:36] success!
[2025/07/19 18:52:36] Compiling C/C++ tools
[2025/07/19 18:52:41] success!
[2025/07/19 18:52:41] Writing source files
[2025/07/19 18:52:41] third-party executable not found in PATH: NACCESS
[2025/07/19 18:52:41] third-party executable not found in PATH: PALES
[2025/07/19 18:52:41] third-party executable not found in PATH: PROFIT
[2025/07/19 18:52:41] third-party executable not found in PATH: TENSOR2
[2025/07/19 18:52:41] success!

But I still am unable to run haddock on the example files:

[dkarunat@gra-login2 run1]$ haddock2.5
[2025-07-19 19:00:37]
##############################################################################

Starting HADDOCK2.5 #
#
N-components version of HADDOCK (current maximum is 20) #
#
Copyright 2003-2024 Alexandre Bonvin, Utrecht University. #
Originally adapted from Aria 1.2 from Nilges and Linge, EMBL. #
All rights reserved. #
This code is part of the HADDOCK software and governed by its #
license. Please see the LICENSE file that should have been included #
as part of this package. #

##############################################################################

[2025-07-19 19:00:37] Starting HADDOCK
[2025-07-19 19:00:37] HADDOCK version: 2.5 - December 2024
[2025-07-19 19:00:37] Parsing run.cns file
[2025-07-19 19:00:37] Parsing run.param in /scratch/dkarunat/software/haddock2.5-2024-12/examples/protein-ligand/run1/data
[2025-07-19 19:00:37] Reading parameters from the file /scratch/dkarunat/software/haddock2.5-2024-12/examples/protein-ligand/run1/data/run.param
[2025-07-19 19:00:37] setting some variables:
[2025-07-19 19:00:37] AMBIG_TBL set to: ./ambig-active-it0.tbl
[2025-07-19 19:00:37] HADDOCK_DIR set to: ../..
[2025-07-19 19:00:37] N_COMP set to: 2
[2025-07-19 19:00:37] PDB_FILE1 set to: ./neuraminidase-2BAT.pdb
[2025-07-19 19:00:37] PDB_FILE2 set to: ./oseltamivir_zwitterion.pdb
[2025-07-19 19:00:37] PROJECT_DIR set to: .
[2025-07-19 19:00:37] PROT_SEGID_1 set to: A
[2025-07-19 19:00:37] PROT_SEGID_2 set to: B
[2025-07-19 19:00:37] RUN_NUMBER set to: 1
[2025-07-19 19:00:37] UNAMBIG_TBL set to: ./ambig-passive-it1.tbl
[2025-07-19 19:00:37] AMBIG_TBL ./ambig-active-it0.tbl
[2025-07-19 19:00:37] HADDOCK_DIR ../..
[2025-07-19 19:00:37] N_COMP 2
[2025-07-19 19:00:37] PDB_FILE1 ./neuraminidase-2BAT.pdb
[2025-07-19 19:00:37] PDB_FILE2 ./oseltamivir_zwitterion.pdb
[2025-07-19 19:00:37] PROJECT_DIR .
[2025-07-19 19:00:37] PROT_SEGID_1 A
[2025-07-19 19:00:37] PROT_SEGID_2 B
[2025-07-19 19:00:37] RUN_NUMBER 1
[2025-07-19 19:00:37] UNAMBIG_TBL ./ambig-passive-it1.tbl
[2025-07-19 19:00:37] Looking for existing files
[2025-07-19 19:00:38] waterdock false
[2025-07-19 19:00:38] Generating PSF and PDB file of molecule 1
[2025-07-19 19:00:38] Generating PSF and PDB file of molecule 2
[2025-07-19 19:00:38] waiting for the psf files…
[2025-07-19 19:00:38] waiting for the psf files…
[2025-07-19 19:00:49] waiting for the psf files…
[2025-07-19 19:00:49] waiting for the psf files…
[2025-07-19 19:01:01] waiting for the psf files…
[2025-07-19 19:01:01] waiting for the psf files…
[2025-07-19 19:01:11] waiting for the psf files…
[2025-07-19 19:01:11] waiting for the psf files…
[2025-07-19 19:01:23] waiting for the psf files…
[2025-07-19 19:01:23] waiting for the psf files…
[2025-07-19 19:01:33] waiting for the psf files…
[2025-07-19 19:01:33] waiting for the psf files…
[2025-07-19 19:01:44] waiting for the psf files…
[2025-07-19 19:01:44] waiting for the psf files…
[2025-07-19 19:01:57] waiting for the psf files…
[2025-07-19 19:01:57] Error in the topology generation: prot_psf_mol2 could not be created
[2025-07-19 19:01:57] HADDOCK stopped
[2025-07-19 19:01:57] ##############################################################################
[2025-07-19 19:01:57] Finishing HADDOCK
[2025-07-19 19:01:57] Au revoir. Tot ziens. Bye bye.

third-party executable not found in PATH: NACCESS
third-party executable not found in PATH: PALES
third-party executable not found in PATH: PROFIT
third-party executable not found in PATH: TENSOR2

Not an issue. But installing profit could be nice to run the analysis. This is the software used in some scripts to calculate RMSDs.

Is the CNS executable working?
The one you defined in the config file.
For some troubleshooting instructions see: https://github.com/haddocking/haddock3/blob/main/docs/CNS.md

Try calling it from the command line.

Also if you are trying the protein-ligand example, you should follow the commands defined in run-example.csh as it does require copying the ligand param/topo files into the HADDOCK run directory.

Try first the protein-protein example