Skip to content

Commit

Permalink
Backmerge: #1525 System attach two explicit hydrogens to aromatized r…
Browse files Browse the repository at this point in the history
…ing (#1645)
  • Loading branch information
AliaksandrDziarkach authored Jan 31, 2024
1 parent 368f969 commit 3db0c91
Show file tree
Hide file tree
Showing 5 changed files with 434 additions and 1 deletion.
5 changes: 5 additions & 0 deletions api/tests/integration/ref/basic/unfold_query_molecules.py.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
******* Test unfold aromatic ring *******

testing filename:
issue_1525.ket
Unfolded KET equal to expected
149 changes: 149 additions & 0 deletions api/tests/integration/tests/basic/molecules/issue_1525.ket
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
{
"root": {
"nodes": [
{
"$ref": "mol0"
}
],
"connections": [],
"templates": []
},
"mol0": {
"type": "molecule",
"atoms": [
{
"label": "C",
"location": [
22.61594124729773,
-9.626352140690974,
0
],
"queryProperties": {
"aromaticity": "aromatic"
}
},
{
"label": "C",
"location": [
22.273921254352572,
-10.566044522976501,
0
],
"queryProperties": {
"aromaticity": "aromatic"
}
},
{
"label": "C",
"location": [
21.289113406700526,
-10.739692382285526,
0
],
"queryProperties": {
"aromaticity": "aromatic"
}
},
{
"label": "C",
"location": [
20.646325551993638,
-9.973647859309024,
0
],
"queryProperties": {
"aromaticity": "aromatic"
}
},
{
"label": "C",
"location": [
20.988345544938795,
-9.033955477023499,
0
],
"queryProperties": {
"aromaticity": "aromatic"
}
},
{
"label": "C",
"location": [
21.97315339259084,
-8.860307617714474,
0
],
"queryProperties": {
"aromaticity": "aromatic"
}
},
{
"label": "",
"location": [
19.66151770434159,
-10.14729571861805,
0
],
"queryProperties": {
"customQuery": "$([#1]),$([#17])"
}
}
],
"bonds": [
{
"type": 4,
"atoms": [
0,
1
]
},
{
"type": 4,
"atoms": [
1,
2
]
},
{
"type": 4,
"atoms": [
2,
3
]
},
{
"type": 4,
"atoms": [
3,
4
]
},
{
"type": 4,
"atoms": [
4,
5
]
},
{
"type": 4,
"atoms": [
0,
5
]
},
{
"type": 1,
"atoms": [
3,
6
]
}
],
"stereoFlagPosition": {
"x": 22.61594124729773,
"y": 7.860307617714474,
"z": 0
}
}
}
222 changes: 222 additions & 0 deletions api/tests/integration/tests/basic/ref/issue_1525.ket
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
{
"root": {
"nodes": [
{
"$ref": "mol0"
}
]
},
"mol0": {
"type": "molecule",
"atoms": [
{
"label": "C",
"location": [
22.615942001342775,
-9.626352310180664,
0.0
],
"queryProperties": {
"aromaticity": "aromatic"
}
},
{
"label": "C",
"location": [
22.273921966552736,
-10.566044807434082,
0.0
],
"queryProperties": {
"aromaticity": "aromatic"
}
},
{
"label": "C",
"location": [
21.289113998413087,
-10.739692687988282,
0.0
],
"queryProperties": {
"aromaticity": "aromatic"
}
},
{
"label": "C",
"location": [
20.646326065063478,
-9.973648071289063,
0.0
],
"queryProperties": {
"aromaticity": "aromatic"
}
},
{
"label": "C",
"location": [
20.988346099853517,
-9.033955574035645,
0.0
],
"queryProperties": {
"aromaticity": "aromatic"
}
},
{
"label": "C",
"location": [
21.973154067993165,
-8.860307693481446,
0.0
],
"queryProperties": {
"aromaticity": "aromatic"
}
},
{
"label": "",
"location": [
19.661518096923829,
-10.147295951843262,
0.0
],
"queryProperties": {
"customQuery": "$([#1]),$([#17])"
}
},
{
"label": "H",
"location": [
23.600749969482423,
-9.452704429626465,
0.0
]
},
{
"label": "H",
"location": [
22.916709899902345,
-11.3320894241333,
0.0
]
},
{
"label": "H",
"location": [
20.947093963623048,
-11.6793851852417,
0.0
]
},
{
"label": "H",
"location": [
20.345558166503908,
-8.267910957336426,
0.0
]
},
{
"label": "H",
"location": [
22.315174102783204,
-7.920615196228027,
0.0
]
}
],
"bonds": [
{
"type": 4,
"atoms": [
0,
1
]
},
{
"type": 4,
"atoms": [
1,
2
]
},
{
"type": 4,
"atoms": [
2,
3
]
},
{
"type": 4,
"atoms": [
3,
4
]
},
{
"type": 4,
"atoms": [
4,
5
]
},
{
"type": 4,
"atoms": [
0,
5
]
},
{
"type": 1,
"atoms": [
3,
6
]
},
{
"type": 1,
"atoms": [
0,
7
]
},
{
"type": 1,
"atoms": [
1,
8
]
},
{
"type": 1,
"atoms": [
2,
9
]
},
{
"type": 1,
"atoms": [
4,
10
]
},
{
"type": 1,
"atoms": [
5,
11
]
}
],
"stereoFlagPosition": {
"x": 22.615942001342775,
"y": 7.860307693481445,
"z": 0.0
}
}
}
Loading

0 comments on commit 3db0c91

Please sign in to comment.