Skip to main content

Module cxsmiles

Module cxsmiles 

Source
Expand description

ChemAxon CXSMILES atom-label and multicenter (m:) helpers.

Shared by paint chrome (crate::doc) and language edges. No RDKit. Chematic’s CX reader ignores m:; we keep it here.

Structs§

Multicenter
One CX m:dummy:a.b.c multicenter S-group.

Functions§

apply_cx_by_index
Apply CX aliases onto atoms by index. Only non-empty slots change labels.
cx_atom_labels
Parse CXSMILES |$a;b;c;$| aliases into a per-atom label list.
cx_multicenters
Parse CXSMILES m:dummy:a.b.c groups (comma-separated).
cx_source
CX source string for a mol node (prefer cxsmiles, else smiles).
smiles_base
SMILES graph only — drop |$…$| / other CX trailers.