EP 10 | Protein-Ligand MD Simulation in Gromacs-A to Z | all reusable commands and files provided
Table of Contents
Introduction
This tutorial will guide you through the process of performing Molecular Dynamics (MD) simulations using Gromacs, specifically focusing on a protein-ligand complex. By following this step-by-step guide, you can replicate the simulation for any protein-ligand pair with universal commands provided.
Step 1: Prepare Your Files
Before starting the simulation, ensure you have the necessary files:
- Docked complex file (from previous docking simulations, e.g., UCSF Chimera).
- Gromacs codes and files available on GitHub.
Actions:
- Download and extract the files from the GitHub repository.
- Ensure the complex file is in a suitable format, such as PDB.
Step 2: Create Topologies for Protein and Ligand
You need to split the complex file into two parts: one for the receptor (protein) and one for the ligand.
Actions:
- Open the complex file in UCSF Chimera.
- Delete the protein chain to isolate the ligand.
- Add hydrogens to the ligand:
- Go to Tools > Structure Editing > Add Hydrogens.
- Save the ligand as a
.mol2
file, naming itLIG
. - Repeat the process to isolate the receptor, save it as a
.pdb
file, naming itREC
.
Step 3: Modify the Ligand File
You need to make specific edits to the ligand's .mol2
file for compatibility with Gromacs.
Actions:
- Open the
LIG.mol2
file in a text editor. - Ensure the first line reads
@TRIPOS MOLECULE
. - Change any reference to the original file's name to
LIG
. - Save and close the file.
Step 4: Generate Topologies Using SwissParam
Generate the necessary topology files for the ligand using the SwissParam server.
Actions:
- Go to the SwissParam website.
- Upload the
LIG.mol2
file. - Download the resulting ZIP file containing the topology files.
- Extract and place these files in your working directory.
Step 5: Prepare Gromacs Commands
With the topology files ready, you can now proceed to set up your Gromacs simulation.
Actions:
- Open a terminal in your working directory.
- Load Gromacs (if necessary) with the command:
source /path/to/gromacs/bin/GMXRC
- Run the following command to prepare the protein topology:
gmx pdb2gmx -f REC.pdb -o REC_processed.gro -water spce
- Select the appropriate force field and water model when prompted.
Step 6: Create a Simulation Box
Define the simulation space around your protein-ligand complex.
Actions:
- Use the command:
gmx editconf -f REC_processed.gro -o REC_box.gro -c -d 1.0 -bt cubic
- Solvate the system:
gmx solvate -cp REC_box.gro -cs spc216.gro -o REC_solv.gro
Step 7: Add Ions
Neutralize the system by adding ions.
Actions:
- Prepare the ions file:
gmx grompp -f ions.mdp -c REC_solv.gro -p topol.top -o ions.tpr
- Generate ions:
gmx genion -s ions.tpr -o REC_solv_ions.gro -p topol.top -neutral
Step 8: Energy Minimization
Minimize the energy of the system before proceeding to MD simulations.
Actions:
- Prepare the energy minimization:
gmx grompp -f em.mdp -c REC_solv_ions.gro -p topol.top -o em.tpr
- Run energy minimization:
gmx mdrun -deffnm em
Step 9: Equilibration
Perform equilibration of the system using NVT and NPT ensembles.
Actions:
-
Prepare NVT equilibration:
gmx grompp -f nvt.mdp -c em.gro -p topol.top -o nvt.tpr
-
Run NVT equilibration:
gmx mdrun -deffnm nvt
-
Prepare NPT equilibration:
gmx grompp -f npt.mdp -c nvt.gro -p topol.top -o npt.tpr
-
Run NPT equilibration:
gmx mdrun -deffnm npt
Step 10: Production MD Run
Finally, execute the MD simulation.
Actions:
- Prepare the MD run:
gmx grompp -f md.mdp -c npt.gro -p topol.top -o md.tpr
- Run the MD simulation:
gmx mdrun -deffnm md
Conclusion
You have successfully set up and executed an MD simulation using Gromacs for a protein-ligand complex. Key steps included preparing and modifying topology files, setting up the simulation box, adding solvent and ions, and performing equilibration followed by the MD run. Next, consider visualizing the output trajectories and analyzing the results for further insights into the molecular dynamics of your complex.