Decoding Single-Cell Observations of Perturbed Expression.
Project description
DeSCOPE: Decoding Single-Cell Observations of Perturbed Expression
DeSCOPE is a single-cell perturbation prediction framework designed for scRNA-seq, scATAC-seq, and general single-cell–level perturbation modeling. It is built on a conditional Variational Autoencoder (cVAE) architecture, in which perturbed genes are represented by embeddings derived from the ESM2 protein language model and used as conditioning information to model cellular responses to genetic perturbations. Through this design, DeSCOPE delivers strong predictive performance in challenging scenarios, including unseen genes and unseen cell types.
Installation
Environment Setup
Step 1: Set up a python environment
We recommend creating a virtual Python environment with Anaconda:
- Required version:
python >= 3.10
conda create -n descope python=3.10
conda activate descope
Step 2: Install pytorch
Install PyTorch based on your system configuration. Refer to PyTorch installation instructions.
For the exact command, for example:
- You may choose any version to install, but make sure the PyTorch version is not too old.
- We recommend
torch ≥ 2.6.
# Installation Example: torch v2.7.1
# CUDA 11.8
pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu118
# CUDA 12.6
pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu126
# CUDA 12.8
pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu128
Step 3: Install deepspeed (optional)
Install DeepSpeed based on your system configuration. Refer to DeepSpeed installation instructions.
For the exact command, for example:
pip install deepspeed
Step 4: Install descope and dependencies
To install descope, run:
pip install descopex
Or install from github:
git clone https://github.com/Peg-Wu/DeSCOPE.git
cd DeSCOPE
pip install [-e] .
Check if installation was successful:
import descope
descope.welcome()
Datasets Zoo
scRNA-seq
| Paper | Dataset | Download Link |
|---|---|---|
| Replogle et al., 2022 | K562_GWPS (61.3GB) | download |
| Replogle et al., 2022 | K562_ESSENTIAL (9.9GB) | download |
| Replogle et al., 2022 | RPE1 (8.1GB) | download |
| Nadig et al., 2025 | HEPG2 (5.2GB) | download |
| Nadig et al., 2025 | JURKAT (8.7GB) | download |
- The H1 dataset was obtained from the Virtual Cell Challenge 2025. (download)
- NOTE: ESM2 gene embeddings can also be obtained from here.
scATAC-seq
- Cell-by-cCRE / Cell-by-peak: Human-scATAC-Corpus
Acknowledgements
We sincerely thank the authors of following open-source projects:
Click to expand
Star History
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 descopex-0.0.3.tar.gz.
File metadata
- Download URL: descopex-0.0.3.tar.gz
- Upload date:
- Size: 3.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
faf73b4bee73b11a91542e9fd242f8274fc84a3b4d943de9bfb7bcbfb5a3ee79
|
|
| MD5 |
298363488076d39d51b75a51b62a000a
|
|
| BLAKE2b-256 |
5d81b01ab3ca85baaa293ab008b65bba9e71c3cb7af1f658fece067f8fd6f8fd
|
File details
Details for the file descopex-0.0.3-py3-none-any.whl.
File metadata
- Download URL: descopex-0.0.3-py3-none-any.whl
- Upload date:
- Size: 39.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccd96eae763791dd1462fddc5881da7b5f06116d91b08702c3f935acafb4183a
|
|
| MD5 |
95f5f565fff348b77f1dda0abf8b1284
|
|
| BLAKE2b-256 |
95c1dcf7f1310d223b3b8bdcf6ca263b762aa1c34401c935719e84a3c56e7e1e
|