Skip to main content

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


Download files

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

Source Distribution

stereochemdecoder-0.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

stereochemdecoder-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

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

Hashes for stereochemdecoder-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e562dacf584bf57839470aec39b5aff93502cbe297ef939bc8f6cfc46e01a443
MD5 83461e9e2bf553d26e4813ba93c7e7a2
BLAKE2b-256 153bee906e6fa8c6e22a6d67de2e498217b601a0d52461805b815a8704ecf196

See more details on using hashes here.

File details

Details for the file stereochemdecoder-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for stereochemdecoder-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 690c79d99ebbe60e19d2e00593a5671f980646acf3310175286880a0605242dc
MD5 f378d1818269a75f645ad2ea00c027b7
BLAKE2b-256 2cadba3f10d5ce5f1bad68b28b141abff3a2d8f988e9389cefc6d4ce49cead26

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