This repository contains python scripts to perform absolute binding free enegy (ABFE) for a protein-ligand system. The binding free energy will be calculated using the double-decoupling method (DDM) and the free energy is obtained with thermodynamic integration (TI).
The scripts here will require some libraries, which I will list and go through the installation process.
NOTE: The libraries we will use will only work on Linux and MacOS. For Windows, you will need to install WSL.
If you don't already have Anaconda installed in your machine, then go to https://anaconda.org and install version 3. Most of the dependencies will be included when we install pAPRika. I recommend installing pAPRika in a fresh conda
environment.
These are the steps to install pAPRika:
- Download the latest release, extract it, and change to the
paprika
directory: - Change the
name
field indevtools/conda-envs/test_env.yaml
to bepaprika
. - Create the environment:
conda env create -f devtools/conda-envs/test_env.yaml
. - Activate the environment:
conda activate paprika
- Install
paprika
in the environment:pip install .
Next, we will install MDRestraintGenerator, which we will use to determine the anchor atoms for the free energy calculations.
pip install MDRestraintsGenerator
Finally, we will need to install OpenMMTools
conda install -c conda-forge openmmtools
I broke this up into three sections:
- 01-system_files System preparation of protein-ligand complex
- 02-equilibration Initial molecular dynamics (MD) simulation.
- 03-alchemical Free energy calculations
The first section will create the topology and coordinates files using AmberTools and pAPRika modules. This assumes that we have the ligand bound to the protein (either crystal structure or docking). The second part we run molecular dynamics (MD) simulations to make sure that the ligand is stable in the binding pocket. If not, then it would not benefit performing the ABFE calculations in the third step.