Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
43d6007
Migrate validation to Protocol._validate
IAlibay Dec 5, 2025
2cd56ba
some fixes
IAlibay Dec 5, 2025
70e6d7a
Merge branch 'main' into validate-rfe
IAlibay Dec 5, 2025
f330562
move some things around
IAlibay Dec 8, 2025
95b92b3
Merge branch 'main' into validate-rfe
IAlibay Dec 15, 2025
1e0153e
add validate endstate tests
IAlibay Dec 15, 2025
fe2b879
Merge branch 'validate-rfe' of github.com:OpenFreeEnergy/openfe into …
IAlibay Dec 15, 2025
fbc4554
validate mapping tests
IAlibay Dec 15, 2025
c2f49d2
net charge validation tests
IAlibay Dec 15, 2025
c50f99c
more stuff
IAlibay Dec 22, 2025
9e0d29b
remove old tests
IAlibay Dec 24, 2025
2fe8ff9
make hybrid samplers not rely on htf
IAlibay Dec 24, 2025
4a0bd26
fix up test
IAlibay Dec 24, 2025
5848adc
fix up some slow tests
IAlibay Dec 24, 2025
1aaef87
Merge branch 'main' into multistate-nohtf
IAlibay Dec 24, 2025
b6d5ecd
Fix up the one test
IAlibay Dec 26, 2025
0605d11
fix a few things
IAlibay Dec 26, 2025
48106a2
fix the remaining tests
IAlibay Dec 26, 2025
5af66e8
cleanup imports
IAlibay Dec 26, 2025
ad0b5fb
Merge branch 'validate-rfe' into move-rfe-protocol
IAlibay Dec 26, 2025
45e004c
Merge branch 'multistate-nohtf' into move-rfe-protocol
IAlibay Dec 26, 2025
58dd71c
Migrate protocol, units, and results for the hybridtop protocol
IAlibay Dec 26, 2025
792996e
Add news item
IAlibay Dec 26, 2025
91f1788
Merge branch 'validate-rfe' into move-rfe-protocol
IAlibay Dec 26, 2025
527b870
Merge branch 'main' into validate-rfe
IAlibay Dec 26, 2025
7d17998
fix redefine
IAlibay Dec 27, 2025
43eb947
start modularising everything
IAlibay Dec 27, 2025
d1bd736
Add charge validation for smcs when dealing with ismorphic molecules
IAlibay Dec 27, 2025
51a6de1
break down the rfe units into bits
IAlibay Dec 29, 2025
6a5a76a
more broadly disallow oechem as a backend when creating systems
IAlibay Dec 29, 2025
cdd3da0
fix issue with nc being undefined
IAlibay Dec 29, 2025
e0a8e2a
Merge branch 'validate-rfe' into move-rfe-protocol
IAlibay Dec 29, 2025
a0ef737
Merge branch 'move-rfe-protocol' into breakdown-rfe-protocolunit
IAlibay Dec 29, 2025
b826803
Fix missing import
IAlibay Dec 29, 2025
42ddbcf
Merge branch 'move-rfe-protocol' into breakdown-rfe-protocolunit
IAlibay Dec 29, 2025
063e8ce
Fix comp getter
IAlibay Dec 29, 2025
3844bb5
Merge branch 'move-rfe-protocol' into breakdown-rfe-protocolunit
IAlibay Dec 29, 2025
a98c799
update module name
IAlibay Dec 30, 2025
5d0bc7e
Merge branch 'move-rfe-protocol' into breakdown-rfe-protocolunit
IAlibay Dec 30, 2025
7c915ed
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 3, 2026
951ac15
move a few things around to make life easier
IAlibay Jan 3, 2026
b9f8264
Merge branch 'main' into breakdown-rfe-protocolunit
IAlibay Jan 7, 2026
2e4b455
fix typo
IAlibay Jan 7, 2026
7182805
fix some merge issues
IAlibay Jan 7, 2026
28b4381
fix test failures due to integrator checks
IAlibay Jan 7, 2026
726f517
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 7, 2026
1587673
try to make mypy happy
IAlibay Jan 7, 2026
5cca950
Merge branch 'breakdown-rfe-protocolunit' of github.com:OpenFreeEnerg…
IAlibay Jan 7, 2026
1fbec7d
add early exist if there's no molecules
IAlibay Jan 7, 2026
3cd758e
Apply suggestions from code review
IAlibay Jan 7, 2026
6622428
Update openfe/protocols/openmm_rfe/hybridtop_units.py
IAlibay Jan 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into breakdown-rfe-protocolunit
  • Loading branch information
IAlibay authored Jan 7, 2026
commit b9f826443fbee51f776bb420b62a9941989b5727
2 changes: 1 addition & 1 deletion openfe/protocols/openmm_rfe/equil_rfe_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""Equilibrium Relative Free Energy Protocol using OpenMM and OpenMMTools in a
Perses-like manner.

This module implements the necessary tooling to run calculate the
This module implements the necessary tooling to calculate the
relative free energy of a ligand transformation using OpenMM tools and one of
the following methods:
- Hamiltonian Replica Exchange
Expand Down
23 changes: 12 additions & 11 deletions openfe/protocols/openmm_rfe/hybridtop_protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,13 @@ def _validate_mapping(

# check that the mapping components are in the alchemical components
for m in mapping:
if m.componentA not in alchemical_components["stateA"]:
raise ValueError(
f"Mapping componentA {m.componentA} not in alchemical components of stateA"
)
if m.componentB not in alchemical_components["stateB"]:
raise ValueError(
f"Mapping componentB {m.componentB} not in alchemical components of stateB"
)
for state in ["A", "B"]:
comp = getattr(m, f"component{state}")
if comp not in alchemical_components[f"state{state}"]:
raise ValueError(
f"Mapping component{state} {comp} not "
f"in alchemical components of state{state}"
)

# TODO: remove - this is now the default behaviour?
# Check for element changes in mappings
Expand Down Expand Up @@ -350,7 +349,7 @@ def _equal_charges(moli, molj):

if len(clashes) > 0:
errmsg = (
"Found SmallMoleculeComponents are are isomorphic "
"Found SmallMoleculeComponents that are isomorphic "
"but with different charges, this is not currently allowed. "
f"Affected components: {clashes}"
)
Expand Down Expand Up @@ -384,6 +383,8 @@ def _validate_charge_difference(
nonbonded method is not PME.
* If the absolute charge difference is greater than one
and an explicit charge correction is attempted.
* If an explicit charge correction is attempted and there is no
solvent present.
UserWarning
* If there is any charge difference.
"""
Expand All @@ -404,7 +405,7 @@ def _validate_charge_difference(
return

if solvent_component is None:
errmsg = "Cannot use eplicit charge correction without solvent"
errmsg = "Cannot use explicit charge correction without solvent"
raise ValueError(errmsg)

# We implicitly check earlier that we have to have pme for a solvated
Expand Down Expand Up @@ -515,7 +516,7 @@ def _validate(
# Validate the end states
self._validate_endstates(stateA, stateB)

# Valildate the mapping
# Validate the mapping
alchem_comps = system_validation.get_alchemical_components(stateA, stateB)
self._validate_mapping(mapping, alchem_comps)

Expand Down
2 changes: 1 addition & 1 deletion openfe/protocols/openmm_rfe/hybridtop_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import matplotlib.pyplot as plt
import mdtraj
import numpy as np
import numpy.typing as npt
import numpy.typing as nptnpt
import openmm
import openmmtools
from gufe import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def test_charge_difference_no_corr(benzene_to_benzoic_mapping):


def test_charge_difference_no_solvent(benzene_to_benzoic_mapping):
errmsg = "Cannot use eplicit charge correction without solvent"
errmsg = "Cannot use explicit charge correction without solvent"

with pytest.raises(ValueError, match=errmsg):
openmm_rfe.RelativeHybridTopologyProtocol._validate_charge_difference(
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.