-
Notifications
You must be signed in to change notification settings - Fork 21
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
write_smiles can create invalid SMILES when provided with chemically invalid graphs #17
Comments
It's complicated :)
How did you generate your graph? The I hope this helps, or at least provides you with a workaround... PS. thanks for the SE link, it's an interesting discussion. edit: PPS: I agree with the assessment that pysmiles produced an invalid SMILES in this case. I'm debating whether I'll fix this, or whether it's better to leave |
Reference issue #17 in readme to warn about invalid smiles
@pckroon this should be fixed now. In fact there was a bug in the writer but I sneaky fixed that with the aromatic overhaul. |
For some reason my graph is returning SMILES for aromatic groups that uses aromatic bond symbols e.g.
NC:1:N:N:C:[N]1N
.RDKit does not recognize these symbols and it removes all the aromaticity to produce
NC1NNCN1N
, and openbabel produces the same result.Some have speculated that its a smarts string
https://mattermodeling.stackexchange.com/questions/4981/how-to-canonicalize-smiles-written-with-aromatic-bond-symbols
others just say it's wrong.
openbabel/openbabel#2368
Do you know what is going on?
Thanks for your help!
The text was updated successfully, but these errors were encountered: