DILImap - Predicting DILI risk using Toxicogenomics
API Docs
Import DILImap as:
import dilimap as dmap
After reading the data from local, quilt (dmap.quilt.read) or loading an in-built dataset
(dmap.datasets.*), the workflow includes preprocessing (dmap.pp.*), model predictions
(dmap.models.*), plotting (dmap.pl.*) and several utility functions (dmap.utils.*).
Read/write from S3
|
Load AWS credentials from .env file or prompt interactively if missing. |
|
Read a file from an S3 registry. |
|
Write an object to an S3 registry. |
Preprocessing (pp)
QC
|
Compute quality control (QC) metrics for gene expression data. |
|
Computes cross-replicate correlation quality control (QC) for each compound. |
Preprocessing
|
Runs DESeq2 for differential expression signatures across perturbations. |
|
Perform pathway enrichment analysis on DEGs for each compound. |
Models
|
ToxPredictor pre-trained v1 or initialize new model for re-training. |
Plotting (pl)
|
Plots a ROC curve with optional threshold annotations. |
|
Creates a box plot overlaid with a swarm plot for a given dataset. |
Datasets
Plasma Cmax annotations data for compounds in DILImap (csv file) |
|
DILI annotations from DILIrank and LiverTox databases (csv file) |
|
|
Cell viability assay results for all compounds in DILImap (csv file) |
|
Example gene expression data (anndata file) |
|
DILImap gene expression training data (anndata file) |
|
DILImap gene expression validation data (anndata file) |
|
DILImap gene expression data (anndata file) |
Clients
|
Fetch compound information from ChEMBL. |
|
Fetch drug warnings from ChEMBL for given compound(s). |
Utils
|
Generates a plate map for visualization. |
|
Groups a dataset by a specified key, preserving one-to-one categorical mappings. |
|
Creates a crosstab for the specified keys, applying an optional aggregation function. |
|
Annotate an AnnData or pandas.DataFrame with selected DILI labels and Cmax values. |