Molecular modelers often face challenges when attempting to tailor simulations to their specific systems, especially during complex workflows like center-of-mass (COM) pulling. One common pain point is the inability to efficiently define custom groups for molecules or chains when preparing simulations. If you’re working with GROMACS Wizard on SAMSON, this process can be simplified by adding custom index groups. Here’s how you can do it step-by-step.
The Problem: Defining Pull Groups
In a COM pulling simulation, you often need to specify molecular groups (e.g., chains, residues) as pulling targets. The default index groups generated by GROMACS might not include these specific groups. Without a way to define these groups, your simulation setup can quickly become frustrating, as incorrectly assigned groups could lead to inaccurate results.
Thankfully, with SAMSON’s GROMACS Wizard, you can easily generate custom index groups tailored to your system and integrate them seamlessly into your workflow.
How to Add Index Groups in SAMSON
Let’s walk through an example where we define two custom groups for chains A and B in a structural model:
Step 1: Open the Index Groups Editor
In the ‘Simulate’ tab, navigate to the Edit index groups button. This opens a list of default index groups and options for adding new, custom-defined groups.

Important to note: Ensure your system is loaded in SAMSON. This allows the software to base index groups on your current selections.
Step 2: Create an Index Group for Chain A
Select Chain A in the Document view. In the Index Groups window:
- Click Generate based on current selection in document to automatically populate a selection string for your group.
- Set the group name to “ChainA”.
- Click Add index group to the list.
Your group for Chain A is now added! Here’s an example of what that process looks like:

Step 3: Create an Index Group for Chain B
Repeat the above process, but select Chain B instead in the Document view. Set the group name to “ChainB” and add it to the index group list.

Step 4: Verify Your Custom Groups
To ensure your index groups are configured correctly, select one from the list and click Select in document based on selection string. The corresponding nodes will be highlighted in the SAMSON Viewport:

Both Chain A and Chain B are now optimized as custom index groups ready for use in COM pulling.
Why This Matters
Defining index groups not only simplifies your workflow but also improves the accuracy and reproducibility of your simulations. Specifically for COM pulling, it allows you to assign groups for pulling or restraining precisely how your simulation demands.
SAMSON and the GROMACS Wizard make this otherwise daunting task intuitive and accessible, ensuring that molecular modelers can focus on analyzing results instead of debugging setup errors.
Ready to Learn More?
For the full details, including other advanced COM pulling parameters, visit the original documentation.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON at https://www.samson-connect.net.
