Scroll to navigation



gmx-disre - Analyze distance restraints


gmx disre [-s [<.tpr>]] [-f [<.xtc/.trr/...>]] [-n [<.ndx>]]

[-c [<.ndx>]] [-ds [<.xvg>]] [-da [<.xvg>]] [-dn [<.xvg>]]
[-dm [<.xvg>]] [-dr [<.xvg>]] [-l [<.log>]] [-q [<.pdb>]]
[-x [<.xpm>]] [-b <time>] [-e <time>] [-dt <time>] [-[no]w]
[-xvg <enum>] [-ntop <int>] [-maxdr <real>]
[-nlevels <int>] [-[no]third]


gmx disre computes violations of distance restraints. The program always computes the instantaneous violations rather than time-averaged, because this analysis is done from a trajectory file afterwards it does not make sense to use time averaging. However, the time averaged values per restraint are given in the log file.

An index file may be used to select specific restraints by index group label for printing.

When the optional -q flag is given a .pdb file coloured by the amount of average violations.

When the -c option is given, an index file will be read containing the frames in your trajectory corresponding to the clusters (defined in another manner) that you want to analyze. For these clusters the program will compute average violations using the third power averaging algorithm and print them in the log file.


Options to specify input files:

Portable xdr run input file
Trajectory: xtc trr cpt gro g96 pdb tng
Index file
Index file

Options to specify output files:

xvgr/xmgr file
xvgr/xmgr file
xvgr/xmgr file
xvgr/xmgr file
xvgr/xmgr file
Log file
Protein data bank file
X PixMap compatible matrix file

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)
-[no]w (no)
View output .xvg, .xpm, .eps and .pdb files
xvg plot formatting: xmgrace, xmgr, none
Number of large violations that are stored in the log file every step
Maximum distance violation in matrix output. If less than or equal to 0 the maximum will be determined by the data.
Number of levels in the matrix output
-[no]third (yes)
Use inverse third power averaging or linear for matrix output



More information about GROMACS is available at <>.


2023, GROMACS development team

October 19, 2023 2023.3