Create atom selection

32 views
Skip to first unread message

Rajorshi Chattopadhyay

unread,
May 30, 2023, 7:06:57 AM5/30/23
to mdnalysis-...@googlegroups.com
Hello all,

I have a system containing 2 sulphate (SO42-) ions in 100 water molecules. I have .xyz trajectory files containing the atom names and positions.
I want to calculate the survival probability of the water molecules in the first hydration shell of the sulphate ions. For this, I need to create an atom selection containing only the water oxygen atoms in the first hydration shell of the sulphur ion.

I have tried to do this by creating a selection containing only water oxygen atoms. However, I am unable to separate out the water oxygen atoms within the hydration shell from this selection. I see the 'sphzone externalRadius' option, but this selects all atoms within the cutoff radius of the S ion.

Is there a way to create such a selection ?

--
With Regards,
Rajorshi Chattopadhyay,
PhD Researcher in Mineralogy/Crystallography,
Institut für Geologie und Mineralogie,
Universität zu Köln, Germany

Micaela Matta

unread,
Jul 15, 2023, 3:45:33 PM7/15/23
to MDnalysis discussion
Hi Rajorshi,

have you tried creating an atom group with all sulphate atoms, and then using the "around" or "sphlayer" keyword (see geometric selections) to select the water molecules within a certain radius from the sulphate atomgroup? Something like:

water_ag.select_atoms("sphlayer 3.5 global group group_name") 

should select all the water atoms within 3.5 Å of any atom in the group group_name, in your case that would be the sulphate atoms.

Best,
Micaela

Reply all
Reply to author
Forward
0 new messages