-
Notifications
You must be signed in to change notification settings - Fork 845
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
EnumerateStereoisomers fail with STEREOANY bonds from molblock #3759
Comments
@TermeHansen, the issue there is that Also, please note that in your example the bond you are marking cannot be a stereobond, since the atom on the left has two identical neighbors (H atoms). This works as expected (please note the extra
|
@ricrogz you are very right about my weird choise of case, but it was just the molecule I was working on when I saw this. the
|
Interesting. It seems to happen because of the Mol parser setting the rdkit/Code/GraphMol/FileParsers/MolFileParser.cpp Lines 1682 to 1685 in eebd114
Apparently,
|
Actually, the result that you are getting is correct:
The double bond is still tagged as |
@ricrogz thank you very much for these pointers on how to handle this, and yes you are actually right that to some extend it is nice to be able to decide if for reference how I handle this now:
|
@TermeHansen, I think I made a mistake in my first message: This means that in the example I posted we do not need to set stereo atoms explicitly, as the SMILES I proposed contains a potentially valid stereo bond:
In fact, in the example we don't even need to mark the bond as
These things were only required to have your example molecule enumerated (in a hacky way), since the bond couldn't be a stereo bond. Regarding your last code snippet, one additional warning besides Finally, I think the intention of |
This issue was raied by #2890, and the example there now works, but I have run into another case where it happens when I read in the molecule from a molblock. I have tried to look at atom and bond properties, but I can not see why it is??
rdkit from conda-forge on ubuntu 20.04
The text was updated successfully, but these errors were encountered: