You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ketcher.setMolecule(`
-INDIGO-05212317082D
0 0 0 0 0 0 0 0 0 0 0 V3000
M V30 BEGIN CTAB
M V30 COUNTS 10 10 1 0 0
M V30 BEGIN ATOM
M V30 1 C 13.5221 -7.9589 0.0 0
M V30 2 C 15.2524 -7.9584 0.0 0
M V30 3 C 14.3889 -7.4588 0.0 0
M V30 4 C 15.2524 -8.9593 0.0 0
M V30 5 C 13.5221 -8.9638 0.0 0
M V30 6 C 14.3911 -9.4588 0.0 0
M V30 7 C 16.1187 -7.4588 0.0 0
M V30 8 C 12.6575 -9.4663 0.0 0
M V30 9 C 12.6561 -7.4587 0.0 0
M V30 10 C 16.1189 -9.4585 0.0 0
M V30 END ATOM
M V30 BEGIN BOND
M V30 1 2 3 1
M V30 2 2 4 2
M V30 3 1 1 5
M V30 4 1 2 3
M V30 5 2 5 6
M V30 6 1 6 4
M V30 7 1 2 7
M V30 8 1 5 8
M V30 9 1 1 9
M V30 10 1 4 10
M V30 END BOND
M V30 BEGIN SGROUP
M V30 1 SUP 1 ATOMS=(10 1 2 3 4 5 6 7 8 9 10) BRKXYZ=(9 0.000000 0.000000 0.-
M V30 000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000) BRKXYZ=(-
M V30 9 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000-
M V30 000 0.000000) LABEL="Some Name"
M V30 END SGROUP
M V30 END CTAB
M END
`)
Actual behavior
Contracted unknown superatom is parsed as expanded, and brackets with the name are lost.
Expected behavior
A contracted unknown superatom is parsed as contracted and user can expand it without loses a brackets with name.
Scenario 2 MolV3000
Open Ketcher
Open DevConsole
Add expanded unknown superatoms through API:
ketcher.setMolecule(`
-INDIGO-05212317132D
0 0 0 0 0 0 0 0 0 0 0 V3000
M V30 BEGIN CTAB
M V30 COUNTS 10 10 1 0 0
M V30 BEGIN ATOM
M V30 1 C 14.0471 -6.8839 0.0 0
M V30 2 C 15.7774 -6.8834 0.0 0
M V30 3 C 14.9139 -6.3838 0.0 0
M V30 4 C 15.7774 -7.8843 0.0 0
M V30 5 C 14.0471 -7.8888 0.0 0
M V30 6 C 14.9161 -8.3838 0.0 0
M V30 7 C 16.6437 -6.3838 0.0 0
M V30 8 C 13.1825 -8.3913 0.0 0
M V30 9 C 13.1811 -6.3837 0.0 0
M V30 10 C 16.6439 -8.3835 0.0 0
M V30 END ATOM
M V30 BEGIN BOND
M V30 1 2 3 1
M V30 2 2 4 2
M V30 3 1 1 5
M V30 4 1 2 3
M V30 5 2 5 6
M V30 6 1 6 4
M V30 7 1 2 7
M V30 8 1 5 8
M V30 9 1 1 9
M V30 10 1 4 10
M V30 END BOND
M V30 BEGIN SGROUP
M V30 1 SUP 1 ATOMS=(10 1 2 3 4 5 6 7 8 9 10) BRKXYZ=(9 0.000000 0.000000 0.-
M V30 000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000) BRKXYZ=(-
M V30 9 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000-
M V30 000 0.000000) LABEL="Some Name" ESTATE=E
M V30 END SGROUP
M V30 END CTAB
M END
`)
Actual behavior
Expanded unknown superatom is parsed as expanded but brackets with the name are lost. Can't contract.
Expected behavior
A expanded unknown superatom is parsed as expanded and user can contract it without loses a brackets with name.
Zhirnoff
changed the title
Unable to contract or expand Unknown Superatoms that are parsed via API in MolV3000 and KET formats
Unable to contract or expand Unknown Superatoms that are parsed via API in MolV3000, KET, CDX, CDXML, CML, Base64CDX formats
May 22, 2023
Steps to Reproduce
Scenario 1 MolV3000
Actual behavior
Contracted unknown superatom is parsed as expanded, and brackets with the name are lost.
Expected behavior
A contracted unknown superatom is parsed as contracted and user can expand it without loses a brackets with name.
Scenario 2 MolV3000
Actual behavior
Expanded unknown superatom is parsed as expanded but brackets with the name are lost. Can't contract.
Expected behavior
A expanded unknown superatom is parsed as expanded and user can contract it without loses a brackets with name.
Scenario 3 .ket format
Actual behavior
Contracted unknown superatom is parsed as contracted but you can't expand it.
2023-05-21_19h53_24.mp4
Expected behavior
A contracted unknown superatom is parsed as contracted and user can expand it without loses a brackets with name.
Scenario 4 .ket format
Actual behavior
Expanded unknown superatom is parsed as expanded but when you trying contract brackets with the name are lost. Can't contract.
2023-05-21_19h54_08.mp4
Expected behavior
A expanded unknown superatom is parsed as expanded and user can contract it without loses a brackets with name.
Desktop (please complete the following information):
Ketcher version
Version 2.10.0-rc.4
#184643893
The text was updated successfully, but these errors were encountered: