Skip to main content

DRVI

Build Tests Codecov Documentation Python Version PyPI Downloads

DRVI (Unsupervised Deep Disentangled Representation of Single-Cell Omics)

DRVI concept

Getting started

Please refer to the documentation. In particular, the

DRVI is now part of scvi-tools

The PyTorch model of DRVI has been contributed to scvi-tools and will be maintained from there. Everything else in this package, including the utility and plotting functions, metrics, and interpretability tools, continues to be maintained here and works on top of the scvi-tools model.

We recommend new projects import the model directly from scvi-tools as scvi.external.DRVI, and keep importing the utilities and extras from this package (drvi.utils, etc.). For backward compatibility, drvi.model.DRVI remains importable as of version 0.3.0 and is now an alias for scvi.external.DRVI, though this alias may itself be deprecated from 0.4.0. Existing users can keep using drvi-py < 0.3.0, but we recommend upgrading to access utilities not available in older versions.

If you want to move a model trained with drvi-py < 0.3.0 to the scvi-tools implementation (scvi-tools >= 1.5.0), the Porting a DRVI model (drvi-py < 0.3) to scvi.external.DRVI (scvi-tools) tutorial walks through the conversion, so you can continue your analysis without retraining. Open In Colab

System requirements

We recommend running DRVI on a recent Linux distribution. DRVI is actively tested on the latest LTS version of Ubuntu (currently 24.04 LTS).

For optimal performance, we highly recommend using a GPU with CUDA capabilities. While CPU-based systems are supported, GPU-powered systems are strongly recommended for optimal performance.

Installation

You need to have Python (versions 3.10 to 3.14 supported) installed on your system. If you don't have Python installed, we recommend installing uv.

There are several alternative options to install drvi:

  1. Install the latest release of drvi-py from PyPI, which should take around two minutes:
pip install drvi-py
  1. Install the latest development version:
pip install git+https://github.com/theislab/drvi.git@main

Please be sure to install a version of PyTorch that is compatible with your GPU. Dependencies are installed automatically, please take a look at the versions for different dependencies in pyproject.toml if needed.

Release notes

See the changelog.

Contact

For questions and help requests, you can reach out in the scverse discourse. If you found a bug, please use the issue tracker.

Citation

If DRVI is helpful in your research, please consider citing the following paper:

Moinfar, A. A. & Theis, F. J. Disentangling cellular heterogeneity into interpretable biological factors through structured latent representations. bioRxiv 2024.11.06.622266 (2024) doi:10.1101/2024.11.06.622266.

Reproducibility

Code, notebooks, and instructions to reproduce the results from the paper are available at the reproducibility repository.

Metadata

Release files for drvi-py 0.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drvi-py 0.2.8
File Size Uploaded
drvi_py-0.2.8.tar.gz 169.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for drvi-py 0.2.8
File Interpreter ABI Platform
drvi_py-0.2.8-py3-none-any.whl Python 3 none any Details

Total release size: 289.1 kB

Release files / drvi_py-0.2.8.tar.gz

Download URL drvi_py-0.2.8.tar.gz
Size 169.2 kB
Tags Source
SHA-256 checksum
How to use checksums
27d30cc8625bf3c74c63f0cba9c0a97fa60d2f9e08ed47cc2e7268cef0b2b5f8
BLAKE2b-256 checksum
How to use checksums
0f6719efe8cff14c785ed2a4a67064d7fb6db60ba0a357d1b2989e7d48365181
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / drvi_py-0.2.8-py3-none-any.whl

Download URL drvi_py-0.2.8-py3-none-any.whl
Size 119.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b172d02f94fec64a619c1d0588c4a353b93b8fbea6d1c5048034d861228aac81
BLAKE2b-256 checksum
How to use checksums
85cdcce4284fe1aef6dd06cbf05ac482d618059c38e17a0f20d6b11727355fd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.8 This release

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page