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

Save to CDX converts aromatic benzene ring to dashed ring #1774

Closed
AlexeyGirin opened this issue Mar 4, 2024 · 3 comments · Fixed by #1785, #1846, #1847, #1889 or #1890
Closed

Save to CDX converts aromatic benzene ring to dashed ring #1774

AlexeyGirin opened this issue Mar 4, 2024 · 3 comments · Fixed by #1785, #1846, #1847, #1889 or #1890

Comments

@AlexeyGirin
Copy link
Collaborator

AlexeyGirin commented Mar 4, 2024

Describe the bug
Save to CDX converts plus into lone pair

Steps to Reproduce

  1. Put on the canvas following SMILE: c1ccccc1
  2. Save to CDX format file
  3. Open it in ChemDraw (ver 15 in my case)
    image

Actual behavior
Save to CDX converts aromatic benzene ring to dashed ring
image

Expected behavior
System opens ordinary aromatic benzene ring
image

Environment details (please complete the following information):

  • Indigo Toolkit Version 1.18.0-rc.9.0-gc7efb4e71-wasm32-wasm-clang-12.0.0
  • Ketcher Version 2.18.0-rc9 Build at 2024-02-27; 16:16:47
  • Chrome Version 122.0.6261.70 (Official Build) (64-bit)
  • Win10
@AlexeyGirin
Copy link
Collaborator Author

Not fixed.

  • Indigo Toolkit Version 1.19.0-rc.1.0-g8cd9f1e27-x86_64-linux-gnu-11.2.1
  • Ketcher Version 2.20.0-rc1 Build at 2024-03-15; 15:42:19
  • Chrome Version 122.0.6261.129 (Official Build) (64-bit)
  • Win10

image

@AlexeyGirin
Copy link
Collaborator Author

AlexeyGirin commented Mar 28, 2024

Not fully fixed.
Now indigo saves aromatic benzine ring as Double-Aromatic bond ring.
image
and if we open CDX created by indigo back in Ketcher - it opens corrupted molecule:
image

At the same time - CDX created by Chem Draw - has better consistency - CDX_From_ChemDraw.zip
it is opened in Ketcher well:
image

As well as in Chem Draw itself:
image

@AlexeyGirin AlexeyGirin reopened this Mar 28, 2024
AliaksandrDziarkach added a commit that referenced this issue Mar 31, 2024
Fix cdx bond load to set direction only for single bond. Fix UT
AliaksandrDziarkach added a commit that referenced this issue Mar 31, 2024
… ring

Fix cdx bond load to set direction only for single bond. Fix UT
@AlexeyGirin
Copy link
Collaborator Author

Fixed.
image
Ketcher Version 2.21.0-rc.1 Build at 2024-04-15; 20:00:15
Indigo Version 1.20.0-rc.1.0-g8e8ffc3c3-wasm32-wasm-clang-12.0.0

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