-
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.
#2189 HELM 2 support: support for SMILES
Add helm with smiles import/export support. Add UTs.
- Loading branch information
1 parent
94852cd
commit 6ade1c2
Showing
17 changed files
with
1,240 additions
and
410 deletions.
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
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
275 changes: 275 additions & 0 deletions
275
api/tests/integration/tests/formats/ref/helm_monomer_molecule.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,275 @@ | ||
{ | ||
"root": { | ||
"nodes": [ | ||
{ | ||
"$ref": "monomer2" | ||
}, | ||
{ | ||
"$ref": "mol0" | ||
} | ||
], | ||
"connections": [ | ||
{ | ||
"connectionType": "single", | ||
"endpoint1": { | ||
"moleculeId": "mol0", | ||
"atomId": "3" | ||
}, | ||
"endpoint2": { | ||
"monomerId": "monomer2", | ||
"attachmentPointId": "R1" | ||
} | ||
} | ||
], | ||
"templates": [ | ||
{ | ||
"$ref": "monomerTemplate-A___Alanine" | ||
} | ||
] | ||
}, | ||
"mol0": { | ||
"type": "molecule", | ||
"atoms": [ | ||
{ | ||
"label": "C", | ||
"location": [ | ||
15.525000000000002, | ||
-7.1499999999999995, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
16.39102540378444, | ||
-6.649999999999999, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "H", | ||
"location": [ | ||
17.25705080756888, | ||
-7.150000000000001, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "N", | ||
"location": [ | ||
14.658974596215565, | ||
-6.649999999999999, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "H", | ||
"location": [ | ||
13.792949192431125, | ||
-7.1499999999999995, | ||
0 | ||
] | ||
} | ||
], | ||
"bonds": [ | ||
{ | ||
"type": 2, | ||
"atoms": [ | ||
0, | ||
1 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
1, | ||
2 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
0, | ||
3 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
3, | ||
4 | ||
] | ||
} | ||
], | ||
"sgroups": [ | ||
{ | ||
"type": "SUP", | ||
"atoms": [ | ||
1, | ||
0, | ||
2, | ||
3, | ||
4 | ||
], | ||
"name": "", | ||
"expanded": true, | ||
"id": 0, | ||
"attachmentPoints": [ | ||
{ | ||
"attachmentAtom": 1, | ||
"leavingAtom": 2, | ||
"attachmentId": "1" | ||
}, | ||
{ | ||
"attachmentAtom": 3, | ||
"leavingAtom": 4, | ||
"attachmentId": "2" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"monomer2": { | ||
"type": "monomer", | ||
"id": "2", | ||
"position": { | ||
"x": 17.88125, | ||
"y": -6.8812500000000005 | ||
}, | ||
"alias": "A", | ||
"templateId": "A___Alanine" | ||
}, | ||
"monomerTemplate-A___Alanine": { | ||
"type": "monomerTemplate", | ||
"atoms": [ | ||
{ | ||
"label": "N", | ||
"location": [ | ||
-0.9805331061317907, | ||
-0.3062945076130863, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
-0.21253088283357008, | ||
0.20573302003705513, | ||
0 | ||
], | ||
"stereoLabel": "abs" | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
-0.24245710640903237, | ||
1.3590256048251048, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
0.8222288529623742, | ||
-0.3062945076130863, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "O", | ||
"location": [ | ||
0.8461385772811508, | ||
-1.2284597573196283, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "O", | ||
"location": [ | ||
1.5903092126145777, | ||
0.20573302003705513, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "H", | ||
"location": [ | ||
-1.8232336838376928, | ||
0.07071340035455181, | ||
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" | ||
} | ||
} |
Oops, something went wrong.