When it comes to molecular simulations, the flexibility to tailor your system setup can make all the difference. One often-overlooked yet powerful feature in simulation setup is the ability to create custom index groups. If you’re working with the GROMACS Wizard in SAMSON, this optional step can significantly enhance your analysis and simulation workflows.
Why Custom Index Groups Are Important
GROMACS automatically generates standard index groups based on the structure of your system—for instance, separating proteins, solvents, and ions. While these default groups are essential, custom index groups take your simulations to the next level. These groups can be used for a variety of purposes, such as pinpointing pull coordinate groups, isolating specific residues for analysis, or customizing workflows for unique systems.
Some use cases for custom index groups include analyzing specific residues in a protein, specifying regions for advanced simulations like umbrella sampling, or grouping a subset of atoms from ligands. This flexibility allows molecular modelers to dive deeper into the molecular structure and its dynamics.
How to Create Custom Index Groups
With SAMSON, adding a custom index group to your simulation setup in GROMACS Wizard is straightforward. Follow these steps:
- Select the system: Ensure your system has unique, consecutive indices for residues and atoms. This is a necessary requirement for generating custom groups.
- Open the Index Groups Tool: Click the “Add/edit index groups” button in the GROMACS Wizard interface.

- Define the selection: Use SAMSON’s extensive selection mechanisms, such as Select > Residues > Amino acids > Secondary structure > Alpha helices. Once you’ve performed the selection, click the “Generate based on current selection in document” button.

- Name the group: Specify a name (e.g., HELICES) for the new index group. Ensure the name is clear and descriptive. Test the selection string to verify its accuracy.
- Add to the list: Click “Add index group to the list” to save your custom group. It will now appear in the list of available index groups.

These custom groups are stored in the index.ndx file within your project folder, created using the gmx make_ndx command. You can also add new index groups later during the minimization, equilibration, or simulation phases.
An Example Workflow
Let’s suppose you are setting up a molecular dynamics simulation to analyze the behavior of alpha-helices in a protein. Using SAMSON’s selection tools, you can:
- Select residues in alpha-helices.

- Automatically generate a GROMACS selection string.
- Add this selection as a custom index group named “HELICES.”
- During simulations or post-simulation analysis, use this custom group to isolate and study the alpha-helices’ behaviors in greater detail.
This process is not only simple but also highly effective at focusing simulations on areas of interest.
Key Notes
- Custom index groups allow unparalleled flexibility in how you run your simulations.
- These groups are especially useful for advanced workflows, such as pulling studies or targeted analysis.
- Remember that your system must have unique, consecutive indices for residues and atoms.
Learn More
Ready to take your simulations further? Explore the original documentation for this feature and many others at GROMACS Wizard Preparation.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON at https://www.samson-connect.net.
