Single-cell clustering and batch correction with omicverse

Cluster and batch-correct single-cell AnnData objects with omicverse.

1.2k|145|Updated Mar 22, 2021
One-click install
npx skills add https://github.com/Starlitnightly/omicverse --skill single-cell-clustering-and-batch-correction-with-omicverse
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: Single-cell clustering and batch correction with omicverse
Source: https://github.com/Starlitnightly/omicverse/tree/main/.claude/skills/single-clustering
Command: npx skills add https://github.com/Starlitnightly/omicverse --skill single-cell-clustering-and-batch-correction-with-omicverse

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires omicverse, scanpy, scvelo, numpy, pandas, matplotlib, statsmodels, scib-metrics, scvi-tools, rpy2, and includes references (resource) components.

What problem does it solves? Analyzing single-cell data often involves complex preprocessing, robust clustering, and correcting for technical batch effects. This Skill provides a comprehensive workflow to handle these challenges efficiently, from initial quality control to advanced integration and clustering.

Core Features & Use Cases

  • Quality Control & Preprocessing: Filter low-quality cells, normalize, scale, and reduce dimensionality.
  • Multi-Method Clustering: Apply and evaluate various clustering algorithms (Leiden, scICE, GMM, cNMF, LDA).
  • Batch Correction & Integration: Harmonize datasets using methods like Harmony, ComBat, Scanorama, scVI, and CellANOVA.
  • Use Case: Process a multi-batch single-cell RNA-seq experiment, apply Harmony for batch correction, then cluster the integrated data using scICE, and benchmark the integration performance to ensure robust biological insights.

Quick Start

Preprocess my single-cell data, apply Harmony for batch correction, then cluster using Leiden, and visualize the UMAP embedding.

Frequently Asked Questions about Single-cell clustering and batch correction with omicverse

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform batch correction on single-cell RNA-seq data?▼

Batch correction removes technical variations across datasets using methods like Harmony, ComBat, Scanorama, scVI, or CellANOVA. This Skill automates preprocessing, integration, and evaluation to harmonize multi-batch single-cell data while preserving biological signal in AnnData objects.

What clustering methods are available for single-cell analysis?▼

Single-cell clustering supports multiple algorithms: Leiden, Louvain, scICE, Gaussian mixture models, topic modeling, and cNMF. This Skill applies and evaluates each method on preprocessed data, enabling comparison across clustering strategies to identify robust cell populations.

Can I use omicverse with scanpy for quality control and dimensionality reduction?▼

Yes. This Skill integrates omicverse with scanpy to filter low-quality cells, normalize, scale, and reduce dimensionality via PCA. It builds neighborhood graphs and enforces reproducible workflows through dependency checks and checkpointing for resumable analysis.

How do I benchmark batch correction performance across cohorts?▼

This Skill evaluates batch correction using scib-metrics to assess integration quality across cohorts. It quantifies whether corrected batches preserve biological structure while removing technical effects, ensuring robust insights from multi-batch single-cell experiments.

What input format does single-cell clustering require?▼

Single-cell clustering operates on omicverse-enabled AnnData objects containing expression matrices. Preprocessing steps—filtering, normalization, scaling—prepare raw count data for neighborhood graph construction and clustering method application.

Why use multiple clustering methods instead of one?▼

Different clustering algorithms capture distinct cell populations and topologies. Applying Leiden, scICE, GMM, and cNMF reveals consensus clusters and identifies algorithm-specific insights, improving confidence in cell type annotation and biological interpretation.