DOKK / manpages / debian 12 / gromacs-data / gmx-rms.1.en
GMX-RMS(1) GROMACS GMX-RMS(1)

gmx-rms - Calculate RMSDs with a reference structure and RMSD matrices

gmx rms [-s [<.tpr/.gro/...>]] [-f [<.xtc/.trr/...>]]

[-f2 [<.xtc/.trr/...>]] [-n [<.ndx>]] [-o [<.xvg>]]
[-mir [<.xvg>]] [-a [<.xvg>]] [-dist [<.xvg>]] [-m [<.xpm>]]
[-bin [<.dat>]] [-bm [<.xpm>]] [-b <time>] [-e <time>]
[-dt <time>] [-tu <enum>] [-[no]w] [-xvg <enum>]
[-what <enum>] [-[no]pbc] [-fit <enum>] [-prev <int>]
[-[no]split] [-skip <int>] [-skip2 <int>] [-max <real>]
[-min <real>] [-bmax <real>] [-bmin <real>] [-[no]mw]
[-nlevels <int>] [-ng <int>]


gmx rms compares two structures by computing the root mean square deviation (RMSD), the size-independent rho similarity parameter (rho) or the scaled rho (rhosc), see Maiorov & Crippen, Proteins 22, 273 (1995). This is selected by -what.

Each structure from a trajectory (-f) is compared to a reference structure. The reference structure is taken from the structure file (-s).

With option -mir also a comparison with the mirror image of the reference structure is calculated. This is useful as a reference for 'significant' values, see Maiorov & Crippen, Proteins 22, 273 (1995).

Option -prev produces the comparison with a previous frame the specified number of frames ago.

Option -m produces a matrix in .xpm format of comparison values of each structure in the trajectory with respect to each other structure. This file can be visualized with for instance xv and can be converted to postscript with gmx xpm2ps.

Option -fit controls the least-squares fitting of the structures on top of each other: complete fit (rotation and translation), translation only, or no fitting at all.

Option -mw controls whether mass weighting is done or not. If you select the option (default) and supply a valid .tpr file masses will be taken from there, otherwise the masses will be deduced from the atommass.dat file in GMXLIB (deprecated). This is fine for proteins, but not necessarily for other molecules. You can check whether this happened by turning on the -debug flag and inspecting the log file.

With -f2, the 'other structures' are taken from a second trajectory, this generates a comparison matrix of one trajectory versus the other.

Option -bin does a binary dump of the comparison matrix.

Option -bm produces a matrix of average bond angle deviations analogously to the -m option. Only bonds between atoms in the comparison group are considered.

Options to specify input files:

Structure+mass(db): tpr gro g96 pdb brk ent
Trajectory: xtc trr cpt gro g96 pdb tng
Trajectory: xtc trr cpt gro g96 pdb tng
Index file

Options to specify output files:


Other options:

Time of first frame to read from trajectory (default unit ps)
Time of last frame to read from trajectory (default unit ps)
Only use frame when t MOD dt = first time (default unit ps)
Unit for time values: fs, ps, ns, us, ms, s
-[no]w (no)
View output .xvg, .xpm, .eps and .pdb files
xvg plot formatting: xmgrace, xmgr, none
Structural difference measure: rmsd, rho, rhosc
-[no]pbc (yes)
PBC check
Fit to reference structure: rot+trans, translation, none
Compare with previous frame
-[no]split (no)
Split graph where time is zero
Only write every nr-th frame to matrix
Only write every nr-th frame to matrix
Maximum level in comparison matrix
Minimum level in comparison matrix
Maximum level in bond angle matrix
Minimum level in bond angle matrix
-[no]mw (yes)
Use mass weighting for superposition
Number of levels in the matrices
Number of groups to compute RMS between

gmx(1)

More information about GROMACS is available at <http://www.gromacs.org/>.

2023, GROMACS development team

February 3, 2023 2022.5