How to Run AMBER MD Simulations on DiPhyx
This guide provides step-by-step instructions to run AMBER MD simulations on DiPhyx, using a predefined shell script run_script.sh
. Ensure that you have prepared all necessary input files and the script as described below.
run_script.sh
file containing necessary shell commandsprmtop
): This file contains the molecular topology and is required to define the system.inpcrd
): Provides the initial coordinates for the system.mdin
): Controls the simulation parameters.Ensure these files are correctly configured as per your simulation requirements.
Below is an example of what run_script.sh
might look like for running a minimization and equilibration protocol:
#!/bin/bash # Run Minimization mpirun -np 20 pmemd.MPI -O -i min.in -o min.out -p system.prmtop -c system.inpcrd -r min.rst -ref system.inpcrd # Run Equilibration mpirun -np 20 pmemd.MPI -O -i eq.in -o eq.out -p system.prmtop -c min.rst -r eq.rst # More steps can be added as needed
Replace paths and filenames as necessary for your specific setup.
Upload your prmtop
, inpcrd
, mdin
files, and run_script.sh
to your designated workspace on DiPhyx.
Once the simulation is complete, output files will be generated, such as min.out and eq.out, which can be used to analyze the results. DiPhyx allows monitoring of the job's progress through its job management tools.
Here is an example we developed based on the Free Energy Calculation Toturial by AmberMD.
This tutorial is focusing on the Ras-Raf protein complex—a key component in signal transduction pathways. The process begins with the preparation of the Ras-Raf complex by removing unnecessary components, such as the GTP nucleotide and a magnesium ion, to simplify the system. After generating the necessary topology and coordinate files, the system is solvated, and an equilibration process is initiated through a series of energy minimizations and temperature and density adjustments. Once the system reaches equilibrium, a production simulation is run, recording the system's coordinates over time to capture an ensemble of structural snapshots. These snapshots are essential for subsequent binding free energy calculations using the MM-PBSA method. The tutorial emphasizes the importance of ensuring that the system remains in equilibrium during the production phase, as deviations can impact the accuracy of the final free energy calculations.
The input files are zipped in a single file tutorial3.zip
2. run_script.sh:
You don't need to unzip the input files and the unzip instruction is already included in the run_script.sh:
#!/bin/bash # Define the working directory and the tutorial directory PROJECT_DIR="/data" TUTORIAL_DIR="tutorial3" ZIP_FILE="toturial3.zip" # Navigate to the working directory cd "$PROJECT_DIR" || { echo "Failed to change directory to $PROJECT_DIR. Exiting."; exit 1; } ech $ZIP_FILE # Unzip the inputs if [ -f "$ZIP_FILE" ]; then echo "Unzipping input files..." unzip -o "$ZIP_FILE" -d "$TUTORIAL_DIR" else echo "$ZIP_FILE does not exist in the current directory. Exiting." exit 1 fi # Navigate to the tutorial directory cd "$TUTORIAL_DIR" || { echo "Failed to change directory to $TUTORIAL_DIR. Exiting."; exit 1; } # Equilibrate the solvated complex echo "Step 1: Energy Minimization" sander -O -i min.in -o min.out -p ras-raf_solvated.prmtop -c ras-raf_solvated.inpcrd -r min.rst -ref ras-raf_solvated.inpcrd echo "Step 2: Heating the System" sander -O -i heat.in -o heat.out -p ras-raf_solvated.prmtop -c min.rst -r heat.rst -x heat.mdcrd -ref min.rst gzip -9 heat.mdcrd echo "Step 3: Density Equilibration" sander -O -i density.in -o density.out -p ras-raf_solvated.prmtop -c heat.rst -r density.rst -x density.mdcrd -ref heat.rst gzip -9 density.mdcrd echo "Step 4: Production Equilibration" sander -O -i equil.in -o equil.out -p ras-raf_solvated.prmtop -c density.rst -r equil.rst -x equil.mdcrd gzip -9 equil.mdcrd echo "Processing MD output files" ./process_mdout.pl heat.out density.out equil.out echo "AMBER MD Simulation steps completed successfully."