GMX-CHI(1)
β¨ gmx-chi π β the GROMACS manual page, bestie edition β¨
okay so this is the man page for gmx-chi, which lives in section 1 of the GROMACS manual. yes it's a mouthful, no I will not be shortening the vibes. let's go π«Ά
πΈ NAME πΈ
gmx-chi β calculate literally everything you could ever want to know about chi and other dihedrals π
π SYNOPSIS π
gmx chi [-s [<.gro/.g96/...>]] [-f [<.xtc/.trr/...>]] [-ss [<.dat>]]
[-o [<.xvg>]] [-p [<.pdb>]] [-jc [<.xvg>]] [-corr [<.xvg>]]
[-g [<.log>]] [-ot [<.xvg>]] [-oh [<.xvg>]] [-rt [<.xvg>]]
[-cp [<.xvg>]] [-b <time>] [-e <time>] [-dt <time>] [-[no]w]
[-xvg <enum>] [-r0 <int>] [-rN <int>] [-[no]phi] [-[no]psi]
[-[no]omega] [-[no]rama] [-[no]viol] [-[no]periodic]
[-[no]all] [-[no]rad] [-[no]shift] [-binwidth <int>]
[-core_rotamer <real>] [-maxchi <enum>] [-[no]normhisto]
[-[no]ramomega] [-bfact <real>] [-[no]chi_prod] [-[no]HChi]
[-bmax <real>] [-acflen <int>] [-[no]normalize] [-P <enum>]
[-fitfn <enum>] [-beginfit <real>] [-endfit <real>]
π¦ DESCRIPTION π¦
so like, gmx chi computes phi, psi, omega, and chi dihedrals for all your amino acid backbone and sidechains. all of them. every single one, bestie. π
it can compute a dihedral angle as a function of time, and as histogram distributions. the distributions are named histo-(dihedral)(RESIDUE).xvg and they're cumulative over all residues of each type β iconic behavior, honestly. β¨
if you pass the -corr option, the program will calculate dihedral autocorrelation functions. the function it uses is:
C(t) = <cos(chi(tau)) cos(chi(tau+t))>
the chef's kiss detail here is that it uses cosines rather than the angles themselves, which completely resolves the problem of periodicity. this is from Van der Spoel & Berendsen (1997), Biophys. J. 72, 2032-2041. separate files for each dihedral of each residue are output as corr(dihedral)(RESIDUE)(nresnr).xvg, plus a file containing the info for all residues (that's the argument of -corr). π
with the -all option, the angles themselves as a function of time for each residue get printed to separate files named (dihedral)(RESIDUE)(nresnr).xvg. these can be in radians or degrees, your call. π
a log file (the argument of -g) is also written, and it contains:
- info about the number of residues of each type.
- the NMR
^3Jcoupling constants from the Karplus equation. - a table for each residue of the number of transitions between rotamers per nanosecond, and the order parameter
S^2of each dihedral. - a table for each residue of the rotamer occupancy.
all rotamers are taken as 3-fold, except for omega and chi dihedrals to planar groups β that's chi_2 of aromatics, Asp and Asn; chi_3 of Glu and Gln; and chi_4 of Arg β which are 2-fold. and <bold>"rotamer 0"</bold> means the dihedral was not in the core region of each rotamer. the width of that core region can be set with -core_rotamer. π―
the S^2 order parameters are also output to an .xvg file (argument -o) and optionally as a .pdb file with the S^2 values as B-factor (argument -p). the total number of rotamer transitions per timestep (argument -ot), the number of transitions per rotamer (argument -rt), and the ^3J couplings (argument -jc) can also be written to .xvg files.
β οΈ heads up bestie: the analysis of rotamer transitions assumes that the supplied trajectory frames are equally spaced in time. it does not check. it trusts you. do not betray it. π
if -chi_prod is set (and -maxchi > 0), cumulative rotamers are calculated, e.g.:
1+9(chi_1-1)+3(chi_2-1)+ (chi_3-1)
(that's if the residue has three 3-fold dihedrals and -maxchi >= 3). as before, if any dihedral is not in the core region, the rotamer is taken to be 0. the occupancies of these cumulative rotamers (starting with rotamer 0) are written to the file that is the argument of -cp, and if the -all flag is given, the rotamers as functions of time are written to chiproduct(RESIDUE)(nresnr).xvg and their occupancies to histo-chiproduct(RESIDUE)(nresnr).xvg. π
the option -r generates a contour plot of the average omega angle as a function of the phi and psi angles β meaning that in a Ramachandran plot, the average omega angle is plotted using color coding. art. π¨
π OPTIONS π
π§ Options to specify input files:
-s [<.gro/.g96/...>](conf.gro) β structure file. the vibes it accepts:gro g96 pdb brk ent esp tpr.-f [<.xtc/.trr/...>](traj.xtc) β your trajectory. accepted formats:xtc trr cpt gro g96 pdb tng h5md.-ss [<.dat>](ssdump.dat) (Optional) β a generic data file. just a data file. living its life.
π Options to specify output files:
-o [<.xvg>](order.xvg) β anxvgr/xmgrfile.-p [<.pdb>](order.pdb) (Optional) β a Protein data bank file.-jc [<.xvg>](Jcoupling.xvg) β anxvgr/xmgrfile.-corr [<.xvg>](dihcorr.xvg) (Optional) β anxvgr/xmgrfile.-g [<.log>](chi.log) β the log file.-ot [<.xvg>](dihtrans.xvg) (Optional) β anxvgr/xmgrfile.-oh [<.xvg>](trhisto.xvg) (Optional) β anxvgr/xmgrfile.-rt [<.xvg>](restrans.xvg) (Optional) β anxvgr/xmgrfile.-cp [<.xvg>](chiprodhisto.xvg) (Optional) β anxvgr/xmgrfile.
π Other options:
-b <time>(0) β time of first frame to read from trajectory (default unitps).-e <time>(0) β time of last frame to read from trajectory (default unitps).-dt <time>(0) β only use a frame whent MOD dt = first time(default unitps).-[no]w(no) β view output.xvg,.xpm,.epsand.pdbfiles.-xvg <enum>(xmgrace) β xvg plot formatting. choices:xmgrace,xmgr,none.-r0 <int>(1) β starting residue.-rN <int>(-1) β last residue.-[no]phi(no) β output forphidihedral angles.-[no]psi(no) β output forpsidihedral angles.-[no]omega(no) β output foromegadihedrals (the peptide bonds, periodt).-[no]rama(no) β generatephi/psiandchi_1/chi_2Ramachandran plots.-[no]viol(no) β write a file that gives0or1for violated Ramachandran angles.-[no]periodic(yes) β print dihedral angles modulo360degrees.-[no]all(no) β output separate files for every dihedral.-[no]rad(no) β in angle vs time files, use radians rather than degrees.-[no]shift(no) β compute chemical shifts fromphi/psiangles.-binwidth <int>(1) β bin width for histograms (degrees).-core_rotamer <real>(0.5) β only the central-core_rotamer*(360/multiplicity)belongs to each rotamer (the rest is assigned to rotamer0).-maxchi <enum>(0) β calculate firstndihchi dihedrals:0, 1, 2, 3, 4, 5, 6.-[no]normhisto(yes) β normalize histograms.-[no]ramomega(no) β compute averageomegaas a function ofphi/psiand plot it in an.xpmplot.-bfact <real>(-1) β B-factor value for.pdbfile for atoms with no calculated dihedral order parameter.-[no]chi_prod(no) β compute a single cumulative rotamer for each residue.-[no]HChi(no) β include dihedrals to sidechain hydrogens.-bmax <real>(0) β maximum B-factor on any of the atoms that make up a dihedral, for the dihedral angle to be considered in the statistics. this applies to database work where a number of X-Ray structures is analyzed.-bmax <= 0means no limit.-acflen <int>(-1) β length of the ACF; default is half the number of frames.-[no]normalize(yes) β normalize ACF.-P <enum>(0) β order of Legendre polynomial for ACF (0indicates none):0, 1, 2, 3.-fitfn <enum>(none) β fit function:none,exp,aexp,exp_exp,exp5,exp7,exp9.-beginfit <real>(0) β time where to begin the exponential fit of the correlation function.-endfit <real>(-1) β time where to end the exponential fit of the correlation function;-1is until the end.
π KNOWN ISSUES π
- N-terminal
phiand C-terminalpsidihedrals are calculated in a non-standard way, usingH-N-CA-Cforphiinstead ofC(-)-N-CA-C, andN-CA-C-Oforpsiinstead ofN-CA-C-N(+). this causes (usually small) discrepancies with the output of other tools likegmx rama. not me finding out my numbers don't match π - Rotamers with multiplicity
2are printed inchi.logas if they had multiplicity3, with the 3rd (g(+)) always having probability0. it's giving fake news but in a log file. π
π SEE ALSO π
more information about GROMACS is available at <http://www.gromacs.org/>. (the original wraps that URL with a soft hyphen, but you get it. π)
β COPYRIGHT β
2026, GROMACS development team
and that's the whole thing, bestie π«Ά this was version 2026.4, dated Oct 02, 2026, straight from the GROMACS fam. go compute some dihedrals, you absolute icon. ππ
β¨
π¦ 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