GMX-MAKE_NDX(1)
β¨ GMX-MAKE_NDX β¨
okay bestie so this is gmx-make_ndx, aka the GROMACS index file maker, and it's genuinely one of my faves π
πΈ SYNOPSIS πΈ
gmx make_ndx [-f [<.gro/.g96/...>]] [-n [<.ndx> [...]]] [-o [<.ndx>]]
[-natoms <int>] [-[no]twin]
π DESCRIPTION π
So like, index groups? Necessary. For almost every single GROMACS program. That's not me being dramatic, that's just the truth π
But here's the tea: all those programs can generate default index groups on their own. You ONLY have to reach for gmx make_ndx when you need SPECIAL index groups. Like, custom ones. Yours. Main character groups β¨
And the defaults are already pretty generous, ngl:
- there's a default index group for the whole system
- there are 9 default index groups for proteins
- and a default index group gets generated for every other residue name
When no index file is supplied, gmx make_ndx will also generate the default groups. No thoughts, just defaults π«Ά
With the index editor you can select on atom, residue and chain names and numbers. And when a run input file is supplied you can also select on atom type. Obsessed.
You can use boolean operations, you can split groups into chains, residues or atoms. You can delete and rename groups. Type h in the editor for more details β she's got lore, ask her π
Also super important: the atom numbering in the editor and the index file starts at 1. Not 0. One. Got it bestie? π
The -twin switch duplicates all index groups with an offset of -natoms, which is useful for Computational Electrophysiology double-layer membrane setups. Very niche, very iconic π
See alsogmx select -on, which provides an alternative way for constructing index groups. It covers nearly all ofgmx make_ndxfunctionality, and in many cases much more. So likeβ¦ yes, we have options π
π OPTIONS π
π¦ Options to specify input files:
-f [<.gro/.g96/...>](conf.gro) (Optional) β structure file, and she accepts: gro g96 pdb brk ent esp tpr-n [<.ndx> [...]](index.ndx) (Optional) β index file
π Options to specify output files:
-o [<.ndx>](index.ndx) β index file, and yes she'll make you a new one
β Other options:
-natoms <int>(0) β set number of atoms (default: read from coordinate or index file)-[no]twin(no) β Duplicate all index groups with an offset of-natoms
π SEE ALSO π
More information about GROMACS is available at <http://www.gromacs.org/>.
π COPYRIGHT π
2026, GROMACS development team
okay that's the whole page, you ate that π this was 2026.4, dated Oct 02, 2026, and that's the vibe check, periodt πβ¨π¦
π¦ 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