Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Fits probabilistic scvi-tools models for single-cell omics: batch integration, annotation, CITE-seq, RNA/ATAC, and differential expression.
59% 95%+36 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 13 of 22 without it.
This test ran on v2. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Upstream moved ongoing maintenance of DestVI, Stereoscope, Tangram, GIMVI, SCVIVA, RESOLVI and DIAGVI to scVIVA-tools starting with scvi-tools 1.5. The classes below remain in 1.5.1; these source-verified examples support existing pinned workflows and were not biologically validated. For new spatial analyses, check the companion package's current API rather than assuming these namespaces will persist. No spatial model fitting was executed in this refresh.
Keep measured counts for count-based spatial models, unique gene IDs, cell/spot IDs, spatial coordinates and slide/library metadata. Align reference and spatial genes before training a reference that will be transferred. Merely having some gene overlap is insufficient when a method expects identical columns.
# sc_adata and spatial_adata already contain measured layers['counts'].
assert sc_adata.var_names.is_unique and spatial_adata.var_names.is_unique
shared = sc_adata.var_names[sc_adata.var_names.isin(spatial_adata.var_names)]
assert len(shared) > 0
sc_adata = sc_adata[:, shared].copy()
spatial_adata = spatial_adata[:, shared].copy()
assert sc_adata.var_names.equals(spatial_adata.var_names)
Choose informative shared genes and check reference cell types/assays and spatial
QC, not just a nonzero overlap count. Load spatial data with the current reader for
the assay; preserve coordinates and image scale metadata. Do not assume a Visium
reader creates a counts layer. Independent slides need separate spatial neighborhoods.
from scvi.model import CondSCVI, DestVI
CondSCVI.setup_anndata(sc_adata, layer="counts", labels_key="cell_type")
reference = CondSCVI(sc_adata, weight_obs=False)
reference.train(max_epochs=300)
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.