A molecular structure can look ready for simulation and still contain details that complicate preparation: alternate atom locations, waters you do not need, small molecules you do not plan to simulate, or monatomic ions. The challenge is that “cleaning up” is not always a matter of deleting everything that is not protein. A ligand, cofactor, or active-site water may be essential to the system you want to study.
This pre-processing step helps you make those choices before moving on to the GROMACS preparation workflow. The key is to treat cleanup as a deliberate decision about what your simulation should contain—not as a routine command to remove every non-protein molecule.
Start with a structure you can inspect
For the walkthrough, the SAMSON documentation uses the protein structure 1AKI. In SAMSON, open Home > Fetch, enter 1AKI under PDB or PDB (mmCIF), and click the matching Load button. Import settings can be left at their defaults for this example. You can also open a structure file already saved on your computer.
Before removing anything, decide which molecules belong in the model you intend to simulate. If a ligand or cofactor is part of the system you want to study, keep it. If you are unsure whether a small molecule is relevant, inspect the selection rather than assuming it should be deleted.
Use cleanup options with a purpose
Choose Home > Prepare and consider the available options in context:
- Remove alternate locations. This removes alternate-location records that can make the starting structure ambiguous for later preparation.
- Remove ligands. Use this when the small molecules are not needed in your simulation. Do not select it if you intend to simulate a ligand or another molecule that should remain part of the system.
- Remove water. This can be useful for a general cleanup, but removing all water is not appropriate for every system. Some waters may be tightly bound or function in an active site.
- Remove monatomic ions. Consider this option when those ions are not part of the system you plan to prepare.
- Add hydrogens. This is optional at this stage because GROMACS can add hydrogens later.
Keep functional waters; remove only the others
If you want to retain active-site or tightly bound waters while removing waters farther away, you can make a spatial selection instead of removing all water. First select a relevant structure, residue, or atom in the active site. Then right-click the selection in the Document view or Viewport and choose Expand selection > Advanced.
In the dialog, set the node type to Water and choose beyond a distance from the selected active-site region. The documentation illustrates selecting water beyond 5 Å. The auto-update option can help you view the selection before confirming it. Check the selected waters carefully, click OK, and then use Erase selection to remove them.

This approach gives you a chance to preserve waters that may matter while cleaning up those outside the region you chose. The distance is a selection criterion, not a universal biological cutoff, so inspect the result and adapt the choice to your system.
What if an arbitrary molecule must stay?
If your model contains an arbitrary molecule that you want to simulate, it may need its own topology file (.itp). The documentation identifies external tools such as the ATB Server and CGenFF as possible sources. These files can then be provided during the GROMACS Wizard preparation step. Conversely, if a molecule is not needed and GROMACS cannot generate its topology, you can select it in the Document view or use Select > Biology > Ligands, verify the selection, and erase only the molecules you intend to remove.
Once cleanup is complete, you should have a starting structure containing the molecules you chose to keep. Continue with Step 1: Prepare to define the simulation model, box, solvent, ions, and project files. For the full pre-processing walkthrough, learn more in the original documentation.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
