Collections:
Ketcher File Structure
How is the Ketcher file structured?
✍: FYIcenter.com
At a high level, a Ketcher file is structured to represent
an object with a required property "root", which has a property
"nodes" to hold an array of graphical objects.
The hight level structure of a Ketcher file looks like this:
{
"root": {
"nodes": [
<object>,
<object>,
...,
<object>
]
}
}
Each graphical object has a required property "type" to specify the nature of the object. Here are some examples:
{
"type": "molecule",
(A molecule structure)
}
{
"type": "text",
(A text label)
}
{
"type": "arrow",
(A line ended with an arrow )
}
{
"type": "plus",
(A plus sign)
}
If the object is a "molecule", it must to be defined as a referenced-object. and move it the top level. The reason for the exception is probably to make the "nodes" structure short and easier to read. So the Ketcher file structure for a molecule with a text label looks like:
{
"root": {
"nodes": [
{
"$ref": "mol<seq>"
},
{
"type": "text",
...
}
]
},
"mol<seq>": {
"type": "molecule",
...
}
}
Note that the name of the referenced-molecule must use the pattern of "mol<seq>", where <seq> is a sequential number.
⇒ Export Ketcher File from Editor
2024-04-14, 928🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1004073 Names: InChIKey: PRYHOGCYPICMAJ-DZKOZXKNS A-NSMILES: CC[C@H]5CN4CC...
Molecule Summary: ID: FYI-1001050 SMILES: C[C@@H](O)[C@@H]1NC(=O)[ C@H](CC2=CC=C(O)C=C2)NC( =O)[C@@H]2...
Molecule Summary: ID: FYI-1003054 Names: InChIKey: ISZKUZGOMOSUGL-UHFFFAOYS A-NSMILES: N#Cc3cc(c2ccc...
Molecule Summary: ID: FYI-1001811 SMILES: CC(C)(C1=CC=CC=C1)C2=CC( =C(C(=C2)N3N=C4C=CC=CC4= N3)O)C(C)(...
Molecule Summary: ID: FYI-1003976 Names: InChIKey: SOBPKJYDSKIMNI-UHFFFAOYS A-NSMILES: O=N(=O)c4ccc(...