GMX-ANAEIG(1)
π GMX-ANAEIG π
okay bestie, welcome to gmx-anaeig β a page from the GROMACS manual, and yes we are going to make eigenvectors make sense today. π¦
β¨ NAME β¨
gmx-anaeig β analyze eigenvectors / normal modes π
β¨ SYNOPSIS β¨
gmx anaeig [-v [<.trr/.cpt/...>]] [-v2 [<.trr/.cpt/...>]]
[-f [<.xtc/.trr/...>]] [-s [<.tpr/.gro/...>]]
[-n [<.ndx>]] [-eig [<.xvg>]] [-eig2 [<.xvg>]]
[-comp [<.xvg>]] [-rmsf [<.xvg>]] [-proj [<.xvg>]]
[-2d [<.xvg>]] [-3d [<.gro/.g96/...>]]
[-filt [<.xtc/.trr/...>]] [-extr [<.xtc/.trr/...>]]
[-over [<.xvg>]] [-inpr [<.xpm>]] [-b <time>] [-e <time>]
[-dt <time>] [-tu <enum>] [-[no]w] [-xvg <enum>]
[-first <int>] [-last <int>] [-skip <int>] [-max <real>]
[-nframes <int>] [-[no]split] [-[no]entropy]
[-temp <real>] [-nevskip <int>]
like, that's a LOT of flags and every single one of them is your friend π«Ά
β¨ DESCRIPTION β¨
so. gmx anaeig analyzes eigenvectors. and those eigenvectors can come from two places: a covariance matrix (that's gmx covar) or a Normal Modes analysis (that's gmx nmeig). no cap, those are the vibes. π
when a trajectory is projected on eigenvectors, all structures get fitted to the structure in the eigenvector file if it's present β and if it's not, they get fitted to the structure in the structure file instead. and heads up: when no run input file is supplied, periodicity will not be taken into account. π
most analyses run on eigenvectors -first to -last, but when -first is set to -1 you will be prompted for a selection. the computer will literally just ask you. main character energy of it. π
here's what each analysis mode actually does:
-comp: plot the vector components per atom of eigenvectors-firstto-last.-rmsf: plot the RMS fluctuation per atom of eigenvectors-firstto-last(requires-eig).-proj: calculate projections of a trajectory on eigenvectors-firstto-last. The projections of a trajectory on the eigenvectors of its covariance matrix are called principal components (pc's). It is often useful to check the cosine content of the pc's, since the pc's of random diffusion are cosines with the number of periods equal to half the pc index. The cosine content of the pc's can be calculated with the programgmx analyze.-2d: calculate a 2d projection of a trajectory on eigenvectors-firstand-last.-3d: calculate a 3d projection of a trajectory on the first three selected eigenvectors.-filt: filter the trajectory to show only the motion along eigenvectors-firstto-last.-extr: calculate the two extreme projections along a trajectory on the average structure and interpolate-nframesframes between them, or set your own extremes with-max. The eigenvector-firstwill be written unless-firstand-lasthave been set explicitly, in which case all eigenvectors will be written to separate files. Chain identifiers will be added when writing a.pdbfile with two or three structures (you can userasmol -nmrpdbto view such a.pdbfile).
β¨ Overlap calculations between covariance analysis β¨
π note, bestie: the analysis should use the same fitting structure β¨
-over: calculate the subspace overlap of the eigenvectors in file-v2with eigenvectors-firstto-lastin file-v.-inpr: calculate a matrix of inner-products between eigenvectors in files-vand-v2. All eigenvectors of both files will be used unless-firstand-lasthave been set explicitly.
when -v and -v2 are given, a single number for the overlap between the covariance matrices is generated. lowkey important: the eigenvalues are by default read from the timestamp field in the eigenvector input files, but when -eig, or -eig2 are given, the corresponding eigenvalues are used instead. π
the formulas are:
difference = sqrt(tr((sqrt(M1) - sqrt(M2))^2))
normalized overlap = 1 - difference/sqrt(tr(M1) + tr(M2))
shape overlap = 1 - sqrt(tr((sqrt(M1/tr(M1)) - sqrt(M2/tr(M2)))^2))
where M1 and M2 are the two covariance matrices and tr is the trace of a matrix. The numbers are proportional to the overlap of the square root of the fluctuations. The normalized overlap is the most useful number, it is 1 for identical matrices and 0 when the sampled subspaces are orthogonal.
and when the -entropy flag is given, an entropy estimate will be computed based on the Quasiharmonic approach and based on Schlitter's formula. π§
β¨ OPTIONS β¨
π₯ Options to specify input files
-v [<.trr/.cpt/...>](eigenvec.trr) β Full precision trajectory:trr cpt tng h5md-v2 [<.trr/.cpt/...>](eigenvec2.trr) (Optional) β Full precision trajectory:trr cpt tng h5md-f [<.xtc/.trr/...>](traj.xtc) (Optional) β Trajectory:xtc trr cpt gro g96 pdb tng h5md-s [<.tpr/.gro/...>](topol.tpr) (Optional) β Structure+mass(db):tpr gro g96 pdb brk ent-n [<.ndx>](index.ndx) (Optional) β Index file-eig [<.xvg>](eigenval.xvg) (Optional) β xvgr/xmgr file-eig2 [<.xvg>](eigenval2.xvg) (Optional) β xvgr/xmgr file
π€ Options to specify output files
-comp [<.xvg>](eigcomp.xvg) (Optional) β xvgr/xmgr file-rmsf [<.xvg>](eigrmsf.xvg) (Optional) β xvgr/xmgr file-proj [<.xvg>](proj.xvg) (Optional) β xvgr/xmgr file-2d [<.xvg>](2dproj.xvg) (Optional) β xvgr/xmgr file-3d [<.gro/.g96/...>](3dproj.pdb) (Optional) β Structure file:gro g96 pdb brk ent esp-filt [<.xtc/.trr/...>](filtered.xtc) (Optional) β Trajectory:xtc trr cpt gro g96 pdb tng h5md-extr [<.xtc/.trr/...>](extreme.pdb) (Optional) β Trajectory:xtc trr cpt gro g96 pdb tng h5md-over [<.xvg>](overlap.xvg) (Optional) β xvgr/xmgr file-inpr [<.xpm>](inprod.xpm) (Optional) β X PixMap compatible matrix file
π Other options
-b <time>(0) β Time of first frame to read from trajectory (default unit ps)-e <time>(0) β Time of last frame to read from trajectory (default unit ps)-dt <time>(0) β Only use frame when t MOD dt = first time (default unit ps)-tu <enum>(ps) β Unit for time values:fs, ps, ns, us, ms, s-[no]w(no) β View output.xvg,.xpm,.epsand.pdbfiles-xvg <enum>(xmgrace) β xvg plot formatting:xmgrace, xmgr, none-first <int>(1) β First eigenvector for analysis (-1is select)-last <int>(-1) β Last eigenvector for analysis (-1is till the last)-skip <int>(1) β Only analyse every nr-th frame-max <real>(0) β Maximum for projection of the eigenvector on the average structure,max=0gives the extremes-nframes <int>(2) β Number of frames for the extremes output-[no]split(no) β Split eigenvector projections where time is zero-[no]entropy(no) β Compute entropy according to the Quasiharmonic formula or Schlitter's method.-temp <real>(298.15) β Temperature for entropy calculations-nevskip <int>(6) β Number of eigenvalues to skip when computing the entropy due to the quasi harmonic approximation. When you do a rotational and/or translational fit prior to the covariance analysis, you get 3 or 6 eigenvalues that are very close to zero, and which should not be taken into account when computing the entropy.
β¨ SEE ALSO β¨
More information about GROMACS is available at <http://www.gromacs.org/>. πΈ
β¨ COPYRIGHT β¨
2026, GROMACS development team
and that's the whole page, bestie π this one's from GROMACS 2026.4, dated Oct 02, 2026, and honestly? it ate. go project something. ππ β¨
π¦ 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