A Python package to detect chiral centers and E/Z double bonds in SMILES strings.
Project description
StereoChemDecoder
A Python package to detect chiral centers and E/Z double bonds in SMILES strings using RDKit.
Installation
Install the package using pip (RDKit must be installed separately):
pip install StereoChemDecoder
Usage
from StereoChemDecoder import StereoChemDecoder
# Initialize the decoder
decoder = StereoChemDecoder()
# Detect chiral centers
chiral_centers = decoder.detect_chirality("CC(C(=O)O)O") # Lactic Acid
print(f"Chiral Centers: {chiral_centers}") # e.g., [(2, '?')]
# Detect E/Z double bonds
ez_bonds = decoder.detect_ez("C/C=C/C") # Trans-2-Butene
print(f"E/Z Double Bonds: {ez_bonds}") # e.g., [(1, 1, 2)]
Requirements
- Python 3.7+
- RDKit (>=2023.3.1)
License MIT License (see LICENSE file).
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 stereochemdecoder-0.1.0.tar.gz.
File metadata
- Download URL: stereochemdecoder-0.1.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e562dacf584bf57839470aec39b5aff93502cbe297ef939bc8f6cfc46e01a443
|
|
| MD5 |
83461e9e2bf553d26e4813ba93c7e7a2
|
|
| BLAKE2b-256 |
153bee906e6fa8c6e22a6d67de2e498217b601a0d52461805b815a8704ecf196
|
File details
Details for the file stereochemdecoder-0.1.0-py3-none-any.whl.
File metadata
- Download URL: stereochemdecoder-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
690c79d99ebbe60e19d2e00593a5671f980646acf3310175286880a0605242dc
|
|
| MD5 |
f378d1818269a75f645ad2ea00c027b7
|
|
| BLAKE2b-256 |
2cadba3f10d5ce5f1bad68b28b141abff3a2d8f988e9389cefc6d4ce49cead26
|