-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backmerge: #2418 - Unable to save micro-molecule connected to monomer…
… to HELM (#2420) Co-authored-by: Aliakasndr Dziarkach <[email protected]>
- Loading branch information
1 parent
26e6e29
commit 82f6ae0
Showing
4 changed files
with
312 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
309 changes: 309 additions & 0 deletions
309
api/tests/integration/tests/formats/ref/helm_molecule_2418.ket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,309 @@ | ||
{ | ||
"root": { | ||
"nodes": [ | ||
{ | ||
"$ref": "monomer2" | ||
}, | ||
{ | ||
"$ref": "mol0" | ||
} | ||
], | ||
"connections": [ | ||
{ | ||
"connectionType": "single", | ||
"endpoint1": { | ||
"monomerId": "monomer2", | ||
"attachmentPointId": "R1" | ||
}, | ||
"endpoint2": { | ||
"moleculeId": "mol0", | ||
"atomId": "2" | ||
} | ||
} | ||
], | ||
"templates": [ | ||
{ | ||
"$ref": "monomerTemplate-A___Alanine" | ||
} | ||
] | ||
}, | ||
"mol0": { | ||
"type": "molecule", | ||
"atoms": [ | ||
{ | ||
"label": "C", | ||
"location": [ | ||
0.38484915212857373, | ||
-2.750074324253319, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
2.1151508478714334, | ||
-2.7495891362559064, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
1.251637509491239, | ||
-2.2499667959289127, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
2.1151508478714334, | ||
-3.7505319749008663, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
0.38484915212857373, | ||
-3.7550199638768618, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
1.2538208554795531, | ||
-4.250033018228521, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "H", | ||
"location": [ | ||
1.2522471693575667, | ||
-1.2499669817715073, | ||
0 | ||
] | ||
} | ||
], | ||
"bonds": [ | ||
{ | ||
"type": 2, | ||
"atoms": [ | ||
2, | ||
0 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
0, | ||
4 | ||
] | ||
}, | ||
{ | ||
"type": 2, | ||
"atoms": [ | ||
4, | ||
5 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
5, | ||
3 | ||
] | ||
}, | ||
{ | ||
"type": 2, | ||
"atoms": [ | ||
3, | ||
1 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
1, | ||
2 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
2, | ||
6 | ||
] | ||
} | ||
], | ||
"sgroups": [ | ||
{ | ||
"type": "SUP", | ||
"atoms": [ | ||
2, | ||
0, | ||
4, | ||
5, | ||
3, | ||
1, | ||
6 | ||
], | ||
"name": "", | ||
"expanded": true, | ||
"id": 0, | ||
"attachmentPoints": [ | ||
{ | ||
"attachmentAtom": 2, | ||
"leavingAtom": 6, | ||
"attachmentId": "1" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"monomer2": { | ||
"type": "monomer", | ||
"id": "2", | ||
"position": { | ||
"x": 1.25, | ||
"y": -1.25 | ||
}, | ||
"alias": "A", | ||
"templateId": "A___Alanine" | ||
}, | ||
"monomerTemplate-A___Alanine": { | ||
"type": "monomerTemplate", | ||
"atoms": [ | ||
{ | ||
"label": "N", | ||
"location": [ | ||
-1.2549, | ||
-0.392, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
-0.272, | ||
0.2633, | ||
0 | ||
], | ||
"stereoLabel": "abs" | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
-0.3103, | ||
1.7393, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
1.0523, | ||
-0.392, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "O", | ||
"location": [ | ||
1.0829, | ||
-1.5722, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "O", | ||
"location": [ | ||
2.0353, | ||
0.2633, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "H", | ||
"location": [ | ||
-2.3334, | ||
0.0905, | ||
0 | ||
] | ||
} | ||
], | ||
"bonds": [ | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
1, | ||
0 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
1, | ||
2 | ||
], | ||
"stereo": 1 | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
1, | ||
3 | ||
] | ||
}, | ||
{ | ||
"type": 2, | ||
"atoms": [ | ||
3, | ||
4 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
3, | ||
5 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
0, | ||
6 | ||
] | ||
} | ||
], | ||
"class": "AminoAcid", | ||
"classHELM": "PEPTIDE", | ||
"id": "A___Alanine", | ||
"fullName": "Alanine", | ||
"alias": "A", | ||
"attachmentPoints": [ | ||
{ | ||
"attachmentAtom": 0, | ||
"leavingGroup": { | ||
"atoms": [ | ||
6 | ||
] | ||
}, | ||
"type": "left" | ||
}, | ||
{ | ||
"attachmentAtom": 3, | ||
"leavingGroup": { | ||
"atoms": [ | ||
5 | ||
] | ||
}, | ||
"type": "right" | ||
} | ||
], | ||
"naturalAnalogShort": "A" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters