Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Corrects batch effects in PCA embeddings with Harmony for scRNA-seq and other omics using harmonypy, scanpy, or Seurat.
95% 100%+5 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 21 of 22 without it.
This test ran on v2. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Harmony is a fast, scalable algorithm for batch integration in single-cell data. It takes a PCA embedding (cells × PCs) as input and returns a corrected embedding from which batch effects have been regressed out via iterative soft-clustering and per-cluster linear regression. The corrected embedding is then used to compute neighbors, UMAP, and downstream clustering — the raw count matrix is never modified. Harmony works for single-cell RNA-seq, ATAC-seq, and other omics modalities where a PCA-like embedding is available.
sc.pl.*harmonypy, scanpy>=1.10, leidenalg, igraph, anndata, pandas, matplotlibharmony, Seurat>=4.0 (for R workflow in Step 7)adata.obs, and PCA embedding already computed (adata.obsm["X_pca"])pip install harmonypy "scanpy[leiden]" anndata pandas matplotlib
# R installation (for Step 7 / Seurat integration)
install.packages("harmony")
# If using Seurat:
install.packages("Seurat")
Settle these with the user before writing any analysis code.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.