Skip to content

Macrocycle

Script: examples/topology/03_ring.py

Ring digits in CGSmiles add one more residue edge. Bifunctional glycol is enough — the closing bond reuses free ends.

ring = eo_builder().build_ring("EO", 6)
# → build("{[#EO]1[#EO][#EO][#EO][#EO][#EO]1}")

Check: for this condensation product, bond count equals atom count (one cycle).

cd examples && python topology/03_ring.py

See also