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
Targets scvi-tools 1.5.1. Examples are illustrative unless covered by the limited synthetic checks recorded in SKILL.md. Verify cell/feature alignment and modality measurement provenance before setup; missing measurements are not observed zeros.
Use raw RNA counts in a layer and raw protein counts in an .obsm DataFrame whose
index exactly matches adata.obs_names. Protein columns preserve antibody names.
import scvi
scvi.model.TOTALVI.setup_anndata(
adata, layer="counts", protein_expression_obsm_key="protein_expression",
batch_key="batch",
)
model = scvi.model.TOTALVI(adata)
model.train()
adata.obsm["X_totalVI"] = model.get_latent_representation()
rna_normalized, protein_normalized = model.get_normalized_expression(
n_samples=25, return_mean=True,
)
foreground_probability = model.get_protein_foreground_probability()
rna_de = model.differential_expression(
groupby="cell_type", group1="T cells", group2="B cells",
mode="change", use_field=["rna"],
)
protein_de = model.differential_expression(
groupby="cell_type", group1="T cells", group2="B cells",
mode="change", use_field=["protein"],
)
get_normalized_expression() returns a tuple (RNA, protein) and has no
protein_expression argument. transform_batch changes decoder conditioning;
it does not select the protein return. RNA library scaling and protein scaling
have distinct semantics (library_size versus scale_protein). Protein foreground
probability is a mixture probability, not protein abundance.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.