OnWorks favicon

gmx-rotmat - Online in the Cloud

Run gmx-rotmat in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command gmx-rotmat that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



gmx-rotmat - Plot the rotation matrix for fitting to a reference structure


gmx rotmat [-f [<.xtc/.trr/...>]] [-s [<.tpr/.gro/...>]] [-n [<.ndx>]]
[-o [<.xvg>]] [-b <time>] [-e <time>] [-dt <time>]
[-[no]w] [-xvg <enum>] [-ref <enum>] [-skip <int>]
[-[no]fitxy] [-[no]mw]


gmx rotmat plots the rotation matrix required for least squares fitting a conformation
onto the reference conformation provided with -s. Translation is removed before fitting.
The output are the three vectors that give the new directions of the x, y and z directions
of the reference conformation, for example: (zx,zy,zz) is the orientation of the reference
z-axis in the trajectory frame.

This tool is useful for, for instance, determining the orientation of a molecule at an
interface, possibly on a trajectory produced with gmx trjconv -fit rotxy+transxy to remove
the rotation in the x-y plane.

Option -ref determines a reference structure for fitting, instead of using the structure
from -s. The structure with the lowest sum of RMSD's to all other structures is used.
Since the computational cost of this procedure grows with the square of the number of
frames, the -skip option can be useful. A full fit or only a fit in the x-y plane can be

Option -fitxy fits in the x-y plane before determining the rotation matrix.


Options to specify input files:

-f [<.xtc/.trr/...>] (traj.xtc)
Trajectory: xtc trr cpt gro g96 pdb tng

-s [<.tpr/.gro/...>] (topol.tpr)
Structure+mass(db): tpr gro g96 pdb brk ent

-n [<.ndx>] (index.ndx) (Optional)
Index file

Options to specify output files:

-o [<.xvg>] (rotmat.xvg)
xvgr/xmgr file

Other options:

-b <time> (0)
First frame (ps) to read from trajectory

-e <time> (0)
Last frame (ps) to read from trajectory

-dt <time> (0)
Only use frame when t MOD dt = first time (ps)

-[no]w (no)
View output .xvg, .xpm, .eps and .pdb files

-xvg <enum>
xvg plot formatting: xmgrace, xmgr, none

-ref <enum> (none)
Determine the optimal reference structure: none, xyz, xy

-skip <int> (1)
Use every nr-th frame for -ref

-[no]fitxy (no)
Fit the x/y rotation before determining the rotation

-[no]mw (yes)
Use mass weighted fitting

Use gmx-rotmat online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Sardi is a complete restyling and
    optimisation of svg code. 6 choices for
    your applications and 10 kind of folders
    to use in your file manager. The sardi
    Download Sardi
  • 2
    LMMS Digital Audio Workstation
    LMMS Digital Audio Workstation
    LMMS is a free cross-platform software
    which allows you to produce music with
    your computer. If you like this project
    consider getting involved in the project
    Download LMMS Digital Audio Workstation
  • 3
    FreeRTOS Real Time Kernel (RTOS)
    FreeRTOS Real Time Kernel (RTOS)
    FreeRTOS is a market-leading real-time
    operating system (RTOS) for
    microcontrollers and small
    microprocessors. Distributed freely
    under the MIT open source lice...
    Download FreeRTOS Real Time Kernel (RTOS)
  • 4
    Avogadro is an advanced molecular
    editor designed for cross-platform use
    in computational chemistry, molecular
    modeling, bioinformatics, materials
    science and ...
    Download Avogadro
  • 5
    XMLTV is a set of programs to process
    TV (tvguide) listings and help manage
    your TV viewing, storing listings in an
    XML-based format. There are utilities to
    Download XMLTV
  • 6
    Strikr Free Software project. Artifacts
    released under a 'intent based'
    dual license: AGPLv3 (community) and
    CC-BY-NC-ND 4.0 international
    Download strikr
  • More »

Linux commands