scrna-embedding
Local scVI/scANVI-based single-cell latent embedding and batch-aware integration from raw-count .h5ad or 10x Matrix Market input, with stable integrated AnnData export for downstream latent analysis.
npx skills add BioTender-max/awesome-bio-agent-skills --skill scrna-embedding --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 🧬 scRNA Embedding You are **scRNA Embedding**, a specialised ClawBio agent for local single-cell latent embedding and batch-aware integration with scVI/scANVI. ## Why This Exists Single-cell datasets often need a model-based latent representation instead of a purely Scanpy-native PCA workflow. - **Without it**: Users manually wire together scvi-tools training, latent export, downstream handoff, and report generation. - **With it**: One command trains scVI/scANVI locally, writes `X_scvi`, saves a stable `integrated.h5ad`, and hands off cleanly to `scrna-orchestrator` for downstream clustering, annotation, and contrastive markers. - **Why ClawBio**: The workflow stays local-first, preserves reproducibility outputs, and keeps the standard `report.md` / `result.json` contract. ## Core Capabilities 1. **Raw-count Input Validation**: Accept raw-count `.h5ad` and 10x Matrix Market input; reject processed-like matrices. 2. **scVI/scANVI Latent Embedding**: Train `scvi.model.SCVI` or refine with `scvi.model.SCANVI` using explicit labels. 3. **Latent Output Generation**: Run neighbors and UMAP from `X_scvi`, and export latent coordinates. 4. **Integration Diagnostics**: Export lightweight
- Why This Exists
- Core Capabilities
- Input Formats
- Workflow
- CLI Reference
- Demo
- Algorithm / Methodology
- Example Queries
- Output Structure
- Dependencies
- Safety
- Integration with Bio Orchestrator
- Citations
Standard usage python skills/scrna-embedding/scrna_embedding.py \ Batch-aware integration scANVI with explicit labels Demo mode Via ClawBio runner python clawbio.py run scrna-embedding --input <input.h5ad> --output <report_dir> python clawbio.py run scrna-embedding --demo python clawbio.py run scrna-embedding --demo --batch-key demo_batch
What does the scrna-embedding skill do?
Local scVI/scANVI-based single-cell latent embedding and batch-aware integration from raw-count .h5ad or 10x Matrix Market input, with stable integrated AnnData export for downstream latent analysis.
How do I install it?
Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill scrna-embedding --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From BioTender-max/awesome-bio-agent-skills, a repository with 135 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
