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

Trouble Reproducing Results - Bond Energy Function definition #1

Open
manglav opened this issue Sep 9, 2024 · 3 comments
Open

Trouble Reproducing Results - Bond Energy Function definition #1

manglav opened this issue Sep 9, 2024 · 3 comments

Comments

@manglav
Copy link

manglav commented Sep 9, 2024

I'm running through the code and am a bit confused on some of the code choices. For example, For example, B1 and B2 solvent files have different lambda restraints.

bond_energy_function = "lambda_restraints*(K/2)*(r-r0)^2;"
bond_energy_function = "lambda_restraints"

I would expect these to be the same. I'm assuming I'm missing something - any pointers to what it is?

@djhuggins
Copy link
Owner

In the context of the solvent calculations, there are no harmonic bonds because there is no restraint. These are only used in the complex and restraint simulations. The setting of bond_energy_function should be the same across all ligands in the complex simulations and the restraint simulations. The bond_energy_function was set here due to the automated way I wrote the scripts.

@manglav
Copy link
Author

manglav commented Sep 10, 2024

Ah makes sense. I cleaned it up for the dead code parts and I somehow fixed my error, so thank you!

I have one more quick question - I'm trying to reproduce your paper on OpenMM8, but the correction term seems hardcoded in reach results.py. Is the source of those calculations available? I've seen a few equations floating around either relating the bounding box volume or concentrations ratios, but thought I'd ask. Thank you very much for this! This is the most comprehensive example of alchemical free energies using pure OpenMM/Tools on the entire internet.

@djhuggins
Copy link
Owner

I am using what are commonly called Boresch restraints or VBA. Eqn 14 in this paper:

https://pubs.acs.org/doi/10.1021/jp0217839

V is set as 1661 cubic Angstroms. To make the units kcal/mol, the prefactor is set at 0.593 kcal/mol.

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

2 participants