A versatile deep-learning based strategy for multi-omics integration
Project description
CustOmics: a versatile deep-learning based strategy for multi-omics integration
Integrate RNA-seq, CNV, DNA methylation, and more into a single predictive model.
customics is a Python package for integrating multiple genomic data modalities using a hierarchical deep-learning architecture. It supports classification, survival outcome prediction, and SHAP-based explainability — all in a single scikit-learn-style API, built on MuData from scverse.
Documentation
Check customics's documentation to get started. It contains installation explanations, API details, and tutorials.
Installation
customics can be installed from PyPI on all OS, for any Python version >=3.11:
pip install customics
Features
- Multi-omics integration — a hierarchical architecture (per-source autoencoders feeding a central VAE) that fuses heterogeneous, high-dimensional modalities into a shared latent space.
- Built-in tasks — tumor classification and survival prediction (Cox), with one scikit-learn-style
fit/predict/evaluateAPI. - Explainability — per-source feature attribution via SHAP.
- Visualization — latent-space projection (t-SNE) and Kaplan-Meier survival stratification out of the box.
Usage
import customics
from customics import CustOMICS
# --- 1. Load and prepare data ---
# toy_dataset() returns a MuData object: one modality per omics source,
# with clinical annotations in `.obs`.
mdata = customics.toy_dataset()
customics.prepare_input(
mdata,
label="PAM50", # classification target column
event="OS", # survival event column (0/1)
surv_time="OS.time", # survival time column
)
# --- 2. Instantiate the model ---
# Each config dict tunes one component. See the configuration reference for the
# full schema: https://prism-oncology.github.io/customics/hyperparameter_tuning/
model = CustOMICS(
source_params=source_params,
central_params=central_params,
classif_params=classif_params,
surv_params=surv_params,
train_params=train_params
)
# --- 3. Train ---
model.fit(mdata, batch_size=32, n_epochs=30, verbose=True)
# --- 4. Evaluate ---
metrics = model.evaluate(mdata, task="classification") # Accuracy, F1, AUC, …
ci = model.evaluate(mdata, task="survival") # concordance index
# --- 5. Visualise & explain ---
model.plot_loss()
model.plot_representation(mdata, color="PAM50")
model.stratify(mdata, show=True)
model.explain(sample_ids, mdata, source="rna", subtype="Her2")
[!NOTE] See this usage section for more details about usage.
Reproducing Paper Results
Download TCGA data from the GDC Data Portal or cBioPortal. Pre-computed 5-fold CV splits for BRCA, LUAD, UCEC, BLCA, GBM, OV, and PANCAN are included in the data/splits/ directory.
See our documentation for a complete end-to-end walkthrough using the bundled toy dataset.
Citation
If you use customics in your research, please cite:
@article{benkirane2023,
doi = {10.1371/journal.pcbi.1010921},
author = {Benkirane, Hakim AND Pradat, Yoann AND Michiels, Stefan AND Cournède, Paul-Henry},
journal = {PLOS Computational Biology},
publisher = {Public Library of Science},
title = {CustOmics: A versatile deep-learning based strategy for multi-omics integration},
year = {2023},
month = {03},
volume = {19},
pages = {1--19},
number = {3}
}
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 customics-0.1.0.tar.gz.
File metadata
- Download URL: customics-0.1.0.tar.gz
- Upload date:
- Size: 25.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa16cc2881e239d43d6b4bbd7fae00faec6368eb9ee25b41084e6a031d4f561f
|
|
| MD5 |
1680efb066bf6a58166dd78d773ec86b
|
|
| BLAKE2b-256 |
d49b65812294df6e0f54f5a0e943680603e3b5aa0a188915d703103fb0b0c281
|
File details
Details for the file customics-0.1.0-py3-none-any.whl.
File metadata
- Download URL: customics-0.1.0-py3-none-any.whl
- Upload date:
- Size: 37.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6aa1db63e1bae2d555e201c7a1f5498be209d174995177a8b61d63d359853ca8
|
|
| MD5 |
dfc186a53c934100560553ea783f7eb6
|
|
| BLAKE2b-256 |
45901aecfb06af754e99bd250e5fc7597b538668076fe095d7ad0dd50fc7d5c4
|