pharmolix/openbiomed/single-cell-multi-omics-data-harmonization
Claude Code and agent skill by pharmolix/openbiomed
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install pharmolix/openbiomed/single-cell-multi-omics-data-harmonizationSKILL.md
The same SKILL.md was published earlier as pharmolix/openbiomed/single-cell-multi-omics-data-harmonization.
Multi-Omics Data Harmonization
Prepare your RNA-seq, proteomics, methylation, and other omics datasets for joint integration by applying per-assay normalization, cross-assay batch correction, feature ID alignment, and missing value handling.
This is Step 1 of the multi-omics integration pipeline — all downstream skills (MOFA, DIABLO, SNF) depend on clean, consistently scaled output from this step.
What it does
- Loads each omics layer into a unified container (MultiAssayExperiment in R; MuData in Python)
- Applies the correct normalization strategy per data type:
- RNA-seq counts → VST (DESeq2)
- Proteomics LFQ intensity → log2 + median centering
- Methylation β-values → M-value transformation: log2(β / 1−β)
- ATAC-seq peaks → log1p(CPM); miRNA → log2(CPM + 1)
- Generates PCA plots before batch correction to visualize batch structure
- Applies ComBat batch correction across assays, preserving biological condition signal
- Generates PCA plots after correction to confirm batch removal
- Maps protein UniProt IDs and methylation probe IDs to HGNC gene symbols via Ensembl BioMart
- Filters features with > 30% missing values, then imputes remaining NAs with MinProb
- Z-scores all features and exports as
.rds,.h5mu, and.csvfor all downstream tools
Why this exists
If you ask a general AI to "prepare my multi-omics data for integration," it will:
- Apply the same normalization to all data types (wrong — RNA counts need VST; methylation needs M-value transformation, not log2)
- Run ComBat without checking for batch–condition confounding, silently removing biological signal
- Skip feature ID alignment, leaving protein UniProt IDs unmapped to gene symbols
- Not generate PCA plots to verify batch correction worked
- Export data in a format incompatible with MOFA, DIABLO, or SNF
This skill encodes the correct methodological decisions:
- Uses VST for RNA, log2+median centering for protein, and M-value for methylation — each chosen for statistical properties of that data type
- Checks
table(Batch, Condition)before ComBat to detect confounding - Aligns all features to HGNC gene symbols via Ensembl BioMart for cross-omics compatibility
- Filters high-missingness features before imputation to avoid noise amplification
- Exports in both R (
.rds) and Python (.h5mu) formats for full downstream flexibility
Reference Methods
Normalization:
| Data type | Method | Reason | |
|---|---|---|---|
| RNA-seq raw counts | VST (DESeq2) | Stabilizes variance across expression range | |
| Proteomics LFQ | log2 + median centering | Removes systematic MS run shifts | |
| Methylation β-value | M-value: log2(β / 1−β) | Homoscedastic; better for linear models | |
| ATAC-seq peaks | log1p(CPM) | Accounts for library size | |
| miRNA counts | log2(CPM + 1) | Handles sparse counts |
Batch correction: ComBat (Johnson et al., 2007) — parametric empirical Bayes, robust for small sample sizes. Requires ≥ 2 samples per batch per condition.
Feature alignment: Ensembl BioMart REST API — maps UniProt accessions and Illumina probe IDs to HGNC gene symbols for cross-omics feature matching.
Missing value imputation: MinProb — samples replacement values from a low-intensity distribution, appropriate for proteomics data Missing Not At Random (MNAR) patterns.
Usage (R)
Usage (Python — muon)
Example Output
Interpretation Guide
- PCA before correction: Samples should separate by Batch on PC1/PC2 if a batch effect is present — this confirms ComBat is necessary
- PCA after correction: Batch structure should disappear; samples should now separate by Condition instead
- If batch and condition are confounded (e.g., all disease samples in Batch 1): skip ComBat — it will remove the biological signal you want to keep
- Protein missingness > 30%: features exceeding this threshold are filtered, not imputed — imputing very sparse features introduces more noise than signal
- M-value vs β-value: M-values are statistically preferable for downstream modelling (homoscedastic); β-values (0–1 range) are more interpretable for visualization — keep both if needed
Citation
If you use this skill in a publication, please cite:
- Johnson, W.E. et al. (2007). Adjusting batch effects in microarray expression data using empirical Bayes methods. Biostatistics, 8(1), 118–127.
- Ramos, M. et al. (2017). Software for the integration of multiomics experiments in Bioconductor. Cancer Research, 77(21), e39–e42. (MultiAssayExperiment)
- Love, M.I. et al. (2014). Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2. Genome Biology, 15, 550.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/single-cell-multi-omics-data-harmonization/SKILL.md
Popularity
- Repository stars
- 1,105
- Repository forks
- 132
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pharmolix/openbiomed/single-cell-multi-omics-data-harmonization)