A graph library for chiral molecules, reactions and transition states
Project description
StereoMolGraph
StereoMolGraph (SMG) is a library for graph representation of molecules and reactions with a focus on Stereochemistry. It provides:
- Graph types for molecules and reactions (with/without stereo and stereo changes)
- Includes non tetrahedral stereocenters and changing stereochemistry in reactions
- Fast approximate hashing via Weisfeiler–Lehman color refinement
- Robust equality/isomorphism via a VF2++-style algorithm extended for stereochemistry and reactions
- Bidirectional conversion from / to RDKit
- Construction from 3D coordinates with automatic local stereo inference
Design philosophy
- Unopinionated about bond orders, charge and electronic state
- SMG focuses just on the connectivity and stereochemistry.
- Stereochemistry describes relative spatial arrangement. No absolute stereochemistry.
- Transparent: Simple 2D visualization in IPython notebooks
RDKit interoperability notes
- Hydrogens must be explicit for bidirectional conversion.
- Supports tetrahedral and non tetrahedral stereochemistry during conversion.
- Bond orders, charges, unpaired electrons and other properties are not used!
Installation
Install from PyPI:
pip install stereomolgraph
Feedback and support
Bug reports are welcome — please open an issue on GitHub. Technical questions and feature requests can be added as discussions.
Issues:
Discussions:
- Q&A: https://github.com/maxim-papusha/StereoMolGraph/discussions/new?category=q-a
- Ideas: https://github.com/maxim-papusha/StereoMolGraph/discussions/new?category=ideas
Citation
If you use StereoMolGraph in your work, please cite the corresponding paper:
License
MIT License — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stereomolgraph-0.0.21b0.tar.gz.
File metadata
- Download URL: stereomolgraph-0.0.21b0.tar.gz
- Upload date:
- Size: 58.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc60d0c824445a4c647ef46bb7e1848a2083b8508dfc9ba2afd8141646329e56
|
|
| MD5 |
b2647e0ddbed33871942fc437db89e49
|
|
| BLAKE2b-256 |
ddc11c394cf4de0be8b0f83588162a8a5e9f1dd691c3b7754a27850356f2521a
|
File details
Details for the file stereomolgraph-0.0.21b0-py3-none-any.whl.
File metadata
- Download URL: stereomolgraph-0.0.21b0-py3-none-any.whl
- Upload date:
- Size: 68.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e56813caa3ad9a19b9fff400a2a89f5be2623c7442cb2a087f0ecc360b76469f
|
|
| MD5 |
ce61f8b20d4b5859686ece11b7576002
|
|
| BLAKE2b-256 |
13ac4fec6d6696299f02c9c67abb79c7a17d7daf0cd70a05fb7ceade58f4b067
|