For molecular modelers, precision and customization often represent the difference between a manageable workflow and a frustrating bottleneck. Have you ever encountered a situation where GROMACS’ default index groups just didn’t cut it for your specific simulation needs? From isolating subsets of residues to defining pull groups, such cases are all too common. Fortunately, with SAMSON’s GROMACS Wizard, you can seamlessly create custom index groups suited to your workflows. Let’s explore how this feature can make your molecular modeling tasks more efficient and adaptable!
What Are Custom Index Groups and Why Do You Need Them?
GROMACS generates default index groups (e.g., protein, water, ions) based on the structure of your molecular system. While useful, these generic groups might not always align with the specific requirements of advanced workflows, such as free-energy calculations or detailed analysis. Custom index groups allow you to tailor selections, ensuring your simulations and analyses capture precisely the data you’re focused on.
Consider, for example, selecting all neutrally charged residues or isolating specific atoms for pulling. These tasks require additional flexibility that standard GROMACS groups can’t provide.
Adding Custom Index Groups at Key Workflow Stages
Option 1: During the Preparation Step
The GROMACS Wizard enables you to define custom index groups during the preparation step, allowing reuse across later stages—equilibration and simulation. This is the preferred option when working with batch projects to avoid repetitive tasks.
However, take heed! At this stage, default GROMACS groups haven’t yet been generated. You may need to verify group creation if your system has unusual residue or atom numbering. In such cases, a later step (equilibration or simulation) might be more suitable.
Warning
Ensure your system features unique and consecutive residue and atom indices when creating groups at the preparation step. If indices aren’t correct, verify the resulting groups or defer custom group creation to later stages.
Option 2: During Equilibration or Simulation Steps
If your molecular system is already prepared, you can leverage default GROMACS index groups to build custom groups through SAMSON’s intuitive interface.
Simply load your project in SAMSON, click the Edit index groups button, and explore the default GROMACS groups in the GROMACS Index Groups window. These groups are non-editable but fully viewable, meaning you can test selection strings against them or use them in combination with the Select in document based on selection string functionality.

Creating and Testing Custom Index Groups
With the GROMACS Wizard, you have two main approaches for generating custom index groups:
- Using Selection Syntax: Specify groups by defining GROMACS selection strings. For instance, to select all non-C-alpha atoms in a protein, you can use:
"protein" & ! "C-alpha". - Using SAMSON Selection Tools: Leverage SAMSON’s graphical interface to visually select atoms or residues. For example, use Select > Residues > Amino acids > Side chain charge > Neutral to select neutrally charged residues.
Once a selection is made, the corresponding GROMACS selection string can be automatically generated. Add your new group, test it, and apply it to your project. The changes will be saved to the index.ndx file in the project folder for future use.

Learn More
Custom index groups in the GROMACS Wizard open up new possibilities for molecular modelers, saving time and adding precise control over simulations and analyses. To deepen your understanding and explore step-by-step guidance, visit the full documentation page at https://documentation.samson-connect.net/tutorials/gromacs-wizard/adding-custom-index-groups/.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get started today by downloading SAMSON at https://www.samson-connect.net.
