-
Notifications
You must be signed in to change notification settings - Fork 90
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
Raise exception when processing molecule with radical electrons #1236
Conversation
commit 28c1923c23749b5938add197d4b964afd67ae051 Merge: 3c5454e 921fbe2 Author: Matthew W. Thompson <mattwthompson@protonmail.com> Date: Tue Mar 29 14:21:28 2022 -0500 Merge remote-tracking branch 'upstream/master' into no-radicals commit 3c5454e Author: Matthew W. Thompson <mattwthompson@protonmail.com> Date: Wed Sep 29 13:28:27 2021 -0500 Raise exception when RDKit finds a SMILES/rdmol with radical(s)
Codecov Report
Additional details and impacted files |
Some InChi roundtrips are showing different behavior; I don't know if that's good or bad. I've added a milestone for 0.11.1 because this is not a requirement for the 0.11.0 release. |
…into no-radicals-2
23ca84e
to
53fc2aa
Compare
I'll look into these test failures, but to recap a statement I just made in a synchronous meeting with @mattwthompson: There are three outcomes to a user loading a molecule with a radical into OFFTK:
Right now, trying to parameterize neutral CH3 gets us errors from quacpac and antechamber, so that's clearly an invalid input for our infrastructure. So, I'm coming around to the idea of totally forbidding radicals for now in the toolkit, at least until we have defined behavior specified, and we establish that we explicitly DO aim to have those in scope. |
Allllright, I think this should be fixed throughout but I'll wait for tests to pass before running a final review. Minidrugbank is such an awful test set, maybe things are finally quiet enough that I can sit down and make a new one. |
Humor shows up in unexpected places:
|
…y cheminf toolkit)
…ut failing to parameterize a radical, which now instead throws an error immediately upon loading
Laughing it up all the way to the deprecated folder. I don't feel like rewriting a large fraction of that notebook, and it was largely a early marketing tool to show groups "hey look, we COULD parameterize your molecules". We have more impressive things to show off now. |
Here's a block to add to the changelog, keeping it out of the tree to make merges easier:
Resolves #1075, assuming I haven't forgotten how chemistry works.
This is a follow-on to #1098 targeting the v0.11.x line.
Two remaining considerations may be: