Deleting unwanted water molecules using GROMACS?

If you already have the index groups of the bad waters, use gmx make_ndx to create the complement to that group (e.g. if the bad water group is 15, you can simply use !15 to generate a group with everything else). Then use gmx trjconv with that index group to save the coordinates that are not the bad waters.

2 Likes