Skip to content
Back to skills

Downstream Analysis

ASecurity

"Use trained scvi-tools models for latent embeddings, normalized

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
businesspythongoexpressapi

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill downstream-analysis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Downstream Analysis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Downstream Analysis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-downstream-analysis/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-downstream-analysis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: downstream-analysis
description: "Use trained scvi-tools models for latent embeddings, normalized
  expression/protein/accessibility, imputation-like posterior outputs,
  differential expression/abundance/accessibility/methylation, feature
  correlations, posterior predictive checks, criticism, and simulation outputs."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# downstream-analysis

Use this sub-skill after a scvi-tools model is constructed and trained, and the task is to extract biological results or quality checks from the fitted posterior.

## Fast Routing

- Need embeddings, denoised values, imputation-like predictions, counterfactual batch conditioning, or posterior predictive samples: read [workflows](references/workflows.md).
- Need exact method names, key parameters, return shapes, or model-family support: read [API reference](references/api-reference.md).
- Need differential expression, abundance, accessibility, methylation, or group/boolean selection behavior: read [workflows](references/workflows.md) and [API reference](references/api-reference.md).
- Need posterior predictive checks or a criticism report for one or more trained models: read [workflows](references/workflows.md).
- Need to debug untrained models, wrong model families, missing categories, invalid gene/region/protein lists, batch conditioning, or memory issues: read [troubleshooting](references/troubleshooting.md).

## Boundaries

- Use data-setup for AnnData/MuData construction, `setup_anndata`, `setup_mudata`, count layers, and registry validation before model creation.
- Use core-models or multimodal-and-spatial for choosing model families and modality-specific setup.
- Use training-and-inference for `.train(...)`, accelerators, callbacks, checkpoints, and long-running inference settings.
- Use model-io-and-hub for saving/loading models or publishing artifacts.

## Minimal Patterns

```python
latent = model.get_latent_representation()
adata.obsm["X_scvi"] = latent

normalized = model.get_normalized_expression(gene_list=["MALAT1"], return_numpy=False)
de = model.differential_expression(groupby="cell_type", group1="B cells", group2="T cells")
```

Validate that the model is trained, the requested method exists on that model family, all `groupby`/`sample_key` categories exist in `.obs`, and feature lists match `adata.var_names`, region names, or protein names before running expensive posterior sampling.

Files in this skill

  • SKILL.md2.4 KB
  • references/api-reference.md7.9 KB
  • references/troubleshooting.md6.4 KB
  • references/workflows.md7.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.