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. These source-verified examples are illustrative; short PEAKVI/POISSONVI CPU fits and accessibility output shapes were tested. Genome downloads, SCBASSET training and motif inference were not executed.
Use a consistent genome assembly, genomic regions and feature order across samples. Apply assay-specific cell QC (library size, TSS enrichment, fragment length, blacklist regions) and remove poorly supported peaks before setup. Do not indiscriminately remove sex-chromosome peaks when sex-linked biology is relevant.
import scvi
# atac_adata: cells by peaks; layer counts contains measured accessibility counts.
scvi.model.PEAKVI.setup_anndata(atac_adata, layer="counts", batch_key="batch")
peakvi = scvi.model.PEAKVI(atac_adata, n_latent=20)
peakvi.train()
atac_adata.obsm["X_PeakVI"] = peakvi.get_latent_representation()
accessibility = peakvi.get_normalized_accessibility()
da = peakvi.differential_accessibility(
groupby="cell_type", group1="TypeA", group2="TypeB",
mode="change", delta=0.05,
)
PEAKVI models binarized accessibility, so input counts do not make it a quantitative
fragment model. get_normalized_accessibility() returns accessibility probabilities,
optionally with cell/region normalization choices. It is not named
get_accessibility_estimates. n_hidden and n_latent default to None and are
inferred from feature count; encoder and decoder each default to two layers
(n_layers_encoder, n_layers_decoder), not a single n_layers option.
get_region_factors() exposes the learned region factors when enabled.
# fragment_adata contains region-level fragment counts, not raw fragments.tsv rows.
scvi.external.POISSONVI.setup_anndata(
fragment_adata, layer="counts", batch_key="batch",
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.