DRVI (Unsupervised Deep Disentangled Representation of Single-Cell Omics)
Getting started
Please refer to the documentation. In particular, the
- Tutorials, specially
- Train DRVI and interpret the latent dimensions.
- Mapping query data into a DRVI reference.
- Finding rare cell types with DRVI.
- Identification and annotation of factors:
- Train DRVI and interpret the latent dimensions.
- API documentation, specially
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.
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:
- Install the latest release of
drvi-pyfrom PyPI, which should take around two minutes:
pip install drvi-py
- 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.
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 drvi_py-0.2.7.tar.gz.
File metadata
- Download URL: drvi_py-0.2.7.tar.gz
- Upload date:
- Size: 166.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d06611e0ea4a37e09823acbe572df7ea4774573839c1d3aa2b1bba0357ef750
|
|
| MD5 |
83800e2fac6624d746985cf6ee29488b
|
|
| BLAKE2b-256 |
ddcb33344aab6beb6af502657c69203ff422a292ee399044c7f7cd41b1006d8e
|
Provenance
The following attestation bundles were made for drvi_py-0.2.7.tar.gz:
Publisher:
release.yaml on theislab/DRVI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
drvi_py-0.2.7.tar.gz -
Subject digest:
5d06611e0ea4a37e09823acbe572df7ea4774573839c1d3aa2b1bba0357ef750 - Sigstore transparency entry: 2129292581
- Sigstore integration time:
-
Permalink:
theislab/DRVI@b8016cf1ec7a1eecb02271190c33b16a9cc8ab8e -
Branch / Tag:
refs/tags/v0.2.7 - Owner: https://github.com/theislab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@b8016cf1ec7a1eecb02271190c33b16a9cc8ab8e -
Trigger Event:
release
-
Statement type:
File details
Details for the file drvi_py-0.2.7-py3-none-any.whl.
File metadata
- Download URL: drvi_py-0.2.7-py3-none-any.whl
- Upload date:
- Size: 119.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e443fed0e41d7ac03d355802e541bc7413a5cac2674895bda0138da142599e1
|
|
| MD5 |
e08a1462e7101044aafb7c5d1f6fe8a2
|
|
| BLAKE2b-256 |
84c7b693e6ec30a9dcad0b15e727ac09e8c832286619c6a359167906b5cb476c
|
Provenance
The following attestation bundles were made for drvi_py-0.2.7-py3-none-any.whl:
Publisher:
release.yaml on theislab/DRVI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
drvi_py-0.2.7-py3-none-any.whl -
Subject digest:
9e443fed0e41d7ac03d355802e541bc7413a5cac2674895bda0138da142599e1 - Sigstore transparency entry: 2129292775
- Sigstore integration time:
-
Permalink:
theislab/DRVI@b8016cf1ec7a1eecb02271190c33b16a9cc8ab8e -
Branch / Tag:
refs/tags/v0.2.7 - Owner: https://github.com/theislab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@b8016cf1ec7a1eecb02271190c33b16a9cc8ab8e -
Trigger Event:
release
-
Statement type: