scPyviewer: a Python-native interactive viewer from AnnData single-cell data
Abstract
Motivation: Interactive web tools enabling non-programmers to explore single-cell datasets, embeddings, gene expression, metadata, and marker genes are standard laboratory infrastructure. However, actively maintained tools (e.g., ShinyCell, ScRDAVis, sCIRCLE) rely on R Shiny and require Seurat objects. Python/scanpy, the dominant framework for single-cell RNA-seq and spatial analysis, lacks a lightweight, native option pairing a shareable viewer with a scriptable Python API. Sharing scanpy results currently requires converting to Seurat or sharing code notebooks. Results: We present scPyviewer, a web viewer that ingests AnnData objects directly and reproduces incumbent interaction patterns within the Python stack. In a feature-parity audit against three R Shiny tools, scPyviewer matches or exceeds baseline capabilities (7/7), uniquely offering native AnnData ingestion without conversion and cross-dataset comparison over shared genes and matched cell types. Benchmark tests across three datasets (22,315 to ~313,000 cells) show scPyviewer renders every core view faster (up to 3.6x speedup) using lower memory (5.2x lower on the smallest dataset). On 313,000 cells, scPyviewer completes all views while Seurat exhausts an 8 GB memory limit and fails. Beyond the app, scPyviewer exposes a Python API returning Matplotlib figures and pandas tables for publication-ready output. Availability and implementation: Implemented in Python 3.11 (scanpy 1.11.5, anndata 0.12.19, streamlit 1.59.2, plotly 6.9.0) with a one-command interface to reproduce benchmarks, figures, and launch the app. Source code: https://github.com/xuan13hao/scPyviewer.git
Create a lesson
Metadata
- Categories
- q-bio.GN, cs.AI
Related papers
Truecell reproduces R Seurat's single-cell analysis outputs natively in the Python ecosystem
Shared title terminologyq-bio.GNNuzla Ismail, Shanika Amarasoma, Michelle Galeas-Pena et al.
Synaptic Dendritic Neuron Model (scDNM) for Cell Type Classification in Single-Cell RNA Sequencing Data
Shared title terminologyq-bio.GNDeniz Karapınar, Gaurav Choudhary, Melih Agraz
Benchmarking Recent Single-Cell Synthetic Data Generation Methods on the OneK1K Dataset
Shared title terminologyq-bio.GNBuse Giledereli, Basar Temiz, Amirreza Sattarzadeh Khanehbargh
Subcellularly Resolved Single-Cell Embedding Learning with Transcriptomic data, Protein Structure and Localization Information
Shared title terminologyq-bio.GNZhen Zhou, Jiachen Li, Yuan Liu et al.
Making Single-Cell Data Distillation Auditable: Traceable Real-Cell Coresets via Discrete Min--Max Selection
Shared title terminologyq-bio.GNYaodi Luo, Peize He, Lingbei Meng et al.
Privacy-preserving federated tensor decomposition of single-cell immune data: recovering multicellular programs across institutions
Shared title terminologyq-bio.GNAxel Faes, Stephanie M. van den Berg, Maryam Amir Haeri