SCLab¶
SCLab is an interactive single-cell RNA-seq analysis toolkit for Jupyter notebooks. It wraps AnnData and Scanpy with a reactive, widget-based dashboard so you can explore, preprocess, cluster, and visualize your data without leaving your notebook.
Features¶
- Interactive dashboard — tabbed layout with a live scatter plot, interactive tables, and a step-by-step analysis panel
- Standard scRNA-seq workflow — QC, normalization, PCA, batch integration, neighbors, UMAP, clustering, all in one place
- Doublet detection — Scrublet, DoubletDetection, scDblFinder
- Differential expression — pseudobulk analysis with edgeR or limma (optional R integration)
- Pseudotime & trajectory analysis — draw a path on the UMAP and let SCLab compute pseudotime
- Extensible — add custom analysis steps with a simple subclass API
Quick Start¶
import scanpy as sc
from sclab import SCLabDashboard
adata = sc.read_10x_h5("data.h5")
dashboard = SCLabDashboard(adata, name="My Analysis")
display(dashboard)
Then run the built-in steps in sequence from the sidebar panel:
- QC — filter cells and genes, inspect barcode rank plot
- Preprocess — normalize, log-transform, scale
- PCA — dimensionality reduction
- Neighbors — build the k-NN graph
- UMAP — 2D/3D embedding
- Cluster — Leiden clustering
Installation¶
See the Installation guide for full details including optional dependencies.