Skip to content

Conversation

@jthorton
Copy link
Collaborator

@jthorton jthorton commented Dec 13, 2024

Fixes #1000 by adding adaptive settings based on if the transformation involves a net charge change, for the default RBFE protocol only.
Checklist

  • Added a news entry

Developers certificate of origin

@github-actions
Copy link

🚨 API breaking changes detected! 🚨

@codecov
Copy link

codecov bot commented Dec 13, 2024

Codecov Report

Attention: Patch coverage is 98.11321% with 1 line in your changes missing coverage. Please review.

Project coverage is 92.84%. Comparing base (3a57cdf) to head (a330600).
Report is 146 commits behind head on main.

Files with missing lines Patch % Lines
...ork_planner/relative_alchemical_network_planner.py 94.11% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1053      +/-   ##
==========================================
- Coverage   94.55%   92.84%   -1.72%     
==========================================
  Files         134      135       +1     
  Lines       10008    10061      +53     
==========================================
- Hits         9463     9341     -122     
- Misses        545      720     +175     
Flag Coverage Δ
fast-tests 92.84% <98.11%> (?)
slow-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

🚨 API breaking changes detected! 🚨

Copy link
Contributor

@atravitz atravitz left a comment

Choose a reason for hiding this comment

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

Just a few questions/comments

with pytest.warns(UserWarning, match="Charge changing transformation between ligands lig_40 and lig_41"):
result = runner.invoke(plan_rbfe_network, args)

print(result.output)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need this print statement here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch, this is what happens when I copy and paste a test!

Copy link
Contributor

Choose a reason for hiding this comment

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

I still see the print statement, just putting it here in case you forgot to remove it, if not, please ignore this comment!

@jthorton jthorton requested a review from atravitz December 18, 2024 10:42
Copy link
Contributor

@atravitz atravitz left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@hannahbaumann hannahbaumann left a comment

Choose a reason for hiding this comment

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

Thanks @jthorton , lgtm, just the few comments!


yield pdb_path, lig_path

def test_plan_rbfe_network_charge_changes(cdk8_files):
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if it would make sense to have a test with three ligands and two edges, one with charge change and one without to test the "mixed" networks.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good idea I was hoping the other tests would catch any breaks in the settings but they don't seem to be checking for it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done in 983dce8

with pytest.warns(UserWarning, match="Charge changing transformation between ligands lig_40 and lig_41"):
result = runner.invoke(plan_rbfe_network, args)

print(result.output)
Copy link
Contributor

Choose a reason for hiding this comment

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

I still see the print statement, just putting it here in case you forgot to remove it, if not, please ignore this comment!

@hannahbaumann hannahbaumann self-assigned this Dec 19, 2024
@github-actions
Copy link

No API break detected ✅

Copy link
Contributor

@hannahbaumann hannahbaumann left a comment

Choose a reason for hiding this comment

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

Thanks @jthorton , lgtm!

@jthorton jthorton merged commit 76127a1 into main Dec 19, 2024
12 checks passed
@jthorton jthorton deleted the cli_charge_changes branch December 19, 2024 14:56
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.

Support net charge params on CLI

4 participants