Repository navigation
Non-deterministic charge validation #2132
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
Open
jthorton
wants to merge
38
commits into
main
Choose a base branch
from
charge_validation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
d7dcd14
add charge validation
jthorton 84174f3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 3c76241
add tests
jthorton 2874599
Merge branch 'main' into charge_validation
jthorton 36784f9
add validation to all protocols, remove runtime charge generation
jthorton 251474c
fix tests
jthorton ba3f47d
Merge branch 'main' into charge_validation
jthorton 045954d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 6c0d7d4
fix protocol charge generation tests
jthorton 960b874
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 96b5d24
fix tests with missing charges
jthorton e2099ed
Merge branch 'main' into charge_validation
jthorton b8f7ecb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 98152db
speedup smoke test
jthorton df24ca1
add mixed charge/uncharged system testing
jthorton 7dfdb3f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0c8e7dd
switch to using sdfs
jthorton 540aefa
remove extra file
jthorton bacb1c3
fix cli tests
jthorton 9cb4322
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 7b7e4ee
add charges to inputs, remove slow mark
jthorton c43dbf0
Update src/openfe/tests/protocols/test_openmmutils.py
jthorton 6c32c99
add news, update error to list all molecules with missing charges.
jthorton 4cf822d
catch missing librarycharges handler in ff
jthorton b8846df
Merge branch 'main' into charge_validation
jthorton b62989f
add forcefield as a method, add back runtime charge assignment, add m…
jthorton 0fe8f4b
add missing import
jthorton 50d2bcb
add dry run tests with deterministic charges
jthorton 5497b91
Merge branch 'main' into charge_validation
jthorton 9721831
fix ruff issues
jthorton 71b1124
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e280b4a
Update news/charge_validation.rst
jthorton 4d01238
Apply batched suggestions from code review
jthorton 99f372b
PR feedback, add test for failed force field loading.
jthorton fc4fe45
Merge branch 'main' into charge_validation
jthorton b05ab4d
fix abfe and septop var name
jthorton 4a27757
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 7675e5c
fmt fix
jthorton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| **Added:** | ||
|
|
||
| * An option to assign run time partial charges using a small molecule force field. Set the ``partial_charge_method`` of :class:`OpenFFPartialChargeSettings` to ``forcefield`` in the protocol settings (`PR #2132 <https://github.com/OpenFreeEnergy/openfe/pull/2132>`_). | ||
|
|
||
| **Changed:** | ||
|
|
||
| * All protocols will raise a ``ProtocolValidationError`` error if a non-deterministic partial charge generation method (AM1-BCC or AM1-BCC-ELF10) is used at run time, please provide molecules with pre-calculated charges to use ``am1bcc`` or use a deterministic method such as library charges or AshGC (`PR #2132 <https://github.com/OpenFreeEnergy/openfe/pull/2132>`_). | ||
|
|
||
| **Deprecated:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Removed:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Fixed:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Security:** | ||
|
|
||
| * <news item> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been thinking more about this one - we're silently removing this, but won't users get caught out if they do use a deterministic charge method in the partial charge settings, e.g. NAGL?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that would be the downside, users would have to either use a ff with a NAGL handler or pre-charge them. If we keep support for NAGL and espaloma charge methods at runtime only that could work with the default setting being
forcefield. It could be confusing if users have to define the forcefield to use in two places 1) the charges setting object and 2) small molecule force field, and then what happens if these are different?Ideally I would love to keep this as simple as possible for users, we already encourage charging before running so moving to openfe will do no runtime charge generation doesn't feel like too much of a change?