-
Notifications
You must be signed in to change notification settings - Fork 887
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
Reaction binary format throws away stereo chemistry #1257
Comments
FileParserUtils::replaceAtomWithQueryAtom appears to be the culprit here.
|
I'm at a loss. When reading a mol block product's atoms are converted to queries, however this means that most of the properties (hybdidization/chirality/etc) won't be pickled. One thing we could do is keep a copy of the original products when coming from an MDL File and pickle them. On unpickling, if the products atom's doesn't have queries, call the replaceAtomWithQuery. |
@greglandrum Ok, here is what I think the problem is. The pickling expects an atom to either be a normal atom or a query. For the reactions they appear to be used as both so the pickling is busted. Note that this also happens for ReactionFromSmarts. Pickling both pieces of information is apparently not possible without a bit of effort... |
This issue was marked as stale because it has been open for 90 days with no activity. |
Rxn block below - product is a glucose
Test
output
The text was updated successfully, but these errors were encountered: