-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add option to control whether water is alchemically changed into counterion for charge changes #1030
Conversation
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.
Looks good, great work. Just a couple of things:
- We need to use the option read from the YAML file.
- Do we want a test that directly computes the charges?
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.
LGTM!
By the way, just confirmed locally that the YAML file option is working correctly. |
@zhang-ivy Could you please add what would need to appear in the changelog for these changes? Thanks! |
@ijpulidos : Done! |
Description
This PR allows the user to disable the introduction of counterion(s) for small molecule and protein mutation transformations.
Motivation and context
Resolves #1004
How has this been tested?
@ijpulidos : Could you make sure that specifying
transform_waters_into_ions_for_charge_changes : False
in the yaml actually controls the introduction of the counterion? If the changes I made are right, you should see a logger message that saysSkipping counterion
.Note that I added a test (for protein mutations, but not small molecules) that checks that this option is working properly. You could adapt this test for a small molecule example, or it might be sufficient to just double check that you see the logger statement when you include the
transform_waters_into_ions_for_charge_changes
option in the yaml.Change log