scrna-embedding

Integrate single-cell data with scVI and export latent embeddings to .h5ad.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/ya-way/cytoclaw-skills --skill scrna-embedding
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: scrna-embedding
Source: https://github.com/ya-way/cytoclaw-skills/tree/main/workspace/skills/scrna-embedding
Command: npx skills add https://github.com/ya-way/cytoclaw-skills --skill scrna-embedding

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pandas, scanpy, anndata, scvi-tools, scikit-learn, matplotlib.

What problem does it solve?

Automates end-to-end local scVI-based embedding and batch-aware integration for single-cell datasets, producing a stable integrated AnnData for downstream analysis.

Core Features & Use Cases

  • Local scVI-based latent embedding from raw-count data (h5ad) or 10x Matrix Market inputs.
  • Batch-aware integration with optional batch keys, latent space export (X_scvi), and downstream plotting.
  • Produces a reproducibility bundle including commands, environment, and checksums for traceable results.

Quick Start

Run scrna-embedding on a raw-count .h5ad or 10x matrix to generate a stable integrated artifact and latent embeddings.

Frequently Asked Questions about scrna-embedding

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run scVI batch integration on raw single-cell counts from an h5ad file?▼

To run scVI batch integration on raw single-cell counts, use this Skill to enforce QC, select highly variable genes, train the scVI model, and export an integrated .h5ad file with latent embeddings attached.

What is batch-aware latent space embedding for single-cell data?▼

Batch-aware latent space embedding for single-cell data uses scVI to project raw counts into a latent representation that removes technical batch effects while preserving biological variance for downstream analysis.

Can I use 10x Matrix Market files as input for scVI embedding?▼

Yes, you can use 10x Matrix Market files as input for scVI embedding. The Skill accepts raw-count data from 10x matrices or h5ad files to generate latent embeddings and an integrated AnnData artifact.

Does scVI integration require specifying a batch key for multiple single-cell samples?▼

scVI integration supports optional batch keys for multiple single-cell samples. Providing a batch key enables the model to perform batch-aware correction, aligning distinct samples into a unified latent space.

What artifacts are generated after training an scVI model on AnnData?▼

After training an scVI model on AnnData, the Skill generates an integrated .h5ad file, latent embeddings stored in X_scvi, and a reproducibility bundle containing commands, environment details, and checksums.

Why are my scVI latent embeddings not aligning different batches in single-cell analysis?▼

If scVI latent embeddings are not aligning different batches, the raw single-cell counts may lack proper QC or a valid batch key. The Skill enforces QC and HVG selection to ensure stable batch-aware integration.