Smiles:
[O-]C(=O)CCCC(=O)c1ccc2cccc3ccc(C(=O)C([O-])=O)c1c23
Exception in thread "main" org.openscience.cdk.exception.InvalidSmilesException: could not parse '[O-]C(=O)CCCC(=O)c1ccc2cccc3ccc(C(=O)C([O-])=O)c1c23', a valid kekulé structure could not be assigned
at org.openscience.cdk.smiles.SmilesParser.parseSmiles(SmilesParser.java:209)
Other libs can cope with it:
https://apps.ideaconsult.net/ambit2/depict?search=%5BO-%5DC%28%3DO%29CCCC%28%3DO%29c1ccc2cccc3ccc%28C%28%3DO%29C%28%5BO-%5D%29%3DO%29c1c23&smarts=#
Cheers,
Martin
Hi Martin,
The SMILES is invalid, if you really want to try and handle it you can turn off kekulisation but then you'll have a molecule in a state of limbo which is not good.
When you say cope - Open Babel Removes all bonds orders and PubChem/Id Resolver change the molecular formula (added a hydrogen).
The second may sound reasonable but notice that shuffling the SMILES adds the H in a different location. As if by magic I turn one structure in to 13!.
Try these:
Hi John,
hmm, you are right, just noticed that its really not possible to kekulize this structure...
Sorry for the false alarm.
Cheers,
Martin
No problem...