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

fixes implementation of transmuting_methyl_into_ring_score #526

Merged
merged 3 commits into from
Aug 23, 2023

Conversation

richardjgowers
Copy link
Contributor

previously would penalise H to ring atom contributions.

this will affect the results of default_lomap_score function

Developers certificate of origin

previously would penalise H to ring atom contributions.

this will affect the results of `default_lomap_score` function
@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.09% 🎉

Comparison is base (e667856) 92.01% compared to head (ba33531) 92.10%.
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #526      +/-   ##
==========================================
+ Coverage   92.01%   92.10%   +0.09%     
==========================================
  Files         113      113              
  Lines        6850     6930      +80     
==========================================
+ Hits         6303     6383      +80     
  Misses        547      547              
Files Changed Coverage Δ
openfe/setup/atom_mapping/lomap_scorers.py 100.00% <100.00%> (ø)
...tests/protocols/test_openmm_equil_rfe_protocols.py 90.90% <100.00%> (+1.11%) ⬆️
...nfe/tests/setup/atom_mapping/test_lomap_scorers.py 100.00% <100.00%> (ø)

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

Copy link
Member

@IAlibay IAlibay left a comment

Choose a reason for hiding this comment

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

Two small things ottherwise lgtm!

@@ -291,10 +291,11 @@ def creates_heterocyle(mol):

def transmuting_methyl_into_ring_score(mapping: LigandAtomMapping,
Copy link
Member

Choose a reason for hiding this comment

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

Sorry to ask this, but could you add a direct test for this here? It'll help document intentions in the future.

@@ -291,10 +291,11 @@ def creates_heterocyle(mol):

def transmuting_methyl_into_ring_score(mapping: LigandAtomMapping,
beta=0.1, penalty=6.0):
"""Penalises ring forming
"""Penalises having a non-mapped ring atoms become a non-ring
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"""Penalises having a non-mapped ring atoms become a non-ring
"""Penalises having a non-mapped ring atoms become a non-ring group

Or something like that.

now complete parity with Lomap implementation
@richardjgowers richardjgowers enabled auto-merge (rebase) August 23, 2023 12:23
@richardjgowers richardjgowers merged commit 025b28e into main Aug 23, 2023
7 checks passed
@richardjgowers richardjgowers deleted the fix_methyl_to_ring_rule branch August 23, 2023 12:31
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.

2 participants