Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/benjamin-davies/iupac

Parses a subset of IUPAC names and generates dot files that can be visualized using Graphviz.
https://github.com/benjamin-davies/iupac

Last synced: about 2 months ago
JSON representation

Parses a subset of IUPAC names and generates dot files that can be visualized using Graphviz.

Awesome Lists containing this project

README

        

# IUPAC Name Parser

Parses IUPAC names and generates diagrams of the molecules. So far this only supports a subset of IUPAC names, ignores double bonds and hides all the Hydrogen atoms.

![Caffeine drawn using gradient-descent layout engine](examples/Screenshot%20from%202024-07-02%2017-07-02.png)

## Usage

To generate diagrams using the built-in gradient-descent layout engine, run:

```sh
cargo run -p gradient_descent '1,3,7-Trimethyl-3,7-dihydro-1H-purine-2,6-dione'
```

To generate diagrams using Graphviz, run:

```sh
cargo run --bin dot 'Propan-2-ol' > propanol.dot
neato propanol.dot -Tpng -O
```

See examples folder for example graphviz output.