# Changing the group name in gmx make\_ndx

**URL:** <https://gromacs.bioexcel.eu/t/changing-the-group-name-in-gmx-make-ndx/13260>\
**Category:** User discussions\
**Created:** [March 3, 2026, 8:20am UTC](https://gromacs.bioexcel.eu/t/changing-the-group-name-in-gmx-make-ndx/13260 "2026-03-03T08:20:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DariuszKamil](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@DariuszKamil](https://gromacs.bioexcel.eu/u/DariuszKamil)\
**Post date:** [March 3, 2026, 8:20am UTC](https://gromacs.bioexcel.eu/t/changing-the-group-name-in-gmx-make-ndx/13260/1 "2026-03-03T08:20:42Z")

</div>

GROMACS version: 2025.3  
GROMACS modification: No

Is there a possibility to change the name of a certain group using its original number and not its number? To the best of my knowledge, the following `make_ndx` options do not offer such functionality:

`nr : group ‘!’: not ‘name’ nr name ‘splitch’ nr Enter: list groups`  
`‘a’: atom ‘&’: and ‘del’ nr ‘splitres’ nr ‘l’: list residues`  
`‘t’: atom type ‘|’: or ‘keep’ nr ‘splitat’ nr ‘h’: help`  
`‘r’: residue ‘res’ nr ‘chain’ char`  
`“name”: group ‘case’: case sensitive ‘q’: save and quit`  
`‘ri’: residue index`

For instance,  
`name 3 LIG`  
works correctly but  
`name “NPX” LIG`  
or  
`name NPX LIG`  
has no action on group names.

---

<div class="post-metadata">

**Author:** ![lmullender](https://avatars.discourse-cdn.com/v4/letter/l/8dc957/32.png) [@lmullender](https://gromacs.bioexcel.eu/u/lmullender)\
**Post date:** [March 3, 2026, 10:51am UTC](https://gromacs.bioexcel.eu/t/changing-the-group-name-in-gmx-make-ndx/13260/2 "2026-03-03T10:51:49Z")

</div>

No, AFAIK that’s not possible. Some quality-of-life improvements of `gmx index` that include easier naming of groups are currently in the works, but it’ll take until 2027 for those to make it in. For now, you’ll have to just list the groups by pressing enter and using the group number, which is not that much more of a hassle IMO.
