Skip to main content

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 / ApplicationSvc classes 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

revise_svc-0.0.2.tar.gz (40.0 kB view details)

Uploaded Source

Built Distribution

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

revise_svc-0.0.2-py3-none-any.whl (53.9 kB view details)

Uploaded Python 3

File details

Details for the file revise_svc-0.0.2.tar.gz.

File metadata

  • Download URL: revise_svc-0.0.2.tar.gz
  • Upload date:
  • Size: 40.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for revise_svc-0.0.2.tar.gz
Algorithm Hash digest
SHA256 647d742d77716fec323d250c86067c50baf3a9e1d9963ec20d8fb4b821146b0a
MD5 a8445fd9f49ba2201ff7cdda4d9ad704
BLAKE2b-256 ffa3ba5f8118d05f21e53d44f89e13301537c911280fcb823ef77506efbc6c2a

See more details on using hashes here.

File details

Details for the file revise_svc-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: revise_svc-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 53.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for revise_svc-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d503f7c683c8a32690d1b2934b77ce49ceba802c46a3e427bdbc12cbe1ea9214
MD5 8bc21780593c7dbb3dc4dae1770fd8bf
BLAKE2b-256 f2ebe0b4e74da7aa85ef9e65b2aa878a07dcec4cbeb8b180e2ce514ccdb2737a

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