ParGaMD combines Gaussian Accelerated Molecular Dynamics (GaMD) with the Weighted Ensemble (WE) framework to enhance sampling efficiency in molecular simulations.
Simulation Steps:
-
Run a Conventional GaMD Simulation:
- Navigate to the
cMD
directory. - Execute:
sbatch run_cmd.sh
- This generates
gamd-restart.dat
for ParGaMD setup.
- Navigate to the
-
Configure the WE Framework:
- In the main directory, run:
./run_WE.sh
- This copies
gamd-restart.dat
andbstate.rst
to the appropriate WE directories.
- In the main directory, run:
-
Update
west.cfg
:- Set
pcoord_len
tonstlim/ntpr + 1
inwest.cfg
. - Ensure
nstlim
andntpr
incommon_files/md.in
are correctly specified.
- Set
-
Submit the ParGaMD Simulation:
- Retrieve the cGaMD job ID:
squeue -u <username>
- Submit ParGaMD as a dependent job:
sbatch --dependency=afterok:<jobid> run_WE.sh
- Update
NODELOC
inenv.sh
to the current directory.
- Retrieve the cGaMD job ID:
-
Post-Processing:
- After completion, process data to obtain
gamd.log
andPC.dat
:sbatch run_data.sh
- Note: Submit
run_data.sh
on a compute node to avoid memory issues.
- After completion, process data to obtain
Reweighting for Free Energy Surfaces (FES):
-
Extract Weights:
- Generate
weights.dat
fromgamd.log
:awk 'NR%1==0' gamd.log | awk '{print ($8+$7)/(0.001987*300)" "$2" "($8+$7)}' > weights.dat
- Generate
-
Prepare Coordinates:
- Combine
PC1.dat
andPC2.dat
for a 2D surface:awk 'NR==FNR{a[NR]=$2; next} {print a[FNR], $2}' PC1.dat PC2.dat > output.dat
- Combine
-
Generate Free Energy Surface:
- Run the reweighting script:
./reweight-2d.sh 50 50 0.1 0.1 output.dat 300
50 50
: Cutoffs for both progress coordinates.0.1 0.1
: Bin spacing for the coordinates.300
: Temperature in Kelvin.
- Run the reweighting script:
For detailed instructions and resources, refer to the ParGaMD GitHub repository.
By following these steps, you can effectively perform ParGaMD simulations to explore biomolecular dynamics with enhanced sampling and parallelization.
Sources:
- For installing WESTPA see instructions at https://github.com/westpa/westpa
- GamD information at Yinglong Miao, Victoria A. Feher, and J. Andrew McCammon Journal of Chemical Theory and Computation 2015 11 (8), 3584-3595 DOI: 10.1021/acs.jctc.5b00436 and https://www.med.unc.edu/pharm/miaolab/resources/gamd/
- https://github.com/westpa
- https://github.com/Sonti974948/ParGaMD (ParGaMD for protein folding example if you want to start with a tutorial and smaller system)