Skip to main content

Decoding Single-Cell Observations of Perturbed Expression.

Project description

descope logo

PyPI Version PyPI Downloads Read the Docs GitHub License GitHub Release

Decoding Single-Cell Omics of Perturbation Responses Using DeSCOPE

main

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
Norman et al., 2019 Norman_K562 download

scATAC-seq

Acknowledgements

We sincerely thank the authors of following open-source projects:

Click to expand

Star History

Star History Chart

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

descopex-0.0.4.tar.gz (6.8 MB view details)

Uploaded Source

Built Distribution

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

descopex-0.0.4-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

File details

Details for the file descopex-0.0.4.tar.gz.

File metadata

  • Download URL: descopex-0.0.4.tar.gz
  • Upload date:
  • Size: 6.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for descopex-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5defddd6483ae28c5135ca655b8faa85828ca4d52174828b4b1824ed939303bd
MD5 b54cbc55948c1bae6c5274b1defa1cd2
BLAKE2b-256 aee90a89f53e855b1b6ce1805b9d880c8bcd615c1365b726e331d880a67f8b9b

See more details on using hashes here.

File details

Details for the file descopex-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: descopex-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 39.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for descopex-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6293a1a0135d5b54af0f2f8b339f9d90fc77e375a9ceea69a9155c2529840edd
MD5 d92f53489d2c589cff363b81ca1b8784
BLAKE2b-256 21fcaa04085489ec754c338bbf7de6a974d4a8db669a4b3e114fe20af0a2f231

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