Skip to main content

UNAGI: Deep Generative Model for Deciphering Cellular Dynamics and In-Silico Drug Discovery in Complex Diseases

Project description

UNAGI: virtual disease and drug perturbation

UNAGI is a data-driven virtual disease model powered by deep generative AI for reconstructing longitudial cell dynamics in disease progression and performing unsupervised in-silico drug perturbations for drug discovery/repurposing.

Full documentations and tutorials can be accessed at UNAGI-docs.

Citation

Zheng, Y., Schupp, J.C., Adams, T. et al. A deep generative model for deciphering cellular dynamics and in silico drug discovery in complex diseases. Nat. Biomed. Eng (2025). https://doi.org/10.1038/s41551-025-01423-7

Highlights

  • UNAGI supports both time-series scRNA data and control/disease (two-condition) data.
  • UNAGI can construct temporal cell dynamics
    • trajectories
    • TFs
    • temporal marker genes
  • UNAGI can perform UNSUPERVISED perturbation for
    • single gene
    • gene combinations
    • pathways
    • drug and compounds

News

  • Sept/2025: We are honored to have this work highlighted by Anaconda AI Platform! (link)
  • June/2025: We are thrilled to share that UNAGI is published on Nature Biomedical Engineering! (link)

Overview

Alt text
  • Learning disease-specific cell embeddings through iterative training processes.

  • Constructing temporal dynamic graphs from time-series single-cell data and reconstructing temporal gene regulatory networks to decipher cellular dynamics.

  • Identifying dynamic and hierarchical static markers to profile cellular dynamics, both longitudinally and at specific time points.

  • Performing in-silico perturbations to identify potential therapeutic pathways and drug/compound candidates.

Installation

Create a new conda environment

conda create -n unagi python=3.10
conda activate unagi

UNAGI installation

Option 1: Install from pip

pip install scUNAGI

Option 2: Install from Github (Recommended)

Installing UNAGI directly from GitHub ensures you have the latest version. (Please install directly from GitHub to use the provided Jupyter notebooks for tutorials and walkthrough examples.)

git clone https://github.com/mcgilldinglab/UNAGI.git
cd UNAGI
pip install .

Prerequisites

  • Python >=3.9
  • pyro-ppl>=1.8.6
  • scanpy>=1.9.5
  • anndata==0.8.0
  • torch >= 2.0.0
  • matplotlib>=3.7.1

Required files

Preprocessed CMAP database (Link) provides drug-gene pairs data to run UNAGI drug perturbation function.

  • Option 1 : 'cmap_drug_target.npy' uses the direct drug target genes provided in CMAP LINCS 2020.
  • Option 2: 'cmap_drug_treated_res_cutoff.npy' uses genes that are up/down-regulated significantly after individual drug treatments in CMAP LINCS 2020. We kept the top 5% drug-gene pairs based on level 5 MODZ score.
  • 'cmap_direction_df.npy' indicates the direction of gene regulated by drugs after treatments. The drug regulation direction of gene is based on level 5 MODZ score.
  • Use your own drug-target pairs, please see this tutorial.

Preprocessed IPF snRNA-seq dataset: One Drive

  • UNAGI outcomes to reproduce the figures and tables generated for the manuscript.

Example dataset: Link.

  • The dataset for UNAGI walkthrough demonstration.

iDREM installation:

git clone https://github.com/phoenixding/idrem.git

iDREM prerequisites:

Install the iDREM to the source folder of UNAGI

  • Java To use iDREM, a version of Java 1.7 (64-bit) or later must be installed. If Java (64-bit) 1.7 or later is not currently installed, please refer to http://www.java.com for installation instructions.

  • JavaScript To enable the interactive visualization powered by Javascript. (The users are still able to run the software off-line, but Internet access is needed to view the result interactively.)

Tutorials:

Dataset preparation

Prepare datasets to run UNAGI.

Training and analysis on an example dataset

UNAGI training and analysis on an example dataset.

Visualize the results of the UNAGI method

Visualization on an example dataset.

Using UNAGI with a customized pathway or drug database for in-silico perturbation

Run UNAGI on Customized drug/compound database and Customized pathway database.

Predicting post-treatment gene expressions

Predict the post-treatment gene expression changes using the PCLS data.

Walkthrough Example

From loading data to downstream analysis.

Please visit UNAGI-docs for more examples and tutorials.

Contact

Yumin Zheng, Naftali Kaminski, Jun Ding

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

scunagi-0.5.10.tar.gz (6.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scunagi-0.5.10-py3-none-any.whl (6.8 MB view details)

Uploaded Python 3

File details

Details for the file scunagi-0.5.10.tar.gz.

File metadata

  • Download URL: scunagi-0.5.10.tar.gz
  • Upload date:
  • Size: 6.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for scunagi-0.5.10.tar.gz
Algorithm Hash digest
SHA256 574572ea2ec50b8286edf27faaff663599ef262eeb6741ea724511b7433245f0
MD5 4c90f04c1369324ba9ac5bd0fb910d91
BLAKE2b-256 133580f0256986f7124960ec3b9fa0168884d3cf3561acb9795192b0bf46691f

See more details on using hashes here.

File details

Details for the file scunagi-0.5.10-py3-none-any.whl.

File metadata

  • Download URL: scunagi-0.5.10-py3-none-any.whl
  • Upload date:
  • Size: 6.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for scunagi-0.5.10-py3-none-any.whl
Algorithm Hash digest
SHA256 4c86ca9b2f6bd6b49386308fad22e2db62e15e54ce22bcd356dd7206621e0b77
MD5 3e3b65fc0d401fcaf77fe294466d6267
BLAKE2b-256 2405b37d0ba32912eb0ba39b8d56ed2c593b2f268ee514c666537691f50a89fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page