A project to process enzymatic reactions
Project description
EVODEX
EVODEX is a Python package that provides tools for the prediction of mechanistically plausible reaction products, validation of reactions, and mass spectrometry interpretation. It can be installed via PyPI for immediate use in Python projects. Alternatively, users can clone the repository to run the full mining pipeline and generate a customized dataset.
The collection is browsable at EVODEX.2 Github Page
Current Release
This is the EVODEX.2 collection. All IDs start with 'EVODEX.2' and are immutable, ensuring they can be externally referenced without collisions or missing references. Future distributions will be numbered EVODEX.3, EVODEX.4, etc., and may not have reverse compatibility with previous EVODEX.0 IDs. For example, EVODEX.2-E2 may not represent the same SMIRKS as EVODEX.1-E2. The letter codes have also been changed in version 2 relative to EVODEX.1 with E/C/N being replaced with A/B/C/D/E.
Table of Contents
- Installation
- Usage
- Website and Dataset Access
- Building and Running the Mining Pipeline
- Citing EVODEX
- License
Running EVODEX via PyPi
Installation
To use EVODEX in a python project, use the following command:
pip install evodex
Usage
The following Jupyter notebooks demonstrate the usage of the PyPI distribution for the three primary use cases:
These notebooks are also available in the notebooks section of the repository.
Synthesis
The synthesis module provides tools for predicting reaction products using reaction operators. Below is an example usage:
from evodex.synthesis import project_reaction_operator, project_evodex_operator, project_synthesis_operators
# Specify propanol as the substrate as SMILES
substrate = "CCCO"
# Representation of alcohol oxidation as SMIRKS:
smirks = "[H][C:8]([C:7])([O:9][H])[H:19]>>[C:7][C:8](=[O:9])[H:19]"
# Project the oxidation operator on propanol:
result = project_reaction_operator(smirks, substrate)
print("Direct projection: ", result)
# Specify the dehydrogenase reaction by its EVODEX ID:
evodex_id = "EVODEX.2-E18"
# Apply the dehydrogenase operator to propanol
result = project_evodex_operator(evodex_id, substrate)
print("Referenced EVODEX projection: ", result)
# Project All Synthesis Subset EVODEX-E operators on propanol
result = project_synthesis_operators(substrate)
print("All Synthesis Subset projection: ", result)
For more detailed usage, refer to the EVODEX Synthesis Demo.
Evaluation
The evaluation module provides tools for evaluating reaction operators and synthesis results. Below is an example usage:
from evodex.evaluation import assign_evodex_F, match_operators
# Define reaction as oxidation of propanol
reaction = "CCCO>>CCC=O"
# Assign EVODEX-F IDs
assign_results = assign_evodex_F(reaction)
print(assign_results)
# Match reaction operators of type 'E' (or C or N)
match_results = match_operators(reaction, 'E')
print(match_results)
For more detailed usage, refer to the EVODEX Evaluation Demo.
Mass Spectrometry
The mass spectrometry module provides tools for predicting masses and identifying reaction operators. Below is an example usage:
from evodex.mass_spec import calculate_mass, find_evodex_m, get_reaction_operators, predict_products
# Calculate exact mass of the compound cortisol as an [M+H]+ ion
cortisol_M_plus_H = "O=C4\C=C2/[C@]([C@H]1[C@@H](O)C[C@@]3([C@@](O)(C(=O)CO)CC[C@H]3[C@@H]1CC2)C)(C)CC4.[H+]"
mass = calculate_mass(cortisol_M_plus_H)
# Define observed masses
substrate_mass = 363.2166 # The expected mass for cortisol's ion
potential_product_mass = 377.2323 # A mass of unknown identity
mass_diff = potential_product_mass - substrate_mass
# Find matching EVODEX-M entries
matching_evodex_m = find_evodex_m(mass_diff, 0.01)
print(matching_evodex_m)
# Get reaction operators
matching_operators = get_reaction_operators(mass_diff, 0.01)
print(matching_operators)
# Predict product structures
predicted_products = predict_products(cortisol_M_plus_H, mass_diff, 0.01)
print(predicted_products)
For more detailed usage, refer to the EVODEX Mass Spec Demo.
Website and Dataset Access
A website for exploring the EVODEX.2 dataset is available here:
🔗 https://ucb-bioe-anderson-lab.github.io/EVODEX/
This site provides a browsable, hyperlinked index of all EVODEX.2 operators and includes links to Colab demos and operator definitions.
If you prefer to work offline or programmatically, you can download the full set of operator tables (in CSV format) directly from this directory:
📂 https://github.com/UCB-BioE-Anderson-Lab/EVODEX/tree/main/evodex/data
Building and Running the Mining Pipeline
The mining pipeline allows you to reproduce the full EVODEX operator set from raw data. This is the process we use to generate the operators that ship with the PyPI distribution. Running the mining pipeline is only required if you want to modify the data, change the curation process, or experiment with new reactions.
⚠️ This project depends on a narrow window of compatible package versions. It is strongly recommended to use Python 3.11.13 and avoid newer Python versions unless you are familiar with rebuilding the RDKit dependency stack using Conda.
Build Environment
- This release is tested and works with Python 3.11.13.
- Using other Python versions (especially ≥ 3.12) may cause installation issues with key dependencies like
rdkit-pypi,scipy, andpandas. - Do not attempt to upgrade individual packages or change the Python version unless you're using Conda, which is not recommended for this build.
- For consistency and stability, we recommend using this exact Python version and installing via
venv.
/opt/homebrew/bin/python3.11 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
Running the Pipeline
You can run the entire pipeline automatically by running:
python run_pipeline.py
Alternatively, you can run the pipeline step-by-step. First, download and prepare the raw data file, then run the modules sequentially.
To download and prepare the raw data file:
import requests
import gzip
# Download the file
url = "https://github.com/hesther/enzymemap/blob/main/data/processed_reactions.csv.gz?raw=true"
r = requests.get(url)
with open("/content/processed_reactions.csv.gz", "wb") as f:
f.write(r.content)
# Decompress the file
with gzip.open("/content/processed_reactions.csv.gz", "rt") as f_in:
with open("/content/processed_reactions.csv", "wt") as f_out:
f_out.write(f_in.read())
Then run the following modules sequentially:
python -m pipeline.phase1_data_preparation
python -m pipeline.phase2_formula_pruning
python -m pipeline.phase3_ero_mining
python -m pipeline.phase3a_ero_pruning
python -m pipeline.phase3b_ero_trimming
python -m pipeline.phase3c_ero_publishing
python -m pipeline.phase4_operator_completion
python -m pipeline.phase5_mass_subset
python -m pipeline.phase6_synthesis_subset
python -m pipeline.phase7_website
Citing EVODEX
If you use EVODEX, please cite our publication:
Conceicao, L. L.; Lin, H.; Tai, Y.-C.; Xue, G.; Zhang, H.; Zhang, C.; Anderson, J. C. EVODEX: A Cheminformatics Framework for Mechanistic Abstraction and Prediction of Enzymatic Reactions. J. Chem. Inf. Model. 2026, published online April 2. https://doi.org/10.1021/acs.jcim.5c03163
PMID: 41925163
License
EVODEX is released under the MIT License.
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 evodex-2.1.0.tar.gz.
File metadata
- Download URL: evodex-2.1.0.tar.gz
- Upload date:
- Size: 10.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b56131f61ecd40d9f8b510560c90d66e24ef005129101b65b06247e849c9cf15
|
|
| MD5 |
3ff03d7450c24a4cb704bea15152715e
|
|
| BLAKE2b-256 |
e7815f76a153755ee8008bf7c80d58ceecece7a577d3c593e561b8959a9d94db
|
File details
Details for the file evodex-2.1.0-py3-none-any.whl.
File metadata
- Download URL: evodex-2.1.0-py3-none-any.whl
- Upload date:
- Size: 10.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04eda452dbda968fb7fa0e178b26d8fd7395b120caba9385ad3de5ff3fb099cb
|
|
| MD5 |
3cb17962afd57900a12c7113173830c4
|
|
| BLAKE2b-256 |
66836a26c7ec1235ce2196f50913ce254781c1a48cd363cfb39511fc4db7ca4e
|