Skip to content

Selecting multiple lipids with different head groups #81

Answered by p-j-smith
Saleh-OM4R asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Saleh-OM4R thanks for trying out lipyphilic!

Lipyphilic does indeed use the same selection language as MDAnalysis. The issue is that you have two selection strings that you are passing to lipid_sel.

In MDAnalysis:

u.select_atoms(
    'resname POPE POPC PSM BMGP and name P C11 C12',
    'resname CHL1 and name O3 C3',
)

will create a single atom group that contains all atoms selected by both strings.

If this is indeed what you want, then you need to pass a single string to AssignLeaflets:

    lipid_sel ='(resname POPE POPC PSM BMGP and name P C11 C12) or (resname CHL1 and name O3 C3)'

If you try to pass two separate strings, then Python will assume that you are trying to pass two argume…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Saleh-OM4R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants