Skip to main content

A graph library for chiral molecules, reactions and transition states

Project description

StereoMolGraph

View Documentation Python Versions License: MIT PyPI - Version Documentation Status GitHub Type Check Test Examples Unit Tests DOI PyPI Downloads

StereoMolGraph (SMG) is a lightweight Python library for representing molecules and transition states with explicit, local 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 on the connectivity and stereochemistry.
  • Stereochemistry describes relative spatial arrangement. No absolute stereochemistry.
  • Transparent: Simple 2D visualization in IPython notebooks

Examples

Explore the working example notebooks in docs/examples/ (executed in CI). For rendered examples and guides, see the documentation: https://stereomolgraph.readthedocs.io

RDKit interoperability notes

  • Hydrogens must be explicit for stereo-safe 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 and feature requests are welcome — please open an issue on GitHub:

If you have questions or ideas that don’t fit a template, you can still open an issue and tag it appropriately.

Citation

If you use StereoMolGraph in your work, please cite the Zenodo record:

DOI

License

MIT License — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stereomolgraph-0.0.0b15.tar.gz (51.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stereomolgraph-0.0.0b15-py3-none-any.whl (60.0 kB view details)

Uploaded Python 3

File details

Details for the file stereomolgraph-0.0.0b15.tar.gz.

File metadata

  • Download URL: stereomolgraph-0.0.0b15.tar.gz
  • Upload date:
  • Size: 51.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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

Hashes for stereomolgraph-0.0.0b15.tar.gz
Algorithm Hash digest
SHA256 3c0b82198d5453139129d3ba069f6d7d6e36c8a8b877beaa1689c46c8b98ea5d
MD5 f703c9db680661993b1d492c54834ab4
BLAKE2b-256 6a44b18edf017ae6a6a16150eaa203ad4b37712c01b59e66df8c9dcd3d46cc62

See more details on using hashes here.

File details

Details for the file stereomolgraph-0.0.0b15-py3-none-any.whl.

File metadata

  • Download URL: stereomolgraph-0.0.0b15-py3-none-any.whl
  • Upload date:
  • Size: 60.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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

Hashes for stereomolgraph-0.0.0b15-py3-none-any.whl
Algorithm Hash digest
SHA256 ee4f73b14ea5de749aa3eaecfe9bc77e15e7d29377972f83d453ea9c44855dc8
MD5 3c32b23e869f0f012388d8267680b6cf
BLAKE2b-256 393b617ec2e54d7dc0907f88ea05e995a87a44915ff7bf6ce0a14c0b89173cf7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page