single-cell-clustering-and-batch-correction-with-omicverse

Performs end-to-end cell clustering and batch correction on AnnData using OmiVerse utilities.

32|5|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/omicverse/omicclaw --skill single-cell-clustering-and-batch-correction-with-omicverse-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/omicverse/omicclaw/tree/main/src/omicverse_skills/skills/single-clustering
Command: npx skills add https://github.com/omicverse/omicclaw --skill single-cell-clustering-and-batch-correction-with-omicverse-omicverse

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Researchers often struggle to preprocess single-cell data, compare clustering methods, and correct batch effects to derive robust cell states.

Core Features & Use Cases

  • Compare clustering methods: Leiden, Louvain, scICE, GMM to identify robust groupings across batches.
  • Batch correction and integration: Harmony, scVI, BBKNN, Combat to harmonize datasets for downstream analysis.
  • Advanced modeling options: topic modeling (LDA) and cNMF to uncover programs and cell programs; real-world use includes benchmarking and explainable clustering.
  • Use Case: A developer wants to benchmark clustering stability across datasets with known annotations and evaluate ARI improvements after correction.

Quick Start

Preprocess your AnnData, run Leiden, Louvain, scICE, and GMM clustering, apply batch correction with Harmony or scVI, and report ARI and visualizations.

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 single-cell clustering and batch correction on AnnData?

You can perform single-cell clustering and batch correction on AnnData by applying preprocessing, feature selection, and neighbourhood graph construction, followed by methods like Leiden, Louvain, scICE, or GMM clustering alongside Harmony, scVI, BBKNN, or Combat integration.

What is the best way to compare clustering methods like Leiden and Louvain across batches?

Comparing clustering methods across batches involves applying Leiden, Louvain, scICE, and GMM strategies to identify robust groupings, then evaluating clustering stability and ARI improvements against reference labels after applying batch correction.

Can I use Harmony and scVI together for single-cell batch integration?

Yes, you can use batch integration methods like Harmony, scVI, BBKNN, and Combat to harmonize datasets. The workflow supports comparing these strategies to evaluate ARI improvements and visualize embeddings against reference labels.

Does single-cell clustering with OmicVerse require preserving raw data?

Single-cell clustering with OmicVerse requires reproducible workflows including data preservation by saving to adata.raw. It also performs scalable preprocessing and defensive checks for dependencies before applying clustering and batch correction.

When do I need batch correction for single-cell clustering?

You need batch correction for single-cell clustering when combining multiple datasets to remove technical variation. Applying Harmony, scVI, BBKNN, or Combat ensures robust cell states are derived by harmonizing data before downstream analysis and evaluation.

Can I apply topic modeling alongside single-cell clustering and batch correction?

Yes, alongside clustering and batch correction, you can apply advanced modeling options like topic modeling (LDA) and cNMF to uncover underlying cell programs, which supports benchmarking and explainable clustering within your analysis.