GMX-HBOND(1)
π
GMX-HBOND(1) β the gmx-hbond page, bestie edition π
okay so real talk: this is the manual page for gmx-hbond, part of the GROMACS suite, sitting in manual section 1. It computes and analyzes hydrogen bonds, and it's lowkey iconic. Let's go π¦
β¨ NAME β¨
gmx-hbond β compute and analyze hydrogen bonds πΈ
β¨ SYNOPSIS β¨
gmx hbond [-f [<.xtc/.trr/...>]] [-s [<.tpr/.gro/...>]] [-n [<.ndx>]]
[-o [<.ndx>]] [-num [<.xvg>]] [-dist [<.xvg>]]
[-ang [<.xvg>]] [-dan [<.xvg>]] [-b <time>] [-e <time>]
[-dt <time>] [-tu <enum>] [-fgroup <selection>]
[-xvg <enum>] [-[no]rmpbc] [-[no]pbc] [-sf <file>]
[-selrpos <enum>] [-seltype <enum>] [-r <selection>]
[-t <selection>] [-[no]m] [-[no]pf] [-cutoff <real>]
[-hbr <real>] [-hba <real>] [-de <string>] [-ae <string>]
β¨ DESCRIPTION β¨
gmx hbond lets you use a geometric definition of hydrogen bonds to define them throughout the whole structure. Basically: vibe check every possible H-bond, no cap. π
-rspecifies the reference selection, relative to which the search for hydrogen bonds in the target selection will develop. Not me warning you though: note that all atoms in reference and target selections should be either absolutely identical or non-overlapping at all. Accepts dynamic selection. π«Ά-tspecifies the target selection, relative to which the search for hydrogen bonds in the reference selection will develop. Same energy as-r: all atoms in reference and target selections should be either absolutely identical or non-overlapping at all. Accepts dynamic selection. β¨-mforces you to merge together information in the output index file about hydrogen bonds if they differ only in hydrogen indices. This also means that information about hydrogen atoms in the hydrogen bonds would not be written in the output index file at all. π-pfforces writing hydrogen bonds for each frame separately instead of writing hydrogen bonds for the whole system. Each bit of information about hydrogen bonds in a new frame will be stored in its own section of the output index file. π-cutoffis a real value that defines the distance from donor to acceptor (and vice versa) that's used in the neighbor search. The minimum (and also recommended) value is0.35. π-hbrsets the cutoff used when calculating hydrogen bond distances. Recommended value:0.35. π₯-hbasets the cutoff used when calculating hydrogen bond angles. Recommended value:30. π-despecifies the atomic elements that will be selected from the topology to check if a given element is a potential hydrogen bond donor. π-aespecifies the atomic elements that will be selected from the topology to check if a given element is a potential hydrogen bond acceptor. π-numlets you get a plot of the number of hydrogen bonds as a function of time at the output. π-distlets you get a plot of the distance distribution of all hydrogen bonds at the output. π-anglets you get a plot of the angular distribution of all hydrogen bonds at the output. β-danlets you get a plot of the number of analyzed donors and acceptors for each frame at the output. π
Heads up bestie: note that this is a new implementation of thehbondutility added in GROMACS 2024. If you need the old one, usegmx hbond-legacy. Choose wisely, both are valid. π
β¨ OPTIONS β¨
πΈ Options to specify input files:
-f [<.xtc/.trr/...>](defaulttraj.xtc) (Optional) β Input trajectory or single configuration:xtctrrcptgrog96pdbtngh5mdπ-s [<.tpr/.gro/...>](defaulttopol.tpr) (Optional) β Input structure:tprgrog96pdbbrkentβ¨-n [<.ndx>](defaultindex.ndx) (Optional) β Extra index groups π
πΈ Options to specify output files:
-o [<.ndx>](defaulthbond.ndx) β Index file that contains selected groups', acceptors', donors' and hydrogens' indices and hydrogen bond pairs between or within selected groups. π-num [<.xvg>](defaulthbnum.xvg) (Optional) β Number of hydrogen bonds as a function of time. π-dist [<.xvg>](defaulthbdist.xvg) (Optional) β Distance distribution of all hydrogen bonds. πΈ-ang [<.xvg>](defaulthbang.xvg) (Optional) β Angle distribution of all hydrogen bonds. π-dan [<.xvg>](defaulthbdan.xvg) (Optional) β Number of donors and acceptors analyzed for each frame. π
πΈ Other options:
-b <time>(default0) β First frame (ps) to read from trajectory β°-e <time>(default0) β Last frame (ps) to read from trajectory β°-dt <time>(default0) β Only use frame ift MOD dt == first time(ps) π°οΈ-tu <enum>(defaultps) β Unit for time values:fs,ps,ns,us,ms,sβ-fgroup <selection>β Atoms stored in the trajectory file (if not set, assume first N atoms) π«Ά-xvg <enum>(defaultxmgrace) β Plot formatting:xmgrace,xmgr,noneπ¨-[no]rmpbc(defaultyes) β Make molecules whole for each frame π§©-[no]pbc(defaultyes) β Use periodic boundary conditions for distance calculation π-sf <file>β Provide selections from files π-selrpos <enum>(defaultatom) β Selection reference positions:atom,res_com,res_cog,mol_com,mol_cog,whole_res_com,whole_res_cog,whole_mol_com,whole_mol_cog,part_res_com,part_res_cog,part_mol_com,part_mol_cog,dyn_res_com,dyn_res_cog,dyn_mol_com,dyn_mol_cogπ―-seltype <enum>(defaultatom) β Default selection output positions:atom,res_com,res_cog,mol_com,mol_cog,whole_res_com,whole_res_cog,whole_mol_com,whole_mol_cog,part_res_com,part_res_cog,part_mol_com,part_mol_cog,dyn_res_com,dyn_res_cog,dyn_mol_com,dyn_mol_cogπ―-r <selection>β Reference selection, relative to which the search for hydrogen bonds in target selection will develop. π¦-t <selection>β Target selection, relative to which the search for hydrogen bonds in reference selection will develop. π¦-[no]m(defaultno) β Merge together information about hydrogen bonds if they differ only in hydrogen indices. π-[no]pf(defaultno) β Write hydrogen bonds for each frame separately instead of writing hydrogen bonds for the whole system. π-cutoff <real>(default0.35) β Distance from donor to acceptor (and vice versa) that used in neighbor search (nm). Must be > 0. β οΈ-hbr <real>(default0.35) β Hydrogen bond cutoff distance, between donor and acceptor (nm). The value must not exceed the neighbor search cutoff and must be > 0. β οΈ-hba <real>(default30) β A-D-H hydrogen bond cutoff angle (degrees). Must be > 0. β οΈ-de <string>(defaultN O) β Donor elements. Default elements:N,O. π-ae <string>(defaultN O) β Acceptor elements. Default elements:N,O. π
β¨ SEE ALSO β¨
gmx(1)π
More information about GROMACS is available at <http://www.gromacs.org/>. π
β¨ COPYRIGHT β¨
2026, GROMACS development team β periodt. π
and that's the whole page, bestie!! this was GROMACS 2026.4, dated Oct 02, 2026, brought to you by the GROMACS development team β mwah, go analyze some hydrogen bonds, you main character π«Άβ¨π
π¦ 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