scvi-framework

Route scvi-tools model selection and enforce shared data contracts across scvi-* models.

1|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/tony-zhelonkin/SciAgent-toolkit --skill scvi-framework
Or copy as Structured Prompt for Agentβ–Ό
Please help me install this Agent Skill.
Skill: scvi-framework
Source: https://github.com/tony-zhelonkin/SciAgent-toolkit/tree/main/skills/scvi-framework
Command: npx skills add https://github.com/tony-zhelonkin/SciAgent-toolkit --skill scvi-framework

SYSTEM DOCUMENTATION & REQUIREMENTS

πŸ’‘ This Skill requires anndata, numpy, scipy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Streamlines cross-model workflow in scvi-tools by routing to the appropriate child skill (e.g., scvi-basic, scvi-scanvi, scvi-multivi) and enforcing a shared training contract.

Core Features & Use Cases

  • Model-selection router: directs analysis to the appropriate scvi-* child skill based on data and goals.
  • Shared contract enforcement: standardizes setup_anndata β†’ train β†’ get_latent_representation β†’ save/load across models.
  • Cross-cutting references & templates: links to common references, interoperability guidelines, and verification steps to ensure compatibility.
  • Extensible with child skills: supports new scvi-* variants by overriding local concerns while reusing shared components.

Quick Start

Install scvi-tools and follow the framework's router to select a child model, run setup_anndata, train, and obtain latent representations.

Frequently Asked Questions about scvi-framework

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

FAQPage Schema
How do I route my single-cell analysis to the right scvi-tools model?β–Ό

To route your single-cell analysis, this framework directs your data to the appropriate scvi-* child model based on your specific dataset and analysis goals. It automates model selection by enforcing a shared training contract across all available scvi-tools variants.

What is the standard data contract for scvi-tools model interoperability?β–Ό

The standard data contract for scvi-tools interoperability requires child models to implement a strict setup_anndata, train, get_latent_representation, and save/load sequence. This shared contract standardizes workflows and ensures seamless compatibility across multiple single-cell omics models.

How do I get latent representations from anndata using scvi-tools?β–Ό

To get latent representations from anndata, the framework enforces a standardized workflow: run setup_anndata, train the selected scvi-* model, and call get_latent_representation. This sequence ensures consistent latent space extraction across all routed single-cell models.

Can I add a new custom scvi-* model variant to this single-cell workflow?β–Ό

Yes, you can add custom scvi-* model variants to the workflow. The framework is extensible, allowing new child skills to override local concerns while reusing shared components and adhering to the standard setup_anndata, train, and save/load contract for full interoperability.

Do I need anndata and numpy to use scvi-framework for single-cell omics?β–Ό

Yes, you need anndata, numpy, and scipy installed to use this framework. These dependencies are required to manage single-cell omics data structures and execute the shared model training contract across the routed scvi-tools variants.

What pre-train checks are enforced for scvi-tools model selection?β–Ό

For scvi-tools model selection, the framework applies pre-train checks and validation utilities to ensure your anndata input meets the shared data contract. These cross-cutting references and verification steps confirm compatibility before routing to a child model for training.