lib module

render-smiles function

#let render-smiles(smiles, abbreviate: false, skeletal: false, dump: false, config: (:), annotations: none, show-indices: false)

Documentation

Parse, lay out, and render a molecule from a SMILES string.

The generated 2D coordinates are passed through the same Alchemist rendering pipeline as Molfile/SDF input.

Parameters

  • smiles (str): SMILES notation for one molecule.
  • abbreviate (bool): Fold common hydrogens and terminal groups into labels. Default: false.
  • skeletal (bool): Draw a skeletal formula; overrides abbreviate. Default: false.
  • dump (bool): Show generated Alchemist source instead of rendering. Default: false.
  • config (dictionary): Visual configuration passed to Alchemist. Default: (:).
  • annotations (dictionary, array, none): Overlay annotation or annotation array. Default: none.
  • show-indices (bool, str): Show "atoms", "bonds", or "all" indices for authoring. Default: false.

Returns

content

Defined in lib.typ:1387.

Source

Module
lib
Defined in
lib.typ:1387
Source
View source