GRAIL is an open-source tool for drug metabolism prediction, based on graph neural networks and SMARTS reaction rules.
Project description
GRAIL: Graph neural networks and Rule-based Approach In drug metaboLism prediction
GRAIL is an open-source tool for drug metabolism prediction, based on SMARTS reaction rules and graph neural networks.
1. Installation
1.1 From source with Poetry
Run poetry install from the directory with pyproject.toml file
1.2 From PyPi
pip install grail_metabolism
IMPORTANT: If you are going to run GRAIL with CUDA,
then after installation run install.py script to add
proper versions of torch-geometric, torch-scatter
and torch-sparse to your environment.
2. Data availability
Data can be downloaded from Zenodo draft. ATTENTION: This is not the final version of the dataset.
3. Quick start
IMPORTANT: Due to RXNMapper incompatibility with newer
versions of Python, use only Python 3.9 or lower if you want
to create your own set of transformation rules. All necessary
tools are in grail.utils.reaction_mapper
For a quick start you may look into the notebooks/Unit_Tests.ipynb.
MolFrame
For the data uploading and further usage you should import grail_metabolism.utils.preparation.MolFrame.
It has three different variants of initialization: from pandas.DataFrame, from dictionaries with metabolic maps, and from SDF file.
For loading data from file use the MolFrame.from_file function, having previously read (substrate, metabolite, real_or_not) triples via MolFrame.read_triples.
Models
In the model module you can find all necessary model classes, especially Filter and Generator.
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
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 grail_metabolism-0.1.2.tar.gz.
File metadata
- Download URL: grail_metabolism-0.1.2.tar.gz
- Upload date:
- Size: 63.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/24.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1b1b74198692d692016a782b6f1abd815177be985bee972c7cbd4dc31f81303
|
|
| MD5 |
500e38978b8d4646981229cd5568097d
|
|
| BLAKE2b-256 |
12e4025d18ce0e0d7212d3925ebbc79b95e19ae6a9064b5dddddc1ba41648c04
|
File details
Details for the file grail_metabolism-0.1.2-py3-none-any.whl.
File metadata
- Download URL: grail_metabolism-0.1.2-py3-none-any.whl
- Upload date:
- Size: 70.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/24.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f50011695ac22762dfbddd30a0792cf698a691babf612929115cf16fa58a18a5
|
|
| MD5 |
38c8f57fa1cb5b923e913c0c57ee04cf
|
|
| BLAKE2b-256 |
e77babc052c1da7957adc6ca704360e0daf38f418cfb552fcde2c7410de525e4
|