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 also gmx select -on, which provides an alternative way for constructing index groups. It covers nearly all of gmx make_ndx functionality, 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/>.


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