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

bug in atom placement on for image render - specific smiles #65

Open
Mblakey opened this issue May 6, 2023 · 1 comment
Open

bug in atom placement on for image render - specific smiles #65

Mblakey opened this issue May 6, 2023 · 1 comment

Comments

@Mblakey
Copy link

Mblakey commented May 6, 2023

smiles: N1C2C(=S3c4c1ccc(c4)N=Cc1ccc(SO3)cc1)C=CC=C2
smiles: c12cc3C4c5cc6ccccc6cc5C(c3cc1cccc2)Oc1ccc(cc1)O4

The sulphur here should be bonded to the benzene, other drawers confirm this smiles is correct! (although if its not, please school me!)

#1
#1 (1)

@johnmay
Copy link
Member

johnmay commented May 7, 2023

No the SMILES is correct but it's when you get a macrocycle there is currently no conflict resolution - in fact there is no pretty option - so it just gives up. The molecule is connected properly you just get things laid on top of each other.

You can see ChemDraw also gives up but falls back to a force directed layout:

Screenshot 2023-05-07 at 07 47 59

I can see a possible tweak to the first one in the cleanup stage, the second one just needs to be 3D probably...

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