GMX-COVAR(1)
β¨ GMX-COVAR β it's giving "main character of your trajectory" β¨
okay so bestie, we're in the GROMACS manual pages, section 1, and today's girlie is gmx-covar π
πΈ NAME πΈ
gmx-covar β calculate and diagonalize the covariance matrix
π SYNOPSIS π
gmx covar [-f [<.xtc/.trr/...>]] [-s [<.tpr/.gro/...>]] [-n [<.ndx>]]
[-o [<.xvg>]] [-v [<.trr/.cpt/...>]]
[-av [<.gro/.g96/...>]] [-l [<.log>]] [-ascii [<.dat>]]
[-xpm [<.xpm>]] [-xpma [<.xpm>]] [-b <time>] [-e <time>]
[-dt <time>] [-tu <enum>] [-xvg <enum>] [-[no]fit]
[-[no]ref] [-[no]mwa] [-last <int>] [-[no]pbc]
π¦ DESCRIPTION π¦
so gmx covar calculates and diagonalizes the (mass-weighted) covariance matrix. that's the whole vibe. β¨
every structure gets fitted to the structure in the structure file. but β important β when that structure file is not a run input file, periodicity is not taken into account, no cap. and when the fit group and the analysis group are the same group and the analysis is non mass-weighted, then the fit is also non mass-weighted. the vibes sync up automatically, iconic.
the eigenvectors get written to a trajectory file (-v) π. when the same atoms are used for both the fit and the covariance analysis, the reference structure for the fit gets written first, with t=-1. the average structure β or the reference structure when -ref is used β gets written with t=0. and then the eigenvectors get written as frames with the eigenvector number as the step number and the eigenvalue as the timestamp. cute, right?
you can then analyze those eigenvectors with gmx anaeig, bestie. go off. π₯
option -ascii writes the whole covariance matrix to an ASCII file. the order of the elements is: x1x1, x1y1, x1z1, x1x2, ...
option -xpm writes the whole covariance matrix to an .xpm file.
option -xpma writes the atomic covariance matrix to an .xpm file β meaning for each atom pair, the sum of the xx, yy and zz covariances gets written. simple math, gorgeous execution. π
β οΈ okay serious moment, listen up: the diagonalization of a matrix needs memory and time that increases at least as fast as the square of the number of atoms involved. it is genuinely easy to run out of memory here, and if that happens this tool will probably exit with a 'Segmentation fault'. π like, actually. you should think carefully about whether a reduced set of atoms would still meet your needs β because it's way cheaper. protect your RAM, protect your peace. π«Ά
π OPTIONS π
π§ options to specify input files
-f [<.xtc/.trr/...>](traj.xtc) β the trajectory. file types:xtc trr cpt gro g96 pdb tng h5md-s [<.tpr/.gro/...>](topol.tpr) β structure plus mass (db). file types:tpr gro g96 pdb brk ent-n [<.ndx>](index.ndx) (Optional) β the index file
π options to specify output files
-o [<.xvg>](eigenval.xvg) β an xvgr/xmgr file-v [<.trr/.cpt/...>](eigenvec.trr) β full precision trajectory. file types:trr cpt tng h5md-av [<.gro/.g96/...>](average.pdb) β a structure file. file types:gro g96 pdb brk ent esp-l [<.log>](covar.log) β the log file-ascii [<.dat>](covar.dat) (Optional) β a generic data file-xpm [<.xpm>](covar.xpm) (Optional) β an X PixMap compatible matrix file-xpma [<.xpm>](covara.xpm) (Optional) β an X PixMap compatible matrix file
π other options
-b <time>(0) β time of the first frame to read from the trajectory (default unit isps)-e <time>(0) β time of the last frame to read from the trajectory (default unit isps)-dt <time>(0) β only use a frame whent MOD dt = first time(default unit isps)-tu <enum>(ps) β unit for time values:fs, ps, ns, us, ms, s-xvg <enum>(xmgrace) β xvg plot formatting:xmgrace, xmgr, none-[no]fit(yes) β fit to a reference structure-[no]ref(no) β use the deviation from the conformation in the structure file instead of from the average-[no]mwa(no) β mass-weighted covariance analysis-last <int>(-1) β the last eigenvector to write away (-1means till the last one)-[no]pbc(yes) β apply corrections for periodic boundary conditions
π SEE ALSO π
more info about GROMACS lives at <β http://www.gromacs.org/>. iykyk π
π COPYRIGHT π
2026, GROMACS development team
and that's the whole page, bestie β you ate that. π β¨
signing off from version 2026.4, dated Oct 02, 2026 β GROMACS girlies stay winning π«ΆπΈ
π¦ where this page comes from
- nixpkgs unstable: gromacs 2026.4
- ubuntu stonking: gromacs-data 2026.4-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms