Create a virtual environment with Python 3.9:
You can use Python's venv
or conda
depending on your choice.
Commands are provided below:
python -m venv .venv
source .venv/bin/activate
conda create -n haddock3 python=3.9
conda activate haddock3
git clone https://github.com/haddocking/haddock3.git
cd haddock3
pip install .
To use the mpi implementation of haddock3 you must have mpi4py installed in the (haddock3)
python environment, and OpenMPI in the host system.
$ pip install mpi4py
# or
$ conda install -c conda-forge mpi4py
Later, you can find here instructions on how to run HADDOCK3 with MPI.
To run the restraints web service you must have the following dependencies installed in the (haddock3)
python environment:
pip install uvicorn fastapi
Information on the restraints web service can be found here.
HADDOCK3 can integrate third-party software in its workflows. We are not responsible for the proper installation of such packages, but we help you install them. Below, you will find a list of all third-party packages HADDOCK3 can use and guidelines for their proper installation.
To install lightdock follow the instructions on the project's website. Remember to install it under the same Python environment you created for HADDOCK3. If you have any doubts, please let us know.
- Clone the latest version:
cd some-folder
git clone https://github.com/rvhonorato/gdock.git
- Install Python3+ dependencies
pip install deap scipy mgzip biopython
- Set
GDOCK_PATH
export GDOCK_PATH=some-folder
Important: These are not the full gdock
installation
instructions as only the model generation is used here. Please check the
repository page for more
information.
The use of the openmm module requires the installation of both OpenMM and pdbfixer.
The venv installation instruction uses pip
and requires a python version >=3.10 (not functional with python3.9).
# Create a new virtual env
python3.12 -m venv hd3-openmm
source hd3-openmm/bin/activate
# Install haddock3
pip install .
# Install OpenMM
pip install openmm==8.2.0
# Install openmm - pdbfixer
pip install https://github.com/openmm/pdbfixer/archive/refs/tags/v1.10.tar.gz
The Conda installation instructions are using conda-forge to retrieve packages and requires a python3 version between 3.9 and 3.12.
conda create -n hd3-p39-openmm python=3.9
# Activate the haddock3 env
conda activate hd3-p39-openmm
# Install haddock3
pip install haddock3
# libstdxx must be installed, maybe already present in your system
conda install -c conda-forge libstdcxx-ng
# Install OpenMM and related tools/binaries
conda install -c conda-forge openmm==8.2.0 pdbfixer==1.10
OpenMM should automatically detect the fastest platform among those available on your machine.
Please refer to the official page of the project for a full description of the installation procedure.