Skip to content

Commit

Permalink
Fix Uts
Browse files Browse the repository at this point in the history
  • Loading branch information
AliaksandrDziarkach committed Nov 17, 2024
1 parent 01b107c commit d9f03b8
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 39 deletions.
62 changes: 31 additions & 31 deletions utils/indigo-service/backend/service/tests/api/indigo_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,11 +954,11 @@ def test_layout(self):
"""
6 6 0 0 0 0 0 0 0 0999 V2000
0.0000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.3856 -0.8000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.3856 -2.4000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.0000 -3.2000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.3856 -2.4000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.3856 -0.8000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-0.8660 -0.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-0.8660 -1.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.0000 -2.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.8660 -1.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.8660 -0.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1 2 2 0 0 0 0
2 3 1 0 0 0 0
3 4 2 0 0 0 0
Expand All @@ -985,9 +985,9 @@ def test_layout_selective(self):
self.assertEqual(
"""
3 2 0 0 0 0 0 0 0 0999 V2000
-1.3856 0.8000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-0.8660 0.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.0000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.3856 0.8000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.8660 0.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1 2 1 0 0 0 0
2 3 1 0 0 0 0
M END""",
Expand Down Expand Up @@ -1095,12 +1095,12 @@ def test_layout_selective_reaction(self):
-INDIGO-01000000002D
6 6 0 0 0 0 0 0 0 0999 V2000
2.1856 1.6000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.8000 0.8000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.8000 -0.8000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
2.1856 -1.6000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
3.5713 -0.8000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
3.5713 0.8000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.3660 1.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.5000 0.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.5000 -0.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.3660 -1.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
2.2321 -0.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
2.2321 0.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1 2 1 0 0 0 0
2 3 2 0 0 0 0
3 4 1 0 0 0 0
Expand All @@ -1113,18 +1113,18 @@ def test_layout_selective_reaction(self):
-INDIGO-01000000002D
12 13 0 0 0 0 0 0 0 0999 V2000
7.5713 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
8.3713 1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
9.9713 1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
10.7713 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
9.9713 -1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
8.3713 -1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
12.3713 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
13.1713 1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
14.7713 1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
15.5713 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
14.7713 -1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
13.1713 -1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
4.7321 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
5.2321 0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
6.2321 0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
6.7321 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
6.2321 -0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
5.2321 -0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
7.7321 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
8.2321 0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
9.2321 0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
9.7321 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
9.2321 -0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
8.2321 -0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1 2 1 0 0 0 0
2 3 2 0 0 0 0
3 4 1 0 0 0 0
Expand All @@ -1144,12 +1144,12 @@ def test_layout_selective_reaction(self):
-INDIGO-01000000002D
6 6 0 0 0 0 0 0 0 0999 V2000
21.7569 1.6000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
20.3713 0.8000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
20.3713 -0.8000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
21.7569 -1.6000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
23.1426 -0.8000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
23.1426 0.8000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
13.5981 1.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
12.7321 0.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
12.7321 -0.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
13.5981 -1.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
14.4641 -0.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
14.4641 0.5000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1 2 1 0 0 0 0
2 3 2 0 0 0 0
3 4 1 0 0 0 0
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"root":{"nodes":[{"$ref":"ambiguousMonomer-0"},{"$ref":"ambiguousMonomer-1"}],"templates":[{"$ref":"monomerTemplate-D___Aspartic acid"},{"$ref":"monomerTemplate-N___Asparagine"},{"$ref":"monomerTemplate-I___Isoleucine"},{"$ref":"ambiguousMonomerTemplate-Var0"},{"$ref":"ambiguousMonomerTemplate-Var1"}]},"ambiguousMonomer-0":{"type":"ambiguousMonomer","id":"0","position":{"x":0.000000,"y":-0.000000},"seqid":1,"alias":"Var0","templateId":"Var0"},"ambiguousMonomer-1":{"type":"ambiguousMonomer","id":"1","position":{"x":0.000000,"y":-1.600000},"seqid":2,"alias":"Var1","templateId":"Var1"},"monomerTemplate-D___Aspartic acid":{"type":"monomerTemplate","id":"D___Aspartic acid","class":"AminoAcid","classHELM":"PEPTIDE","fullName":"Aspartic acid","alias":"D","naturalAnalogShort":"D","attachmentPoints":[{"attachmentAtom":3,"type":"left","leavingGroup":{"atoms":[4]}},{"attachmentAtom":0,"type":"right","leavingGroup":{"atoms":[9]}},{"attachmentAtom":8,"type":"side","leavingGroup":{"atoms":[10]}}],"atoms":[{"label":"C","location":[1.631000,-1.557800,0.000000]},{"label":"O","location":[1.632700,-2.739200,0.000000]},{"label":"C","location":[0.350700,-0.820100,0.000000],"stereoLabel":"abs"},{"label":"N","location":[-0.929500,-1.557800,0.000000]},{"label":"H","location":[-1.952500,-0.966900,0.000000]},{"label":"C","location":[0.348500,0.657500,0.000000]},{"label":"C","location":[-0.931700,1.395200,0.000000]},{"label":"O","location":[-1.954200,0.803200,0.000000]},{"label":"O","location":[-0.933500,2.576600,0.000000]},{"label":"O","location":[2.653400,-0.965800,0.000000]},{"label":"H","location":[0.085100,3.175100,0.000000]}],"bonds":[{"type":2,"atoms":[1,0]},{"type":1,"atoms":[0,2]},{"type":1,"atoms":[2,3]},{"type":1,"atoms":[3,4]},{"type":1,"atoms":[2,5],"stereo":1},{"type":1,"atoms":[5,6]},{"type":2,"atoms":[6,7]},{"type":1,"atoms":[6,8]},{"type":1,"atoms":[0,9]},{"type":1,"atoms":[8,10]}]},"monomerTemplate-N___Asparagine":{"type":"monomerTemplate","id":"N___Asparagine","class":"AminoAcid","classHELM":"PEPTIDE","fullName":"Asparagine","alias":"N","naturalAnalogShort":"N","attachmentPoints":[{"attachmentAtom":3,"type":"left","leavingGroup":{"atoms":[4]}},{"attachmentAtom":0,"type":"right","leavingGroup":{"atoms":[9]}},{"attachmentAtom":7,"type":"side","leavingGroup":{"atoms":[10]}}],"atoms":[{"label":"C","location":[1.892900,-1.417500,0.000000]},{"label":"O","location":[1.894700,-2.598900,0.000000]},{"label":"C","location":[0.612700,-0.679900,0.000000],"stereoLabel":"abs"},{"label":"N","location":[-0.667600,-1.417500,0.000000]},{"label":"H","location":[-1.690700,-0.826600,0.000000]},{"label":"C","location":[0.610400,0.797800,0.000000]},{"label":"C","location":[-0.669800,1.535400,0.000000]},{"label":"N","location":[-1.692200,0.943400,0.000000]},{"label":"O","location":[-0.671600,2.716800,0.000000]},{"label":"O","location":[2.915300,-0.825500,0.000000]},{"label":"H","location":[-2.534100,1.772400,0.000000]}],"bonds":[{"type":2,"atoms":[1,0]},{"type":1,"atoms":[0,2]},{"type":1,"atoms":[2,3]},{"type":1,"atoms":[3,4]},{"type":1,"atoms":[2,5],"stereo":1},{"type":1,"atoms":[5,6]},{"type":1,"atoms":[6,7]},{"type":2,"atoms":[6,8]},{"type":1,"atoms":[0,9]},{"type":1,"atoms":[7,10]}]},"monomerTemplate-I___Isoleucine":{"type":"monomerTemplate","id":"I___Isoleucine","class":"AminoAcid","classHELM":"PEPTIDE","fullName":"Isoleucine","alias":"I","naturalAnalogShort":"I","attachmentPoints":[{"attachmentAtom":3,"type":"left","leavingGroup":{"atoms":[4]}},{"attachmentAtom":5,"type":"right","leavingGroup":{"atoms":[7]}}],"atoms":[{"label":"C","location":[-1.255700,1.668100,0.000000]},{"label":"C","location":[0.024500,0.930400,0.000000],"stereoLabel":"abs"},{"label":"C","location":[0.026800,-0.547200,0.000000],"stereoLabel":"abs"},{"label":"N","location":[-1.253600,-1.284900,0.000000]},{"label":"H","location":[-2.276600,-0.694000,0.000000]},{"label":"C","location":[1.306900,-1.284900,0.000000]},{"label":"O","location":[1.308600,-2.466400,0.000000]},{"label":"O","location":[2.329400,-0.693000,0.000000]},{"label":"C","location":[1.047000,1.522300,0.000000]},{"label":"C","location":[-1.257400,2.849500,0.000000]}],"bonds":[{"type":1,"atoms":[0,1]},{"type":1,"atoms":[2,1],"stereo":1},{"type":1,"atoms":[2,3]},{"type":1,"atoms":[3,4]},{"type":1,"atoms":[2,5]},{"type":2,"atoms":[5,6]},{"type":1,"atoms":[5,7]},{"type":1,"atoms":[1,8],"stereo":6},{"type":1,"atoms":[0,9]}]},"ambiguousMonomerTemplate-Var0":{"type":"ambiguousMonomerTemplate","subtype":"alternatives","id":"Var0","alias":"Var0","options":[{"templateId":"D___Aspartic acid"},{"templateId":"N___Asparagine"},{"templateId":"I___Isoleucine"}]},"ambiguousMonomerTemplate-Var1":{"type":"ambiguousMonomerTemplate","subtype":"mixture","id":"Var1","alias":"Var1","options":[{"templateId":"D___Aspartic acid"},{"templateId":"N___Asparagine"},{"templateId":"I___Isoleucine"}]}}
{"root":{"nodes":[{"$ref":"ambiguousMonomer-0"},{"$ref":"ambiguousMonomer-1"}],"templates":[{"$ref":"monomerTemplate-D___Aspartic acid"},{"$ref":"monomerTemplate-N___Asparagine"},{"$ref":"monomerTemplate-I___Isoleucine"},{"$ref":"ambiguousMonomerTemplate-Var0"},{"$ref":"ambiguousMonomerTemplate-Var1"}]},"ambiguousMonomer-0":{"type":"ambiguousMonomer","id":"0","position":{"x":0.000000,"y":-0.000000},"seqid":1,"alias":"Var0","templateId":"Var0"},"ambiguousMonomer-1":{"type":"ambiguousMonomer","id":"1","position":{"x":0.000000,"y":-1.000000},"seqid":2,"alias":"Var1","templateId":"Var1"},"monomerTemplate-D___Aspartic acid":{"type":"monomerTemplate","id":"D___Aspartic acid","class":"AminoAcid","classHELM":"PEPTIDE","fullName":"Aspartic acid","alias":"D","naturalAnalogShort":"D","attachmentPoints":[{"attachmentAtom":3,"type":"left","leavingGroup":{"atoms":[4]}},{"attachmentAtom":0,"type":"right","leavingGroup":{"atoms":[9]}},{"attachmentAtom":8,"type":"side","leavingGroup":{"atoms":[10]}}],"atoms":[{"label":"C","location":[1.631000,-1.557800,0.000000]},{"label":"O","location":[1.632700,-2.739200,0.000000]},{"label":"C","location":[0.350700,-0.820100,0.000000],"stereoLabel":"abs"},{"label":"N","location":[-0.929500,-1.557800,0.000000]},{"label":"H","location":[-1.952500,-0.966900,0.000000]},{"label":"C","location":[0.348500,0.657500,0.000000]},{"label":"C","location":[-0.931700,1.395200,0.000000]},{"label":"O","location":[-1.954200,0.803200,0.000000]},{"label":"O","location":[-0.933500,2.576600,0.000000]},{"label":"O","location":[2.653400,-0.965800,0.000000]},{"label":"H","location":[0.085100,3.175100,0.000000]}],"bonds":[{"type":2,"atoms":[1,0]},{"type":1,"atoms":[0,2]},{"type":1,"atoms":[2,3]},{"type":1,"atoms":[3,4]},{"type":1,"atoms":[2,5],"stereo":1},{"type":1,"atoms":[5,6]},{"type":2,"atoms":[6,7]},{"type":1,"atoms":[6,8]},{"type":1,"atoms":[0,9]},{"type":1,"atoms":[8,10]}]},"monomerTemplate-N___Asparagine":{"type":"monomerTemplate","id":"N___Asparagine","class":"AminoAcid","classHELM":"PEPTIDE","fullName":"Asparagine","alias":"N","naturalAnalogShort":"N","attachmentPoints":[{"attachmentAtom":3,"type":"left","leavingGroup":{"atoms":[4]}},{"attachmentAtom":0,"type":"right","leavingGroup":{"atoms":[9]}},{"attachmentAtom":7,"type":"side","leavingGroup":{"atoms":[10]}}],"atoms":[{"label":"C","location":[1.892900,-1.417500,0.000000]},{"label":"O","location":[1.894700,-2.598900,0.000000]},{"label":"C","location":[0.612700,-0.679900,0.000000],"stereoLabel":"abs"},{"label":"N","location":[-0.667600,-1.417500,0.000000]},{"label":"H","location":[-1.690700,-0.826600,0.000000]},{"label":"C","location":[0.610400,0.797800,0.000000]},{"label":"C","location":[-0.669800,1.535400,0.000000]},{"label":"N","location":[-1.692200,0.943400,0.000000]},{"label":"O","location":[-0.671600,2.716800,0.000000]},{"label":"O","location":[2.915300,-0.825500,0.000000]},{"label":"H","location":[-2.534100,1.772400,0.000000]}],"bonds":[{"type":2,"atoms":[1,0]},{"type":1,"atoms":[0,2]},{"type":1,"atoms":[2,3]},{"type":1,"atoms":[3,4]},{"type":1,"atoms":[2,5],"stereo":1},{"type":1,"atoms":[5,6]},{"type":1,"atoms":[6,7]},{"type":2,"atoms":[6,8]},{"type":1,"atoms":[0,9]},{"type":1,"atoms":[7,10]}]},"monomerTemplate-I___Isoleucine":{"type":"monomerTemplate","id":"I___Isoleucine","class":"AminoAcid","classHELM":"PEPTIDE","fullName":"Isoleucine","alias":"I","naturalAnalogShort":"I","attachmentPoints":[{"attachmentAtom":3,"type":"left","leavingGroup":{"atoms":[4]}},{"attachmentAtom":5,"type":"right","leavingGroup":{"atoms":[7]}}],"atoms":[{"label":"C","location":[-1.255700,1.668100,0.000000]},{"label":"C","location":[0.024500,0.930400,0.000000],"stereoLabel":"abs"},{"label":"C","location":[0.026800,-0.547200,0.000000],"stereoLabel":"abs"},{"label":"N","location":[-1.253600,-1.284900,0.000000]},{"label":"H","location":[-2.276600,-0.694000,0.000000]},{"label":"C","location":[1.306900,-1.284900,0.000000]},{"label":"O","location":[1.308600,-2.466400,0.000000]},{"label":"O","location":[2.329400,-0.693000,0.000000]},{"label":"C","location":[1.047000,1.522300,0.000000]},{"label":"C","location":[-1.257400,2.849500,0.000000]}],"bonds":[{"type":1,"atoms":[0,1]},{"type":1,"atoms":[2,1],"stereo":1},{"type":1,"atoms":[2,3]},{"type":1,"atoms":[3,4]},{"type":1,"atoms":[2,5]},{"type":2,"atoms":[5,6]},{"type":1,"atoms":[5,7]},{"type":1,"atoms":[1,8],"stereo":6},{"type":1,"atoms":[0,9]}]},"ambiguousMonomerTemplate-Var0":{"type":"ambiguousMonomerTemplate","subtype":"alternatives","id":"Var0","alias":"Var0","options":[{"templateId":"D___Aspartic acid"},{"templateId":"N___Asparagine"},{"templateId":"I___Isoleucine"}]},"ambiguousMonomerTemplate-Var1":{"type":"ambiguousMonomerTemplate","subtype":"mixture","id":"Var1","alias":"Var1","options":[{"templateId":"D___Aspartic acid"},{"templateId":"N___Asparagine"},{"templateId":"I___Isoleucine"}]}}
Loading

0 comments on commit d9f03b8

Please sign in to comment.