vibesketch.document.generics¶
Generic structures in the drawing as document entries: R-group cores, their definitions and bracketed groups (#90).
They are derived from the drawing like species, and written as CXSMILES
without coordinates: R-group atoms carry their labels ($_R1$), a
definition’s attachment points _AP1, and brackets their S-groups
(Sg:n:...). The drawing stays the source of truth; nothing here is
edited by clients (maintainer decisions, 2026-10-24).
Functions
|
|
|
The drawing's R-group cores, bracketed groups and R-group definitions. |
|
The document's generic structures and R-group definitions, as JSON data. |
- vibesketch.document.generics.cxsmiles(mol)[source]¶
molas canonical CXSMILES without coordinates, its R-group atoms as$_R1$.
- vibesketch.document.generics.derive_generics(document, scene, labels, taken, warnings)[source]¶
The drawing’s R-group cores, bracketed groups and R-group definitions.
Only what figures can draw becomes an entry; a structure the drawing cannot express stays a note, as before. A generic structure keeps its id and compound number while its CXSMILES is the same.
takenholds the identifiers already used, and gains the new ones.