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.0b14.tar.gz (51.4 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.0b14-py3-none-any.whl (59.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stereomolgraph-0.0.0b14.tar.gz
  • Upload date:
  • Size: 51.4 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.0b14.tar.gz
Algorithm Hash digest
SHA256 212d9251da9db2aff7dfe81b8f9bbeba6463f508a7997a2123bc3aaf2e2c4781
MD5 a1d47658be4ab22434d759ad4dc97c17
BLAKE2b-256 c5628f0287431f846591d2dd363a6d6133b48eb64912f1571d67cfded8d0c88c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stereomolgraph-0.0.0b14-py3-none-any.whl
  • Upload date:
  • Size: 59.9 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.0b14-py3-none-any.whl
Algorithm Hash digest
SHA256 3417971d17b8c9f69b0d26d18525093c898a2d74d70749ad6c906e27dc26c8fc
MD5 593571f39f5886b0f012babeb04d9639
BLAKE2b-256 0e65be61f9a94725f63fda72550fe6ed5bd42bf5cf7395e7a39571a4268e7974

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