omicverse-cross-modal-celltype-transfer
CommunityCross-modal cell type labeling with weighted KNN.
AuthorStarlitnightly
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Transfers cell-type annotations from a reference AnnData to a query AnnData using a shared embedding, enabling cross-modal reuse of curated labels across datasets.
Core Features & Use Cases
- Weighted KNN transfer core: train with ov.utils.weighted_knn_trainer on the reference embedding and apply with ov.utils.weighted_knn_transfer to the query, obtaining predicted labels and uncertainties.
- Embedding flexibility: works with any shared embedding in .obsm (e.g., X_glue) and supports label_keys prefix matching to select the target annotation column.
- Writeback and visualization: write transf_celltype and transf_celltype_unc back to query.obs; optional visualization via embedding() for quick validation.
- Use cases: label an ATAC query from an RNA reference or convert OmicVerse cross-modal notebooks into reusable annotation workflows.
Quick Start
Train the KNN model on the reference embedding and transfer labels to the query using the trained model, then write back transf_celltype and transf_celltype_unc to the query AnnData.
Dependency Matrix
Required Modules
None requiredComponents
referencesassets
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: omicverse-cross-modal-celltype-transfer Download link: https://github.com/Starlitnightly/omicverse-skills/archive/main.zip#omicverse-cross-modal-celltype-transfer Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.