Skip to content

Commit

Permalink
Backmerge: #2407 - The ordering of branches of cascade reactions and …
Browse files Browse the repository at this point in the history
…reactions themselves should be the same on Load/Save from/to RDF (#2570) (#2577)
  • Loading branch information
even1024 authored Oct 24, 2024
1 parent e092c65 commit fadb0a4
Show file tree
Hide file tree
Showing 94 changed files with 9,929 additions and 2,266 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/indigo-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1406,4 +1406,4 @@ jobs:
export clean_tag=${tag/refs\/tags\/indigo-/}
docker tag epmlsop/indigo-service:enhanced-latest epmlsop/indigo-service:enhanced-${clean_tag}
docker push epmlsop/indigo-service:enhanced-${clean_tag}
docker push epmlsop/indigo-service:enhanced-latest
docker push epmlsop/indigo-service:enhanced-latest
2 changes: 2 additions & 0 deletions api/tests/integration/ref/formats/ket_cdxml.py.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
*** KET to CDXML to KET ***
2558-missed.cdxml:SUCCEED
2558-missed.ket:SUCCEED
961-text_size.cdxml:SUCCEED
961-text_size.ket:SUCCEED
agents.cdxml:SUCCEED
Expand Down
1 change: 1 addition & 0 deletions api/tests/integration/ref/formats/ket_to_rdf.py.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
multi.rdf:SUCCEED
pathway1.rdf:SUCCEED
pathway10.rdf:SUCCEED
pathway11.rdf:SUCCEED
pathway2.rdf:SUCCEED
pathway3.rdf:SUCCEED
pathway4.rdf:SUCCEED
Expand Down
1 change: 1 addition & 0 deletions api/tests/integration/ref/formats/rdf_to_cdxml.py.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*** RDF to CDXML ***
pathway1.cdxml:SUCCEED
pathway10.cdxml:SUCCEED
pathway11.cdxml:SUCCEED
pathway2.cdxml:SUCCEED
pathway3.cdxml:SUCCEED
pathway4.cdxml:SUCCEED
Expand Down
3 changes: 3 additions & 0 deletions api/tests/integration/ref/formats/rxn_to_ket.py.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*** RXN to KET ***
2485-bad-layout.ket:SUCCEED
2531-bad-layout.ket:SUCCEED
1 change: 1 addition & 0 deletions api/tests/integration/ref/reaction/pathway.py.out
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ pathway7.rdf:SUCCEED
pathway8.rdf:SUCCEED
pathway9.rdf:SUCCEED
pathway10.rdf:SUCCEED
pathway11.rdf:SUCCEED
1 change: 1 addition & 0 deletions api/tests/integration/tests/formats/ket_cdxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def find_diff(a, b):
"multi_overlap",
"961-text_size",
"generic",
"2558-missed",
]

files.sort()
Expand Down
1 change: 1 addition & 0 deletions api/tests/integration/tests/formats/ket_to_rdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def find_diff(a, b):
"pathway8",
"pathway9",
"pathway10",
"pathway11",
]

files.sort()
Expand Down
1 change: 1 addition & 0 deletions api/tests/integration/tests/formats/rdf_to_cdxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def find_diff(a, b):
"pathway8",
"pathway9",
"pathway10",
"pathway11",
]

files.sort()
Expand Down
65 changes: 65 additions & 0 deletions api/tests/integration/tests/formats/reactions/2485-bad-layout.rxn
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
$RXN V3000

-INDIGO- 1021241118

M V30 COUNTS 2 1
M V30 BEGIN REACTANT
M V30 BEGIN CTAB
M V30 COUNTS 5 5 0 0 0
M V30 BEGIN ATOM
M V30 1 C -29.801 19.8069 0.0 0
M V30 2 C -29.3006 18.2668 0.0 0
M V30 3 C -28.9913 19.213 0.0 0
M V30 4 C -30.3014 18.2668 0.0 0
M V30 5 C -30.6107 19.213 0.0 0
M V30 END ATOM
M V30 BEGIN BOND
M V30 1 1 1 5
M V30 2 2 5 4
M V30 3 1 4 2
M V30 4 2 2 3
M V30 5 1 3 1
M V30 END BOND
M V30 END CTAB
M V30 BEGIN CTAB
M V30 COUNTS 6 6 0 0 0
M V30 BEGIN ATOM
M V30 1 C -29.6854 16.8444 0.0 0
M V30 2 C -27.9551 16.8449 0.0 0
M V30 3 C -28.8186 17.3445 0.0 0
M V30 4 C -27.9551 15.844 0.0 0
M V30 5 C -29.6854 15.8395 0.0 0
M V30 6 C -28.8164 15.3445 0.0 0
M V30 END ATOM
M V30 BEGIN BOND
M V30 1 2 3 1
M V30 2 1 1 5
M V30 3 2 5 6
M V30 4 1 6 4
M V30 5 2 4 2
M V30 6 1 2 3
M V30 END BOND
M V30 END CTAB
M V30 END REACTANT
M V30 BEGIN PRODUCT
M V30 BEGIN CTAB
M V30 COUNTS 6 6 0 0 0
M V30 BEGIN ATOM
M V30 1 C -23.9637 16.744 0.0 0
M V30 2 C -24.6708 17.4511 0.0 0
M V30 3 C -24.412 18.417 0.0 0
M V30 4 C -23.446 18.6758 0.0 0
M V30 5 C -22.7389 17.9687 0.0 0
M V30 6 C -22.9978 17.0028 0.0 0
M V30 END ATOM
M V30 BEGIN BOND
M V30 1 1 2 1
M V30 2 1 3 2
M V30 3 1 4 3
M V30 4 1 5 4
M V30 5 1 6 5
M V30 6 1 1 6
M V30 END BOND
M V30 END CTAB
M V30 END PRODUCT
M END
113 changes: 113 additions & 0 deletions api/tests/integration/tests/formats/reactions/2531-bad-layout.rxn
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
$RXN

RDKit

1 1
$MOL

RDKit 2D

28 30 0 0 0 0 0 0 0 0999 V2000
-5.2331 -2.4417 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-4.3657 -1.9441 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-3.5011 -2.4465 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-4.3629 -0.9441 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0
-5.2275 -0.4417 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-6.0949 -0.9393 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-6.0977 -1.9393 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
-6.9595 -0.4369 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-7.8271 -0.9345 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
-8.6915 -0.4321 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-8.6889 0.5679 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-9.5535 1.0703 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-10.4209 0.5727 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-11.2855 1.0751 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-11.2827 2.0751 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-12.1473 2.5775 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0
-10.4153 2.5727 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
-10.4235 -0.4273 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-9.5591 -0.9297 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-3.4953 -0.4465 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.5831 -0.8561 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0
-1.9119 -0.1147 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-0.9121 -0.1173 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-0.4095 0.7471 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-0.9071 1.6147 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.9071 1.6173 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.4095 0.7527 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-3.3883 0.5477 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
1 2 1 0
2 3 1 0
2 4 1 0
4 5 1 0
5 6 1 0
6 7 1 0
6 8 1 0
8 9 1 0
9 10 1 0
10 11 4 0
11 12 4 0
12 13 4 0
13 14 1 0
14 15 1 0
15 16 1 0
15 17 2 0
13 18 4 0
18 19 4 0
4 20 1 0
20 21 4 0
21 22 4 0
22 23 4 0
23 24 4 0
24 25 4 0
25 26 4 0
26 27 4 0
27 28 4 0
19 10 4 0
28 20 4 0
27 22 4 0
M END
$MOL

RDKit 2D

19 19 0 0 0 0 0 0 0 0999 V2000
-9.1650 0.7411 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-8.2994 0.2405 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-8.3002 -0.7595 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-7.4330 0.7397 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0
-6.5674 0.2391 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-5.7010 0.7383 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-5.7002 1.7383 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
-4.8354 0.2377 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-3.9690 0.7369 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
-3.1034 0.2363 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-3.1042 -0.7637 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.2386 -1.2643 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.3722 -0.7651 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-0.5066 -1.2657 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.3598 -0.7665 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.2254 -1.2671 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0
0.3606 0.2335 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
-1.3714 0.2349 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.2370 0.7355 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1 2 1 0
2 3 1 0
2 4 1 0
4 5 1 0
5 6 1 0
6 7 1 0
6 8 1 0
8 9 1 0
9 10 1 0
10 11 4 0
11 12 4 0
12 13 4 0
13 14 1 0
14 15 1 0
15 16 1 0
15 17 2 0
13 18 4 0
18 19 4 0
19 10 4 0
M END
Loading

0 comments on commit fadb0a4

Please sign in to comment.