Provide a way to map from WBOFragmenter
input molecule to parent molecule
#129
Labels
enhancement
New feature or request
Summary
Many users probably want to follow specific atoms/bonds through the fragmentation process. However, as a result of performing canonicalization of input molecules, there's no way to map from an atom in the input molecule of a Fragmenter job to an atom in the
result
'sparent_molecule
or any of the output fragments.Reproducing example
mol1
has the following atom map, and the drawing below shows the atom indices (NOT map indices)The result's
parent_molecule
has the following atom map, and the drawing below shows the atom indices (NOT map indices)We see that the Cl switched from being atom index 0 in the input, to atom index 4 in the parent. There's no direct way to map from 0 to 4 given the information in the
result
object.Solutions
I think the root cause of this issue is that the OpenFF toolkit performs canonicalization, but it doesn't have a way to return the atom mapping that got applied. I'll open an issue on the Toolkit repo to have that mapping get returned, and once that's available we can provide it to the user here.
The text was updated successfully, but these errors were encountered: