Description
Is your feature request related to a problem?
No, not directly. It has similarities to #4563 from the sense, that there was a discussion about selection of
GLYCAM and sugars, which makes sense. An additional feature, that could improve life would be a water
selection, thus a user could use a water
token in select_atoms()
to obtain water as an AtomGroup
.
Describe the solution you'd like
Create a class WaterSelection
in core/selection.py
, which would have the token water
and
add all possible water resnames
to allow a selection through select_atoms()
.
which would create something like this:
u = mda.Universe("test.pdb")
ag = u.select_atoms("protein and water")
Describe alternatives you've considered
Leave it as currently is and select the water via it's resname
u = mda.Universe("test.pdb")
ag = u.select_atoms("protein and resname WAT")
Additional context
As for additional context, currently I am helping in implementing waterbridge
interaction recognition in
ProLIF and there I noticed, that for the water selection the resname of the water is written out. Yes, in theory the user would
know the water resname
and could write it out always, the main reason for this PR would be a quality of life improvement +
in the cases where you have multiple Topologies with different water resnames
it could be easier to select them through an
universal water
token.
I would be able to do the implementation pretty quickly, but would need an opinion how reasonable it is and how much
everyone agrees that this would be a reasonable quality of life improvement for users.