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.0b10.tar.gz (48.6 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.0b10-py3-none-any.whl (57.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stereomolgraph-0.0.0b10.tar.gz
  • Upload date:
  • Size: 48.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for stereomolgraph-0.0.0b10.tar.gz
Algorithm Hash digest
SHA256 d5cd043a87bffa92c35d4f427e28e80cda6f7ae8bf43f2d63064da7950012a4b
MD5 714b716f6d1d861a7527f071c529d0ee
BLAKE2b-256 152370a51a06ab44619f0ab7c147029741358e6c26b9ac72dd661af5e5642b61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stereomolgraph-0.0.0b10-py3-none-any.whl
Algorithm Hash digest
SHA256 6ccbdaf326cc0fba9fc5732ab7864b74730846e67bc928c8463444dc2b7b8b85
MD5 7350feeb68370e6e40e522d4d7ece589
BLAKE2b-256 da158ebcfc0be5389945f970f7725f9b1283c0465ceddf5cec126576b388b53d

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