GMX-X2TOP(1)
π GMX-X2TOP(1) β the GROMACS glow-up page π
okay bestie, so this is gmx-x2top, from the GROMACS fam. Sit down, hydrate, we're building a topology out of thin air (well, out of coordinates). π¦
β¨ NAME β¨
gmx-x2top β Generate a primitive topology from coordinates
Like. It makes a whole topology. From coordinates. No cap. π
β¨ SYNOPSIS β¨
gmx x2top [-f [<.gro/.g96/...>]] [-o [<.top>]] [-r [<.rtp>]]
[-ff <string>] [-[no]v] [-nexcl <int>] [-[no]H14]
[-[no]alldih] [-[no]remdih] [-[no]pairs] [-name <string>]
[-[no]pbc] [-[no]pdbq] [-[no]param] [-[no]round]
[-kb <real>] [-kt <real>] [-kp <real>]
β¨ DESCRIPTION β¨
So gmx x2top generates a primitive topology from a coordinate file. The tea: the program assumes all hydrogens are present when it's defining the hybridization from the atom name and the number of bonds. It can also make an .rtp entry, and then you can just add that to the .rtp database. So handy. π
When -param is set, equilibrium distances and angles and force constants get printed in the topology for all interactions. Where do the equilibrium distances and angles come from? The input coordinates, babe. And the force constants? You set those with the command line options. Slay.
The force fields that are somewhat supported currently are:
G53a5β GROMOS96 53a5 Forcefield (official distribution)oplsaaβ OPLS-AA/L all-atom force field (2001 aminoacid dihedrals)
The corresponding data files live in the library directory with the name atomname2type.n2t. Check Chapter 5 of the manual for more info about file formats, iykyk. π
By default, the force field selection is interactive, but you can use the -ff option to specify one of the short names above on the command line instead. In that case gmx x2top just looks for the corresponding file. Periodt.
β¨ OPTIONS β¨
π Options to specify input files
-f [<.gro/.g96/...>](defaultconf.gro) β Structure file:gro g96 pdb brk ent esp tpr
π Options to specify output files
-o [<.top>](defaultout.top) (Optional) β Topology file-r [<.rtp>](defaultout.rtp) (Optional) β Residue Type file used bypdb2gmx
π Other options
-ff <string>(defaultoplsaa) β Force field for your simulation. Type"select"for interactive selection. π-[no]v(defaultno) β Generate verbose output in the top file-nexcl <int>(default3) β Number of exclusions-[no]H14(defaultyes) β Use 3rd neighbour interactions for hydrogen atoms-[no]alldih(defaultno) β Generate all proper dihedrals-[no]remdih(defaultno) β Remove dihedrals on the same bond as an improper-[no]pairs(defaultyes) β Output 1-4 interactions (pairs) in topology file-name <string>(defaultICE) β Name of your molecule π§ (yes the default is literally ICE, we love a frosty molecule moment)-[no]pbc(defaultyes) β Use periodic boundary conditions.-[no]pdbq(defaultno) β Use the B-factor supplied in a.pdbfile for the atomic charges-[no]param(defaultyes) β Print parameters in the output-[no]round(defaultyes) β Round off measured values-kb <real>(default400000) β Bonded force constant (kJ/mol/nm^2)-kt <real>(default400) β Angle force constant (kJ/mol/rad^2)-kp <real>(default5) β Dihedral angle force constant (kJ/mol/rad^2)
π KNOWN ISSUES π
bestie. we have to talk. π these are the β¨quirksβ¨:
- The atom type selection is primitive. Virtually no chemical knowledge is used. It's giving vibes-based chemistry.
- Periodic boundary conditions screw up the bonding. π
- No improper dihedrals are generated.
- The atoms to atomtype translation table is incomplete (that's
atomname2type.n2tin the data directory). Please extend it and send the results back to the GROMACS crew! π«Ά They'd literally love that. Be the main character who fixed the table.
Lowkey important: that translation table being incomplete means you might hit stuff it just doesn't know about. Extending it and sending it upstream is a genuine glow-up for everyone. π
π SEE ALSO π
More information about GROMACS is available at http://www.gromacs.org/.
π COPYRIGHT π
2026, GROMACS development team
okay that's the whole page bestie, you ate that π β¨ so this lil manual page is from GROMACS version 2026.4, dated Oct 02, 2026 β go build something iconic with it, no cap π¦ππ
π¦ 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