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, 1026🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1001913 SMILES: S[C@@H](C(N[C@H]1C(N2[C@ @H](CCC[C@@H]2SCC1)C(OC) =O)=O)=O)C...
Molecule Summary: ID: FYI-1004243 Names: InChIKey: WPVGSIBYLZQSIK-UHFFFAOYS A-NSMILES: CC6OC(OC5CCC1...
Molecule Summary: ID: FYI-1000962 SMILES: CCCc1ccccc1NCC(C)c1ccc(N [SH](C)(=O)Nc2cccnc2C(N) =O)cn1Rec...
Molecule Summary: ID: FYI-1003356 Names: InChIKey: OPBCOLZGTXBFTN-ZJLYAJKPS A-NSMILES: C[C@H](CS)C(=...
Molecule Summary: ID: FYI-1004363 Names: InChIKey: GVBGXLDOTOMGAA-NXVVXOECS A-NSMILES: OC/C(=C(CI)/c...