GROMACS version: 2023.3
GROMACS modification: No
I am working with lipid membranes and would like to separate phospholipids which are part of the membrane from those which are free in solution. My initial thought for how to do this is to use gmx select
to find headgroups which are not near other headgroups. However I cannot figure out the select
invocation that will accomplish this. I have been trying variations of
gmx select -s md.gro -f md.gro -on membrane.ndx -select '"mPC" same residue as resname PC and within 0.4 of resname "PC"'
However this selects all PC residues because every atom is seeing its own bonded neighbors as within 0.4 (duh). Is there a way to exclude the atom’s own residue from the within
selection?