harmony

Integrate single-cell datasets by removing batch effects with RunHarmony in R.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/CHENyiru3/AI-Skills-Collections --skill harmony
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: harmony
Source: https://github.com/CHENyiru3/AI-Skills-Collections/tree/main/skills-market/compbio/single-cell/integration/harmony
Command: npx skills add https://github.com/CHENyiru3/AI-Skills-Collections --skill harmony

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Harmony addresses batch effects in single-cell data by aligning datasets from different sources while preserving biological signals, enabling integrated analyses across conditions and technologies.

Core Features & Use Cases

  • Soft clustering and iterative alignment to remove batch effects while maintaining biology.
  • Works with Seurat objects in R; compatible with Python workflows via scanorama or bbknn.
  • Scales to large datasets (millions of cells) and supports multi-dataset integration across batches, technologies, and donors.

Quick Start

Install Harmony from CRAN or GitHub, load your Seurat objects, and run RunHarmony to integrate batches.

Frequently Asked Questions about harmony

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

FAQPage Schema
How do I remove batch effects in single-cell RNA-seq data while preserving biological variation?

Harmony removes batch effects in single-cell data by applying soft clustering and iterative alignment to align datasets from different sources while preserving biological signals. It enables integrated analyses across conditions and technologies.

How do I integrate multiple single-cell datasets in a Seurat workflow?

You can integrate multiple single-cell datasets in a Seurat workflow by loading your Seurat objects in R and running the RunHarmony function, which supports multiple grouping variables for multi-dataset integration across batches, technologies, and donors.

Can I use Harmony for single-cell data integration with Python tools?

Yes, Harmony works with Seurat objects in R and can be paired with Python tools such as scanorama or bbknn for cross-language pipelines, allowing flexible integration workflows across different programming environments.

Does Harmony scale to large single-cell datasets with millions of cells?

Harmony scales to large single-cell datasets containing millions of cells, applying soft clustering and iterative alignment to remove batch effects while maintaining biological signals across multi-dataset integration scenarios.

What parameters can I tune for single-cell batch correction with Harmony?

Harmony provides tunable parameters including theta, lambda, sigma, and max.iter.harmony for adjusting batch correction in single-cell data, allowing you to control the integration of datasets from different sources while preserving biological variation.

When do I need single-cell data integration for my analysis?

You need single-cell data integration when combining datasets from different sources, conditions, technologies, or donors. Harmony aligns these datasets by removing batch effects while preserving biological signals, enabling accurate integrated analyses across experiments.