[gmx-users] File editing - only one layer of water around a molecule
teemu.murtola at cbr.su.se
Wed May 2 12:17:29 CEST 2012
On Tue, May 1, 2012 at 9:55 PM, Justin A. Lemkul <jalemkul at vt.edu> wrote:
> On 5/1/12 2:40 PM, Lara Bunte wrote:
>> g_select -s molecule.pdb -select '"Close to ISO" resname SOL and within
>> 1.2 of resname ISO'
>> trjconv -n index.ndx -f molecule.pdb -s molecule.pdb -o output.pdb
>> I got only water in my output.pdb
> As you should expect. Your command creates a group called "Close to ISO"
> that consists of any residue named SOL that has any atom within 1.2 nm of a
> residue named ISO.
>> What is the problem?
> There is no problem, you just need to do a bit more work.
> You now have an index file with the water molecules that satisfy your
> criteria. You then need to utilize that index file to create a new, merged
> group consisting of ISO and the water molecules. You can use make_ndx:
You don't need to invoke make_ndx if you don't want to. You can simply
adjust the selection you give to g_select to also include your
molecule of interest. Depending on your preferences, you may find
"within 1.2 of resname ISO", "resname SOL ISO and within 1.2 of
resname ISO" or "resname ISO or (resname SOL and within 1.2 of resname
More information about the gromacs.org_gmx-users