How can i select all P atoms within 10 Angstrom of another P atom?

16 views
Skip to first unread message

Ibrahim Mohamed

unread,
Jan 14, 2022, 3:52:37 PM1/14/22
to MDnalysis discussion
for each P atom in a lipid leaflet i want to select other P atoms within 10 Angstrom. how can i do this?

I have tried this:

local_p_atoms = u.select_atoms('(around 10 name P) and name P')
for f in u.trajectory:
print(local_p_atoms.names)

but it outputs and empty array

Thanks
Reply all
Reply to author
Forward
0 new messages