scPyviewer#

https://raw.githubusercontent.com/xuan13hao/scPyviewer/main/docs/images/embedding_celltype.png

scPyviewer

A Python-native interactive viewer and publication-quality plotting API for single-cell AnnData.

scPyviewer ingests an AnnData (.h5ad) object directly — no Seurat conversion — and exposes embeddings, gene expression, metadata, and marker/DE tables through both an interactive Streamlit viewer and a programmatic plotting API that produces publication-ready figures. It scales from a laptop toy dataset to million-cell atlases larger than RAM.

pip install scPyviewer          # core
pip install 'scPyviewer[all]'   # + viewer, clustering, xlsx export
🚀 Get started

Install, launch the viewer, and load your first dataset.

Installation
📚 Tutorial

Every plot_* and table function with runnable examples.

scPyviewer API Tutorial
🎨 Styles & palettes

figures4papers / nature presets and the journal colour palettes (NPG, AAAS, NEJM, Lancet, JAMA).

Styles & palettes
🧬 API reference

Full signatures and parameters, generated from the docstrings.

API reference
🗻 Large data

Explore million-cell atlases smoothly in low memory.

Large data
📄 Citation

How to cite scPyviewer (bioRxiv + BibTeX + CITATION.cff).

Citation

Publication-quality figures#

Every figure below is one plot_* call under set_publication_style() (bold figures4papers-style default, colour-blind-safe Okabe-Ito palette; call set_publication_style("nature") for the compact journal look). See the tutorial for the code.

https://raw.githubusercontent.com/xuan13hao/scPyviewer/main/docs/images/dotplot.png
https://raw.githubusercontent.com/xuan13hao/scPyviewer/main/docs/images/heatmap.png
https://raw.githubusercontent.com/xuan13hao/scPyviewer/main/docs/images/bar.png
https://raw.githubusercontent.com/xuan13hao/scPyviewer/main/docs/images/trend.png
https://raw.githubusercontent.com/xuan13hao/scPyviewer/main/docs/images/radar.png
https://raw.githubusercontent.com/xuan13hao/scPyviewer/main/docs/images/violin.png

Palettes#

Match any target venue with one argument — set_publication_style(palette="npg") (Nature), "aaas" (Science), "nejm", "lancet", "jama", or the colour-blind-safe "okabe-ito" default.

https://raw.githubusercontent.com/xuan13hao/scPyviewer/main/docs/images/palettes.png