omicverse-cross-modal-celltype-transfer
Installation
SKILL.md
OmicVerse Cross-Modal Cell Type Transfer
Goal
Transfer cell labels from a reference AnnData to a query AnnData using a shared latent space such as X_glue, then write predicted labels and uncertainty scores back to the query object. Keep this as one skill: the notebook's plots are optional presentation on top of the same transfer job, not a separate capability.
Quick Workflow
- Confirm the query and reference expose the same embedding basis in
.obsm, or fall back toX. - Confirm the reference has the target label column in
.obs. - Train
ov.utils.weighted_knn_trainer(...)on the reference embedding. - Transfer labels with
ov.utils.weighted_knn_transfer(...). - Store the first label column and uncertainty column in
query_adata.obs. - Plot on an existing basis for smoke validation; use
mdeonly ifpymdeis available.