Skip to content

davidmeijer/mol2html

Repository files navigation

License: MIT


Description

Small wrapper around 3dmol.js and html2canvas for creating self-contained HTML files that display a 3D molecular representation. Double clicking the molecular representations downloads a PNG of the canvas (i.e. of molecular representation in current orientation).

Usage

Generate SDF from SMILES string: python3 smiles2sdf.py "<SMILES string>"

Generate HTML from SDF file: python3 sdf2html.py <input.sdf>

Example HTML output for daptomycin with highlighted amino acids can be found here.

About

Small wrapper around 3dmol.js and html2canvas for creating self-contained HTML files that display a 3D molecular representation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages