Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amber Lipid21 two 1-4 scaling error #291

Open
gohdavid opened this issue Jul 16, 2023 · 3 comments
Open

Amber Lipid21 two 1-4 scaling error #291

gohdavid opened this issue Jul 16, 2023 · 3 comments

Comments

@gohdavid
Copy link

I wanted sphingomyelin parameters from Amber Lipid21 and couldn't find an ffxml online. I tried converting it using convert_amber.py, but ParmEd returned an error due to having two different scnbs:

NotImplementedError: Cannot currently handle mixed 1-4 scaling: 1-4 eel [1.2] 1-4 vdw [2.0, 6.0]

From $AMBERHOME/dat/leap/parm/Lipid21.dat:

cD-cD-cD-cD    1    0.100    0.000  -5.0    SCEE=1.2 SCNB=6.0  Lipid21 v1.0 MP2 QM fit.
cD-cD-cD-cD    1    0.100    0.000  -4.0    SCEE=1.2 SCNB=6.0  Lipid21 v1.0 MP2 QM fit.
cD-cD-cD-cD    1    0.300    0.000  -3.0    SCEE=1.2 SCNB=6.0  Lipid21 v1.0 MP2 QM fit.
cD-cD-cD-cD    1    0.100    0.000  -2.0    SCEE=1.2 SCNB=6.0  Lipid21 v1.0 MP2 QM fit.
cD-cD-cD-cD    1    0.100    0.000   1.0    SCEE=1.2 SCNB=6.0  Lipid21 v1.0 MP2 QM fit.
cA-oT-pA-oP    1    0.000    0.000  -5.0    SCEE=1.2 SCNB=2.0  Lipid21 v1.0
cA-oT-pA-oP    1    0.000    0.000  -4.0    SCEE=1.2 SCNB=2.0  Lipid21 v1.0
cA-oT-pA-oP    1    0.000    0.000  -3.0    SCEE=1.2 SCNB=2.0  Lipid21 v1.0
cA-oT-pA-oP    1    0.200    0.000  -2.0    SCEE=1.2 SCNB=2.0  Lipid21 v1.0

Looking through #156 and ParmEd/ParmEd#1136 it seems like there was a fix for this when there's only one non-unity scnb.

I think it would be neat to implement Lipid21 in OpenMM and was wondering what needs to be done to implement two 1-4 scalings in OpenMM.

Or, in case anyone knows of an ffxml for Lipid21, could you share it with me, please?

@jchodera
Copy link
Member

@peastman : Does the openmm.app.ForceField pipeline permit a way to have different .ffxml files specify distinct 1-4 scalings? If so, there's likely a way for us to generate a separate .ffxml file for Amber Lipid21 that specifies the distinct scaling factors.

@jchodera
Copy link
Member

jchodera commented Jul 16, 2023

@gohdavid : In the meantime, you can still set up your system in AmberTools LEaP and read it into OpenMM via AmberPrmtopFile!

@peastman
Copy link
Member

It requires using a script to postprocess the exceptions. See the discussion and sample code in ParmEd/ParmEd#1136 and ParmEd/ParmEd#1149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants