Skip to content
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

SMILES perceptions of aromatic heterocycle converts to saturated #1323

Closed
openbabel-bot opened this issue Aug 25, 2014 · 2 comments
Closed

Comments

@openbabel-bot
Copy link
Collaborator

Open babel correctly reads the sdf containing the kekule-drawing of attached molecule, and produces the aromatic SMILES. But when fed that SMILES, it converts it to a saturated form.

obabel -isdf sulfurish.sdf -ocan
CCn1c(=S)sc2c1nc1c3ccccc3c(=O)[nH]n1c2=O

obabel -isdf sulfurish.sdf -ocan|obabel -ican - -ocan
CCN1C(=S)SC2C1NC1N(C2=O)NC(=O)C2C1CCCC2

This is both 2.3.2 and current git master.

Reported by: jeff-janes

Original Ticket: openbabel/bugs/943

@openbabel-bot
Copy link
Collaborator Author

I've also encountered this bug with the thiazole ring in Thiamine: n1c(c(cnc1C)Cn2c(c(sc2)CCO)C)N
I noticed that the program raised a stereochemistry warning (in spite of the fact that thiamine has no chiral centers)

However when the SMILES is properly charged, the SDF retains the aromaticity
n1c(c(cnc1C)C[n+]2c(c(sc2)CCO)C)N

There seems to be some issue with the combination of heteroaromaticity and charge assignment

Original comment by: jjeffryes

@baoilleach
Copy link
Member

Fixed by #1576. (FYI @jeffjanes and @JamesJeffryes)

The first doesn't lose aromaticity.

>obabel -:"CCn1c(=S)sc2c1nc1c3ccccc3c(=O)[nH]n1c2=O" -ocan
CCn1c(=S)sc2c1nc1c3ccccc3c(=O)[nH]n1c2=O

The second cannot be kekulized (and that's what the error message says):

> obabel -:"n1c(c(cnc1C)Cn2c(c(sc2)CCO)C)N" -ocan
==============================
*** Open Babel Warning  in OpenBabel::OBSmilesParser::ParseSmiles
  Failed to kekulize aromatic SMILES

OCCC1=C(C)N([CH]S1)Cc1cnc(nc1N)C

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants