omicverse-reference-label-transfer
Installation
SKILL.md
OmicVerse Reference Label Transfer
Goal
Map labels from a reference AnnData onto a query AnnData by building a shared integrated space, training a weighted kNN transfer model, and writing predicted labels plus uncertainty scores back to the query object.
Treat harmony, scVI, and scanorama as alternative integration branches. They share the same query/reference contract, so keep them in one skill rather than splitting into thin wrappers.
Quick Workflow
- Start from a query
AnnDataand a referenceAnnDatathat share gene names. - Make sure the reference has a cell-type column such as
celltypeinadata_ref.obs. - If the data are already log-normalized, recover or restore counts before concatenating.
- Construct
ov.single.AnnotationRef(adata_query, adata_ref, celltype_key=...). - Run
preprocess(mode=...)on the combined object. - Choose one integration backend with
train(method=...). - Transfer labels with
predict(method=...). - Validate the method-specific prediction keys before plotting or writing outputs.