celltype-annotation-scANVI

Transfer cell-type labels from scRNA-seq reference to spatial data using scANVI.

3|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/chenyhvvvv/STAT-agent --skill celltype-annotation-scanvi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: celltype-annotation-scANVI
Source: https://github.com/chenyhvvvv/STAT-agent/tree/main/stat_agent/skills/celltype-annotation-scANVI
Command: npx skills add https://github.com/chenyhvvvv/STAT-agent --skill celltype-annotation-scanvi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires scanpy, anndata, scvi-tools.

What problem does it solve?

Annotates spatial transcriptomics cells by transferring labels from a reference scRNA-seq dataset using scANVI, reducing manual annotation effort and enabling scalable analysis.

Core Features & Use Cases

  • Transfer cell type labels from reference to spatial data using scANVI.
  • Handle cross-dataset integration with HVG selection, gene matching, and batch correction.
  • Use case: annotate a spatial dataset with known cell types to study tissue architecture.

Quick Start

Load a spatial AnnData object and a labeled reference, then call annotate_celltype_scvi with the spatial data and reference to obtain per-cell type predictions.

Frequently Asked Questions about celltype-annotation-scANVI

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I annotate spatial transcriptomics cells using a reference scRNA-seq dataset?

To annotate spatial transcriptomics cells, this Skill uses scANVI to transfer cell type labels from a labeled scRNA-seq reference dataset to your spatial data. It leverages scvi-tools and scanpy to train a model and generate per-cell type predictions for spatial data.

What is scANVI transfer learning for cell-type annotation?

scANVI transfer learning for cell-type annotation is a semi-supervised approach that uses a labeled scRNA-seq dataset to predict cell types in an unlabeled spatial transcriptomics dataset. It reduces manual annotation effort by transferring known labels across datasets.

Do I need to match gene names between scRNA-seq and spatial data for scANVI annotation?

Yes, matching gene names between your scRNA-seq and spatial datasets is required for scANVI annotation. The process relies on common gene matching across datasets, combined with highly variable gene selection, to ensure accurate cross-dataset integration.

Can I use scANVI to handle batch effects when integrating scRNA-seq and spatial transcriptomics data?

Yes, you can use scANVI to handle batch effects when integrating scRNA-seq and spatial transcriptomics data. The Skill supports batch handling during model training and inference to improve cross-dataset integration and cell-type prediction accuracy.

What are the limitations of using scANVI for spatial transcriptomics cell-type annotation?

Limitations of using scANVI for spatial transcriptomics annotation include the strict requirement for a labeled reference scRNA-seq dataset and exact gene name matching. Without these prerequisites, the transfer learning model cannot produce per-cell type predictions.