single-cell-multi-omics-integration
БесплатноБез исполняемых скриптовНе проверенMulti-omics integration: MOFA factor analysis, GLUE unpaired alignment, SIMBA batch correction, TOSICA label transfer, StaVIA trajectory. Covers scRNA+scATAC…
Об этом скилле
Single-Cell Multi-Omics Integration
This skill covers OmicVerse's multi-omics integration tools for combining scRNA-seq, scATAC-seq, and other modalities. Each method addresses a different scenario—choose based on your data structure and analysis goal.
Method Selection Guide
Pick the right tool before writing any code:
| Scenario | Method | Key Class |
|---|---|---|
| Paired RNA + ATAC from same cells | MOFA directly | ov.single.pyMOFA |
| Unpaired RNA + ATAC (different experiments) | GLUE pairing → MOFA | ov.single.GLUE_pair → pyMOFA |
| Multi-batch single-modality integration | SIMBA | ov.single.pySIMBA |
| Transfer labels from annotated reference | TOSICA | ov.single.pyTOSICA |
| Trajectory on preprocessed multi-omic data | StaVIA | VIA.core.VIA |
Instructions
1. MOFA on paired multi-omics
Use MOFA when you have paired measurements (RNA + ATAC from the same cells). MOFA learns shared and modality-specific factors that explain variance across omics layers.
- Load each modality as a separate AnnData object
- Initialise
pyMOFAwith matchingomicsandomics_namelists - Run
mofa_preprocess()to select HVGs, thenmofa_run(outfile=...)to train - Inspect factors with
pyMOFAART(model_path=...)for correlation, weights, and variance plots - Dependencies:
mofapy2; CPU-only
2. GLUE pairing then MOFA
Use GLUE when RNA and ATAC come from different experiments (unpaired). GLUE aligns cells across modalities by learning a shared embedding, then MOFA identifies joint factors.
- Start from GLUE-derived embeddings (
.h5adfiles with embeddings in.obsm) - Build
GLUE_pairand callcorrelation()to match unpaired cells - Subset to HVGs and run MOFA as in the paired workflow
- Dependencies:
mofapy2,scglue,scvi-tools; GPU optional for MDE embedding
3. SIMBA batch integration
Use SIMBA for multi-batch single-modality data (e.g., multiple pancreas studies). SIMBA builds a graph from binned features and learns batch-corrected embeddings via PyTorch-BigGraph.
- Load concatenated AnnData with a
batchcolumn in.obs - Initialise
pySIMBA(adata, workdir)and run the preprocessing pipeline - Call
gen_graph()thentrain(num_workers=...)to learn embeddings - Apply
batch_correction()to get harmonised AnnData withX_simba - Dependencies: none (native
ov.ge.SIMBA, pure PyTorch -- nosimba/simba_pbginstall); GPU optional
4. TOSICA reference transfer
Use TOSICA to transfer cell-type labels from a well-annotated reference to a query dataset. TOSICA uses a pathway-masked transformer that also provides attention-based interpretability.
- Download gene-set GMT files with
ov.utils.download_tosica_gmt() - Initialise
pyTOSICAwith reference AnnData, GMT path, label key, and project path - Train with
train(epochs=...), save, then predict on query data - Dependencies: TOSICA (PyTorch transformer);
depth=1recommended (depth=2 doubles memory)
5. StaVIA trajectory cartography
Use StaVIA/VIA for trajectory inference on preprocessed data with velocity information. VIA computes pseudotime, cluster graphs, and stream plots.
- Preprocess with OmicVerse (HVGs, scale, PCA, neighbors, UMAP)
- Configure VIA with root selection, components, neighbors, and resolution
- Run
v0.run_VIA()and extract pseudotime fromsingle_cell_pt_markov - Dependencies:
scvelo,pyVIA; CPU-bound
Critical API Reference
MOFA: omics must be a list of separate AnnData objects
# CORRECT — each modality is a separate AnnData
mofa = ov.single.pyMOFA(omics=[rna_adata, atac_adata], omics_name=['RNA', 'ATAC'])
# WRONG — do NOT pass a single concatenated AnnData
# mofa = ov.single.pyMOFA(omics=combined_adata, omics_name=['RNA', 'ATAC']) # TypeError!
The omics list and omics_name list must have the same length. Each AnnData should contain cells from the same experiment (paired measurements).
SIMBA: preprocess() must run before gen_graph()
# CORRECT — preprocess first, then build graph
simba = ov.single.pySIMBA(adata, workdir)
simba.preprocess(batch_key='batch', min_n_cells=3, method='lib_size', n_top_genes=3000, n_bins=5)
simba.gen_graph()
simba.train(num_workers=6)
# WRONG — skipping preprocess causes gen_graph to fail
# simba.gen_graph() # KeyError: missing binned features
TOSICA: gmt_path must be an actual file path
# CORRECT — download GMT files first, then pass the file path
ov.utils.download_tosica_gmt()
tosica = ov.single.pyTOSICA(adata=ref, gmt_path='genesets/GO_bp.gmt', ...)
# WRONG — passing a database name string instead of file path
# tosica = ov.single.pyTOSICA(adata=ref, gmt_path='GO_Biological_Process', ...) # FileNotFoundError!
MOFA HDF5: outfile directory must exist
import os
os.makedirs('models', exist_ok=True) # Create output directory first
mofa.mofa_run(outfile='models/rna_atac.hdf5')
Defensive
Установить single-cell-multi-omics-integration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл single-cell-multi-omics-integration?
Multi-omics integration: MOFA factor analysis, GLUE unpaired alignment, SIMBA batch correction, TOSICA label transfer, StaVIA trajectory. Covers scRNA+scATAC paired/unpaired workflows.
Как установить скилл single-cell-multi-omics-integration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл single-cell-multi-omics-integration запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic