-
Notifications
You must be signed in to change notification settings - Fork 9
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
SmallMoleculeComponent.to_openff() does not preserve the molecule protonation state #297
Comments
I know this particular SDF has incorrect bond orders, but I think users' input protonation state should still generally be respected |
That's a good question, is there a special reason why we don't want hydrogens to be explicit? I know there's an use case for this flag, but I can't think of why we would prefer to default to |
if a |
Agreed with everyone here - the base assumption for SMCs is that all hydrogens have been explicitly set. We should enforce this with |
Sounds good, thanks @IAlibay! Will discuss in today's dev call. |
Do we know if there are any gotchas we need to be aware when using Possibly pinging @j-wags here. |
Expected Behavior
All explicit hydrogens are conserved when converting to OpenFF
Molecule
Current Behavior
OFFMolecule
is constructed directly fromSmallMoleculeComponent._rdkit
with__init__
:gufe/gufe/components/smallmoleculecomponent.py
Lines 183 to 196 in 29f98ec
This essentially calls
which leads to rdkit adding hydrogensPossible Solution
Use
.from_rdkit()
constructor directly withhydrogens_are_explicit
set to TrueSteps to Reproduce
> gdp_ugly.sdf:
The text was updated successfully, but these errors were encountered: