You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
It would be great if one could select all lipids in a Universe by a common keyword, e.g. lipid just like one can select all proteins via protein.
Describe the solution you'd like
u=mda.Universe(gro)
u.select_atoms("lipid")
Additional context
VMD does have a similar, partially functional (does not recognize all lipid names) version of this.
I would like to contribute this in a PR. I guess duplicating the behavior of ProteinSelection would be the solution?
I think grabbing the residue names from charmm-gui.org (see here, click "Membrane only system") should be sufficient. They include pretty much all parameterized lipids for CHARMM36. Although I do not know how one would need to do attributions here.
The text was updated successfully, but these errors were encountered:
@mimischi yeah sounds like it might be useful, but I can imagine a lot of reports of "it didn't select my lipids though" (how universal are the charmm36 names?). Managing this will require #104.
The way selections work, you can define the class anywhere and it gets automagically included in to the selection language, so you can play around in a notebook and get it working quickly. PR welcome!
Is your feature request related to a problem? Please describe.
It would be great if one could select all lipids in a Universe by a common keyword, e.g.
lipid
just like one can select all proteins viaprotein
.Describe the solution you'd like
Additional context
VMD does have a similar, partially functional (does not recognize all lipid names) version of this.
I would like to contribute this in a PR. I guess duplicating the behavior of
ProteinSelection
would be the solution?mdanalysis/package/MDAnalysis/core/selection.py
Lines 763 to 802 in 55e7475
I think grabbing the residue names from charmm-gui.org (see here, click "Membrane only system") should be sufficient. They include pretty much all parameterized lipids for CHARMM36. Although I do not know how one would need to do attributions here.
The text was updated successfully, but these errors were encountered: