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

[WIP] Do an MD pre-equilibration for AFE simulations #614

Closed
wants to merge 5 commits into from
Closed

Conversation

IAlibay
Copy link
Member

@IAlibay IAlibay commented Nov 2, 2023

Fixes #612

TODO:

  • Add user settings for the pre-equilibration
  • Write out an XTC file or similar?
  • Test on a few systems locally

Developers certificate of origin

@pep8speaks
Copy link

pep8speaks commented Nov 2, 2023

Hello @IAlibay! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2023-11-15 17:52:39 UTC

@staticmethod
def _pre_minimize(system: openmm.System,
positions: omm_unit.Quantity) -> npt.NDArray:
def _pre_equilibrate(
Copy link
Member Author

@IAlibay IAlibay Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if we could modularize the "run a simulation" part of #516 so this could just be imported here? Looking at the TODO items, seems like I'll just end up copying what @hannahbaumann already wrote.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah if that just defined an MDUnit then either protocol could issue that in their DAGs

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Short term I'd probably not look to break this up into more units, there's a ton of "half way" stuff by this point which we would need to serialise out and throw across units, that's a pain right now - probably post 1.0.

Maybe to explain the short term need here - this is something I need for the ABFE stuff.

maybe the answer is to just go as-is with the code duplication and clean up later?

Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Attention: 72 lines in your changes are missing coverage. Please review.

Comparison is base (7a39491) 92.21% compared to head (5eadd6d) 91.24%.
Report is 4 commits behind head on main.

Files Patch % Lines
openfe/tests/protocols/test_openmm_afe_slow.py 25.39% 47 Missing ⚠️
openfe/protocols/openmm_afe/base.py 26.66% 11 Missing ⚠️
...protocols/openmm_afe/equil_solvation_afe_method.py 60.00% 8 Missing ⚠️
openfe/protocols/openmm_rfe/equil_rfe_methods.py 57.14% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #614      +/-   ##
==========================================
- Coverage   92.21%   91.24%   -0.97%     
==========================================
  Files         124      125       +1     
  Lines        8594     8478     -116     
==========================================
- Hits         7925     7736     -189     
- Misses        669      742      +73     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@richardjgowers
Copy link
Contributor

@IAlibay do you want me to finish this up or is it obsolete now?

@IAlibay
Copy link
Member Author

IAlibay commented Feb 7, 2024

@richardjgowers I'm working on this elsewhere - this doesn't need handover.

@IAlibay
Copy link
Member Author

IAlibay commented Mar 1, 2024

Superseded by #720

@IAlibay IAlibay closed this Mar 1, 2024
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

Successfully merging this pull request may close these issues.

Add a "pre equilibration" step to AFEs
3 participants