scvi-tools

Integrate and analyze single-cell genomics data with scvi-tools pipelines.

1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/ilove323/comlan-skills --skill scvi-tools-ilove323
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scvi-tools
Source: https://github.com/ilove323/comlan-skills/tree/main/bio-research/skills/scvi-tools
Command: npx skills add https://github.com/ilove323/comlan-skills --skill scvi-tools-ilove323

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires scvi-tools, scanpy, numpy, pandas, matplotlib, scvelo, mudata, scikit-learn, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Integrates and analyzes diverse single-cell genomics datasets using deep generative models so researchers can perform robust batch correction, label transfer, multi-modal integration, and downstream analyses without bespoke model engineering.

Core Features & Use Cases

  • Model selection guidance for scVI, scANVI, totalVI, PeakVI, MultiVI, DestVI, veloVI and sysVI to match data modality and analysis goals.
  • End-to-end workflows: data preparation, HVG selection, setup_anndata conventions, model training, latent extraction, clustering, and differential testing.
  • Multi-modal & reference mapping: CITE-seq denoising with totalVI, RNA+ATAC joint analysis with MultiVI, reference mapping and label transfer via scANVI/scArches.
  • Operational tooling: command-line scripts for prepare_data, train_model, integrate_datasets, cluster_embed, differential_expression, validate_adata, and transfer_labels to standardize pipelines.
  • Guides and troubleshooting: environment setup, GPU guidance, version compatibility, and model-specific troubleshooting notes for reproducible results.

Quick Start

Run the prepared AnnData through the scvi-tools pipeline to train scVI or scANVI (if labels exist), extract the latent embedding, and generate clustered results for downstream interpretation.

Frequently Asked Questions about scvi-tools

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

FAQPage Schema
How do I perform batch correction on scRNA-seq data using deep learning?

Batch correction on scRNA-seq data uses deep generative models like scVI to integrate cell-by-gene matrices, requiring raw integer counts in AnnData format and setup_anndata conventions to extract latent embeddings for clustering.

Can I transfer labels from a reference dataset to a new single-cell query?

Yes, label transfer from a reference to a new single-cell query uses scANVI and scArches to map and annotate new datasets, requiring pre-trained models and raw integer count inputs in AnnData or MuData formats.

What is the best way to integrate CITE-seq and scATAC-seq multi-modal data?

Multi-modal integration of CITE-seq and scATAC-seq data uses totalVI and MultiVI to jointly analyze RNA and protein or RNA and ATAC matrices, requiring MuData formats for multi-modal setup and deep generative model training.

How do I run differential expression after single-cell dataset integration?

Differential expression after single-cell dataset integration requires extracting latent embeddings from a trained scVI or scANVI model, then using downstream clustering tools to perform differential testing on the corrected cell-by-gene matrices.

Do I need raw counts or normalized data for scvi-tools single-cell analysis?

scvi-tools single-cell analysis requires raw integer count inputs in AnnData or MuData formats, not normalized data, ensuring the deep generative models correctly process cell-by-gene matrices for integration and denoising.

Which model should I choose for spatial transcriptomics and velocity analysis?

For spatial transcriptomics and velocity analysis, DestVI and veloVI provide specialized deep generative workflows, requiring appropriate setup_anndata calls and scientific Python packages like scvelo to extract biological embeddings.