Chemical Degradation Simulation
Project description
Chemical Degradation Reaction
This repository provides a framework for simulating and analyzing chemical degradation pathways of organic compounds. It leverages the RDKit cheminformatics library to predict degradation products based on a set of predefined reaction rules and allows for the kinetic modeling of these degradation processes.
Reaction Libraries have been sourced from the EPA's Chemical Transformation Simulator.
Dependencies
- Python (>=3.12)
- RDKit (>=2024.9.6)
- NetworkX (>=3.4)
- Matplotlib (>=3.10)
- Seaborn (>=0.13)
- Pandas (>=2.2)
- SciPy (>=1.15)
Installation
Create and active virtual environment
python3 -m venv chem_deg
source chem_deg/bin/activate
Clone and install the repository
git clone git@github.com:davidkuter/chem_deg.git
pip install -e .
Usage
from chem_deg import simulate_degradation
# Simulate degradation starting from a SMILES string
smiles = "CCC(=O)N(c1ccccc1)C1(C(=O)OC)CCN(CCC(=O)OC)CC1"
df_results = simulate_degradation(
compound=smiles, # The compound to simulate degradation of
ph=5, # The pH to simulate degradation kinetics of
max_generation=2, # The maximum number of degradation steps to simulate.
plot_degradation=True, # If `True`, generates a visualization of the degradation graph (saved as `degradation_graph.png`).
plot_kinetics=True, # If `True`, generates a plot of the degradation kinetics (saved as `degradation_kinetics.png`).
time_log=True, # If `True`, uses a logarithmic time scale for the kinetics simulation.
)
Development
To install development dependencies:
pip install -e ".[dev]"
Running Tests
pytest
License
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License - see the LICENSE file for details.
For commercial use, please contact David Kuter.
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 chem_deg-0.2.2.tar.gz.
File metadata
- Download URL: chem_deg-0.2.2.tar.gz
- Upload date:
- Size: 178.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ce6b73601a90bc950ff24abca29e5463a810718c87e85d7d5f634453e0bb6cf
|
|
| MD5 |
c0fb8f7c3779fc0a79fe4390a64b15ea
|
|
| BLAKE2b-256 |
f98ae6dc2aa4f193d81548ee9612a88a6db1285be5c1b989da63cfca57774359
|
File details
Details for the file chem_deg-0.2.2-py3-none-any.whl.
File metadata
- Download URL: chem_deg-0.2.2-py3-none-any.whl
- Upload date:
- Size: 183.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e738f5606a07485f135ea296dbce6065a538a7277ee6ec8a8c3a13b115dec8e1
|
|
| MD5 |
b7557fb9c7142f6a71c6a620dee70bd9
|
|
| BLAKE2b-256 |
5d8bc48e5924e427eef7f63cbaddbbbf04043686a2338cf9a2bea1ab5dcbeeed
|