You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to run a RBFE calculation on some MALT1 ligands I get the following error when trying to remove parts of the mapping that involve a change in constraints:
Traceback (most recent call last):
File "/Users/joshua/Documents/Projects/openfe/dev/femto_benchmarking/malt1/reproduce_error.py", line 32, in
vac_unit.run(dry=True, verbose=True)
File "/Users/joshua/Documents/Software/openfe/openfe/protocols/openmm_rfe/equil_rfe_methods.py", line 844, in run
ligand_mappings = _rfe_utils.topologyhelpers.get_system_mappings(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/joshua/Documents/Software/openfe/openfe/protocols/openmm_rfe/_rfe_utils/topologyhelpers.py", line 599, in get_system_mappings
adjusted_old_to_new_map = _remove_constraints(
^^^^^^^^^^^^^^^^^^^^
File "/Users/joshua/Documents/Software/openfe/openfe/protocols/openmm_rfe/_rfe_utils/topologyhelpers.py", line 513, in _remove_constraints
del no_const_old_to_new_atom_map[idx]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
KeyError: 34
I have narrowed the cause of this down to the index 34 being added to the to_del list twice. The overlapping ligands are shown here (the pymol index is +1 on the mapping index):
I think this mapping may have an issue (so maybe a kartograf issue?) as 32(H) -> 38(H) means that a H will be left on the ether oxygen at lambda=1 which is not correct, and this issue goes away if you set atom_map_hydrogens=False in the script below, which we intend to make the default going forward and should resolve this.
To Reproduce
Steps to reproduce the behavior (ideally a minimally reproducible example):
See the attached ligand sdf files and this script:
Which operating system and version did you use? (e.g. ubuntu 22.04.5) mac
Which method did you use to install this package? (e.g. conda-forge) conda-forge
Copy/paste the output of conda list (or the equivalent for your package manager):
Output
Expected behavior
Maybe we should raise a more descriptive error if we hit this case where an index is in the to delete list more than once, I think this generally indicates that an atom in a constraint is being transformed into another atom involved in a different constraint.
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
While trying to run a RBFE calculation on some MALT1 ligands I get the following error when trying to remove parts of the mapping that involve a change in constraints:
I have narrowed the cause of this down to the index 34 being added to the to_del list twice. The overlapping ligands are shown here (the pymol index is +1 on the mapping index):
and the atom mapping made by Kartograf is
I think this mapping may have an issue (so maybe a kartograf issue?) as 32(H) -> 38(H) means that a H will be left on the ether oxygen at lambda=1 which is not correct, and this issue goes away if you set
atom_map_hydrogens=False
in the script below, which we intend to make the default going forward and should resolve this.To Reproduce
Steps to reproduce the behavior (ideally a minimally reproducible example):
See the attached ligand sdf files and this script:
ligands.zip
Software versions
conda list
(or the equivalent for your package manager):Output
Expected behavior
Maybe we should raise a more descriptive error if we hit this case where an index is in the to delete list more than once, I think this generally indicates that an atom in a constraint is being transformed into another atom involved in a different constraint.
Additional context
The text was updated successfully, but these errors were encountered: