Skip to main content

scviva-tools

Consolidated spatial transcriptomics analysis toolkit based on scvi-tools.

Provides seven spatial transcriptomics models and tools as first-class citizens:

  • scVIVA — niche-aware representation learning (Levy et al., 2025)
  • DestVI — multi-resolution cell-type deconvolution (Lopez et al., 2022)
  • ResolVI — noise and bias correction for cellular-resolution ST (Ergen & Yosef, 2025)
  • GIMVI — joint imputation of missing genes across paired scRNA-seq and spatial data (Lopez et al., 2019)
  • Stereoscope — probabilistic cell-type deconvolution of spatial spots (Andersson et al., 2020)
  • Tangram — mapping scRNA-seq data onto spatial coordinates (Biancalani et al., 2021)
  • Harreman — metabolic exchange and cell-cell communication inference for spatial data (Etxezarreta-Arrastoa et al., 2025), integrating outputs from DestVI, ResolVI, and SCVIVA

See docs/user_guide/models for a full description of each model, and docs/tutorials for worked examples of every model above.

Installation

pip install scviva-tools

# Optional extras
pip install "scviva-tools[spatial]"    # SpatialData + squidpy integration
pip install "scviva-tools[rapids]"     # GPU-accelerated neighbor graphs (cuML/cuPy/cuGraph)
pip install "scviva-tools[tutorials]"  # jupyter, matplotlib, seaborn
pip install "scviva-tools[all]"        # everything above

See docs/installation.md for details, including a development install.

Quick Start

import scviva

# scVIVA
scviva.SCVIVA.setup_anndata(adata, layer="counts", spatial_key="spatial")
model = scviva.SCVIVA(adata)
model.train()

# DestVI
import scvi
scvi.model.CondSCVI.setup_anndata(sc_adata, labels_key="cell_type", layer="counts")
sc_model = scvi.model.CondSCVI(sc_adata)
sc_model.train()

scviva.DestVI.setup_anndata(st_adata, layer="counts")
st_model = scviva.DestVI.from_rna_model(st_adata, sc_model)
st_model.train()

# ResolVI
scviva.ResolVI.setup_anndata(adata, layer="counts", spatial_key="spatial")
model = scviva.ResolVI(adata)
model.train()

Models beyond scVIVA/DestVI/ResolVI (GIMVI, Stereoscope, Tangram) live under scviva.external, e.g. scviva.external.Tangram.

Downstream tools (scviva.tl / scviva.pl)

scviva.tl and scviva.pl mirror scanpy's sc.tl/sc.pl convention, resolving lazily to scviva.tools/scviva.plotting so heavy optional dependencies aren't imported eagerly:

# Harreman: metabolic exchange & cell-cell communication analysis, optionally
# integrating DestVI/ResolVI/SCVIVA outputs
scviva.tl.harreman.hs.compute_local_autocorrelation(adata, use_metabolic_genes=True)
scviva.pl.harreman.local_correlation_plot(adata)

scviva.tl.harreman itself exposes a scanpy-style sub-API: tl/hs/pp/ds/pl for tools/hotspot/preprocessing/datasets/plotting, plus a stateful HarremanAnalysis wrapper (scviva.tools.harreman.HarremanAnalysis) that can integrate DestVI/ResolVI/SCVIVA outputs.

Documentation

Full documentation, including the user guide, API reference, and tutorials, is under docs/. See CHANGELOG.md for a detailed history of recent changes.

Citation

If you use scviva-tools in your research, please cite:

Ori Kronfeld, Nathan Levy, Pierre Boyeau, Oier Exezarreta-Arrastoa, Artemii Bakulin, Elham Azizi, Can Ergen & Nir Yosef

References

See docs/references.md for full citations.

Copyright (c) 2026, Yosef Lab, Weizmann Institute of Science

Metadata

Release files for scviva-tools 0.1.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 scviva-tools 0.1.8
File Size Uploaded Provenance Actions
scviva_tools-0.1.8.tar.gz 72.4 MB With provenance Details for scviva_tools-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scviva-tools 0.1.8
File Interpreter ABI Platform Actions
scviva_tools-0.1.8-py3-none-any.whl Python 3 none any Details for scviva_tools-0.1.8-py3-none-any.whl

Total release size: 72.7 MB

Release files / scviva_tools-0.1.8.tar.gz

Download URL scviva_tools-0.1.8.tar.gz
Size 72.4 MB
Tags Source
SHA-256 checksum
How to use checksums
ba6698f085751bec0d2dd002467a795261c9979584a071715c0c2ff2e94a9977
BLAKE2b-256 checksum
How to use checksums
280644965e368fabb74c03d74bef0ae3c7624c9b3a82aaa3c7c95382c4e73b8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 28, 2026.

Transparency log

Release files / scviva_tools-0.1.8-py3-none-any.whl

Download URL scviva_tools-0.1.8-py3-none-any.whl
Size 308.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c3afd887f971bcb0da15d3bae5dbecfaf2228d75eec07366e1802e676bae9bf
BLAKE2b-256 checksum
How to use checksums
5004bac7e0d036386afc372e32515fbe0920f4731b5331bde9839722dffd3de7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 28, 2026.

Transparency log

Security for scviva-tools 0.1.8

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for scviva_tools-0.1.8.tar.gz

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 28, 2026.

Transparency log

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.

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