Spatial transcriptomics benchmarking and annotation toolkit.
Project description
REVISE
REVISE (Regenerative Evaluation of VIable Spatial Expression) is a Python toolkit for benchmarking and annotating spatial transcriptomics (ST) data. It bundles standardized benchmarking workflows and application-ready SVC (Spatial transcriptomics Variational Comparison) pipelines so that researchers can compare algorithms, reproduce analyses, and build their own reference pipelines with minimal friction.
Highlights
- Benchmark module: Reproducible evaluation pipelines for simulated or public datasets, enabling method-to-method comparisons.
- Application module: Annotation, reconstruction, and downstream analyses for real ST data with built-in ST/SC preprocessing.
- Utility tools: Ready-to-use helpers such as efficient similarity metrics in
revise.tools.distance, simplifying scripting. - Extensible architecture: Layered
BaseSvc/ApplicationSvcclasses make it straightforward to plug in new tasks or methods.
Quick Start
git clone https://github.com/wuys13/REVISE.git
cd REVISE
python -m venv .venv && source .venv/bin/activate
pip install -e ".[annotation]"
Minimal Example
import anndata as ad
from revise.application import SpSvc
st = ad.read_h5ad("data/spatial.h5ad")
sc = ad.read_h5ad("data/single_cell_reference.h5ad")
config = ...
svc = SpSvc(st, sc, config=config, logger=None)
svc.annotate()
svc.reconstruct()
Explore the full set of benchmark/application services in revise/application and revise/benchmark. To extend the framework, inherit from the relevant base class and override preprocessing, optimization, or evaluation hooks.
Repository Layout
revise/application: SVC workflows for real datasets.revise/benchmark: SVC variants for benchmarking studies.revise/methods: Algorithm implementations and model components.revise/tools: Distance metrics, logging helpers, and general utilities.conf: Example configurations and experiment parameters.
Contributing
Issues and pull requests are welcome-especially bug reports, documentation improvements, and new method implementations. Install the dev extras via pip install -e ".[dev]" to run ruff and pytest before submitting changes.
License
REVISE is released under the MIT License (see LICENSE).
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 revise_svc-0.0.3.tar.gz.
File metadata
- Download URL: revise_svc-0.0.3.tar.gz
- Upload date:
- Size: 39.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c444515690dfd75d12e0540574dccbeeda161333dcf296896ca975be7389529a
|
|
| MD5 |
eae089cf9b7a213c0aaa2037ff307cb9
|
|
| BLAKE2b-256 |
a23bf1ea321d7e8ad7e41349aebeac493f639ea445565471bb8609ddf1c31866
|
File details
Details for the file revise_svc-0.0.3-py3-none-any.whl.
File metadata
- Download URL: revise_svc-0.0.3-py3-none-any.whl
- Upload date:
- Size: 50.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a40bd8aa4169fb700f874c63df52903f31f45c3c3905da231944598dd1456f57
|
|
| MD5 |
cde00ada53a47e25d1b07d5bd4e2a9d3
|
|
| BLAKE2b-256 |
f7f43352c50a53f1b3ab93d9f82b6e78f3aa1e4fc63669d548ebceaf35e207ab
|