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

Connect multiple benzene rings, presenting a large circle #162

Open
liu7A opened this issue Jan 11, 2023 · 1 comment
Open

Connect multiple benzene rings, presenting a large circle #162

liu7A opened this issue Jan 11, 2023 · 1 comment

Comments

@liu7A
Copy link

liu7A commented Jan 11, 2023

hi bro, I like SMILES DRAWER! THX.

I used a MOLVIEW to draw a number of benzene rings, and a large ring shape appeared on the SMILES_DRAWER.

SMILES: C(C1=CC=CC=C1)1=CC=C(C2C=CC(C3C=CC(C4C=CC(C5C=CC=CC=5)=CC=4)=CC=3)=CC=2)C=C1

MOLVIEW:
image

SMILES_DRAWER:
image

@xavierholt
Copy link

This looks like a backreference parsing bug. Reference 1 to the first carbon in the chain should have been cleared as soon as the next 1 linked back to it. But it looks like when parsing reaches the end of the SMILES string, 1 still refers to the original carbon.

You can work around this by using 6 instead of 1 for the other reference:

C(C1=CC=CC=C1)6=CC=C(C2C=CC(C3C=CC(C4C=CC(C5C=CC=CC=5)=CC=4)=CC=3)=CC=2)C=C6

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

No branches or pull requests

2 participants