Root-mean-square Deviation (RMSD) & Radius of Gyration (Rg) Calculations
Calculate RMSD & Rg for each frame in all simulations and output to logfile. The script will not regenerate the *.xvg
files if they already exist.
$ usegromacs33
$ ./calc-rmsd-rg.pl PROJ1797 index.ndx topol.gro output.log
$ head output.log
1797 0 1 0 0.034 11.335
1797 0 1 100 3.492 12.696
1797 0 1 200 3.266 12.475
1797 0 1 300 3.324 12.576
1797 0 1 400 3.330 12.642
...
Download a zip ball of the source code from here.
You can also use the git clone
command as followed.
git clone https://github.com/sorinlab/fahda-rmsd-rg
cd fahda-rmsd-rg
git submodule init
git submodule update
rmsd-rg-calc.pl <project_dir> <index.ndx> <topol.gro> <output.log>
--clean-artifacts
When specified the generated *.xvg files are removed after the
script finishes.
IMPORTANT:
* index.ndx and topol.gro must have absolute paths.
* call "usegromacs33" or similar before running this script.