Skip to content
Agentmart
Submit a tool

scvi-tools

Train official scvi-tools models (scVI/scANVI/totalVI/PeakVI/MultiVI/veloVI) on raw counts after the scRNA gold chain.

Skill by HERRY423

IndexedApache-2.0★ 31
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/herry423-scvi-tools

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Train official scvi-tools models (scVI/scANVI/totalVI/PeakVI/MultiVI/veloVI) on raw counts after the scRNA gold chain. Use for probabilistic batch integration or those named models. Does not run DestVI/Cell2location. Do not log-normalize before setup_anndata.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/scvi-tools

What's inside

Skill name
scvi-tools
Description
Train official scvi-tools models (scVI/scANVI/totalVI/PeakVI/MultiVI/veloVI) on raw counts after the scRNA gold chain. Use for probabilistic batch integration or those named models. Does not run DestVI/Cell2location. Do not log-normalize before setup_anndata.
License
Apache-2.0
Instructions
53 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (24)

  • LICENSE.txt
  • SKILL.md
  • atac_peakvi.md · references/
  • batch_correction_sysvi.md · references/
  • citeseq_totalvi.md · references/
  • data_preparation.md · references/
  • environment_setup.md · references/
  • label_transfer.md · references/
  • multiome_multivi.md · references/
  • rna_velocity_velovi.md · references/
  • scarches_mapping.md · references/
  • scrna_integration.md · references/
  • spatial_deconvolution.md · references/
  • troubleshooting.md · references/
  • cluster_embed.py · scripts/
  • differential_expression.py · scripts/
  • hyperparam_search.py · scripts/
  • integrate_datasets.py · scripts/
  • model_utils.py · scripts/
  • prepare_data.py · scripts/
  • scvi_smoke.py · scripts/
  • train_model.py · scripts/
  • transfer_labels.py · scripts/
  • validate_adata.py · scripts/

SKILL.md (first lines)

# scvi-tools Deep Learning Skill

Train official scvi-tools models. Use **after** the scRNA gold chain (or on raw counts). Do not log-normalize before `setup_anndata`.

Pins and pitfalls live in `bionexus.versions` (`scvi-tools` 1.1+, train on counts only).

## When to Use This Skill

- When scvi-tools, scVI, scANVI, or related deep generative models are mentioned
- When deep learning-based batch correction or multi-study integration is needed
- When automated hyperparameter tuning is required for latent dimensions, layer depths, or learning rates
- When working with multi-modal data (CITE-seq, multiome)
- When reference mapping or label transfer is required
- When analyzing ATAC-seq or spatial transcriptomics data

---

## CLI Scripts

| Script | Purpose | Usage |
|--------|---------|-------|
| `prepare_data.py` | QC, filter, HVG selection | `python scripts/prepare_data.py raw.h5ad prepared.h5ad --batch-key batch` |
| `hyperparam_search.py` | Automated hyperparameter optimization | `python scripts/hyperparam_search.py prepared.h5ad results/ --model scvi --n-trials 20 --batch-key batch` |
| `train_model.py` | Train any scvi-tools model | `python scripts/train_model.py prepared.h5ad results/ --model scvi --batch-key batch` |
| `cluster_embed.py` | Neighbors, UMAP, Leiden | `python scripts/cluster_embed.py adata.h5ad results/` |
| `differential_expression.py` | Probabilistic DE analysis | `python scripts/differential_expression.py model/ adata.h5ad de.csv --groupby leiden` |
| `transfer_labels.py` | Label transfer with scANVI | `python scripts/transfer_labels.py ref_model/ query.h5ad results/` |
| `integrate_datasets.py` | Multi-dataset integration | `python scripts/integrate_datasets.py results/ data1.h5ad data2.h5ad` |
| `validate_adata.py` | Check data compatibility | `python scripts/validate_adata.py data.h5ad --batch-key batch` |
| `scvi_smoke.py` | 1-epoch scVI on `layers['counts']` | `python scripts/scvi_smoke.py prepared.h5ad -o smoke.h5ad` |

---

## Automated Hyperparameter Search (`scripts/hyperparam_search.py`)

Tune latent dimensions (`n_latent`), network depth (`n_layers`), hidden layer width (`n_hidden`), gene likelihood (`nb` vs `zinb`), and learning rates:

```bash
# Bayesian hyperparameter optimization with Optuna
python scripts/hyperparam_search.py prepared.h5ad tuning_results/ \
    --model scvi \
    --batch-key batch \
    --n-trials 20 \
    --epochs-per-trial 35 \
    --retrain-best
```

Outputs include:
- `hyperparam_tuning_summary.json`: Detailed trial records and best hyperparameter configuration
- `optimal_model/`: Saved scvi model trained with the best parameter combination
- `adata_optimal.h5ad`: AnnData annotated with optimal latent representations

From HERRY423/BioNexus, Apache-2.0.

Signals

Stars
31
Forks
4
Open issues
9
Last commit (this folder)
Aug 29, 2026 (2 months ago)
Last release
Aug 18, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from HERRY423

Cite this page

scvi-tools skill. Agent Mart. https://agentmart.dev/skills/herry423-scvi-tools (last updated 2026-10-24)