DeepVelo - A Deep Learning-based velocity estimation tool with cell-specific kinetic rates
This is the official implementation of the DeepVelo method. DeepVelo employs cell-specific kinetic rates and provides more accurate RNA velocity estimates for complex differentiation and lineage decision events in heterogeneous scRNA-seq data. Please check out the paper for more details.
Installation
pip install deepvelo
The dgl package is required, the cpu version is installed by default. Feel free to install the dgl cuda version for GPU acceleration.
pip install dgl-cu101>=0.4.3 # an example for CUDA 10.1
Install the development version
We use poetry to manage dependencies.
poetry install
This will install the exact versions in the provided poetry.lock file. If you want to install the latest version for all dependencies, use the following command.
poetry update
Usage
We provide a number of notebooks in the exmaples folder to help you get started. DeepVelo fullly integrates with scanpy and scVelo. The basic usage is as follows:
import deepvelo as dv
import scvelo as scv
adata = ... # load your data in AnnData format
# preprocess the data
scv.pp.filter_and_normalize(adata, min_shared_counts=20, n_top_genes=2000)
scv.pp.moments(adata, n_neighbors=30, n_pcs=30)
# run DeepVelo using the default configs
trainer = dv.train(adata, dv.Constants.default_configs)
# this will train the model and predict the velocity vectore. The result is stored in adata.layers['velocity']. You can use trainer.model to access the model.
Metadata
Release files for deepvelo 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deepvelo-0.2.4.tar.gz | 58.6 kB | Without provenance | Details for deepvelo-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deepvelo-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for deepvelo-0.2.4-py3-none-any.whl |
Total release size: 124.7 kB
Release files / deepvelo-0.2.4.tar.gz
| Download URL | deepvelo-0.2.4.tar.gz |
|---|---|
| Size | 58.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a337148d6666a8bfcb4d3500dcb3b511e4c31279a509994877475d3a37aa7aa8
|
|
BLAKE2b-256 checksum How to use checksums |
5e53f763cfc3eb3bb9f2447810f86d46351608989c92037d8e5e4ccf996a2b8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.7.3 Linux/4.4.0-210-generic
|
Release files / deepvelo-0.2.4-py3-none-any.whl
| Download URL | deepvelo-0.2.4-py3-none-any.whl |
|---|---|
| Size | 66.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61d2fc6b537195b74fb064f6f4b6be5cf467b8f6fecd21fda25a8259b5347ced
|
|
BLAKE2b-256 checksum How to use checksums |
7eba11d98db0b617b02d7756bd541bef17a006ffe2c171c41430c977c209e879
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.7.3 Linux/4.4.0-210-generic
|
Security for deepvelo 0.2.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.