install
source · Clone the upstream repo
git clone https://github.com/mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills-
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills- "$T" && mkdir -p ~/.claude/skills && cp -r "$T/Skills/Genomics/Single_Cell/rna-velocity" ~/.claude/skills/mdbabumiamssm-llms-universal-life-science-and-clinical-skills-rna-velocity && rm -rf "$T"
manifest:
Skills/Genomics/Single_Cell/rna-velocity/SKILL.mdsource content
<!--
# COPYRIGHT NOTICE
# This file is part of the "Universal Biomedical Skills" project.
# Copyright (c) 2026 MD BABU MIA, PhD <md.babu.mia@mssm.edu>
# All Rights Reserved.
#
# This code is proprietary and confidential.
# Unauthorized copying of this file, via any medium is strictly prohibited.
#
# Provenance: Authenticated by MD BABU MIA
-->
name: rna-velocity description: Infer transcriptional dynamics from spliced/unspliced layers using scVelo with latent time, driver gene ranking, and velocity graph exports. measurable_outcome: Deliver annotated .h5ad files containing velocity layers, latent time, confidence metrics, and ranked driver genes with Markdown + PNG diagnostics. allowed-tools:
- read_file
- run_shell_command
- python reliability:
- source: https://github.com/theislab/scvelo score: 0.93 rationale: >- Canonical scVelo implementation maintained by Theis Lab with validated dynamical/stochastic models and active release cadence.
- source: https://github.com/scverse/single-cell-best-practices score: 0.90 rationale: >- Community maintained best-practices playbook from the scverse consortium covering velocity QC, parameter defaults, and benchmarking datasets.
At-a-Glance
- description (10-20 chars): Velocity mapper
- keywords: scRNAseq, velocity, scVelo, latent-time, kinetics
Workflow
- Input audit – Accept
or.h5ad
matrices with.loom
/layers['spliced']
. Validate counts (non-negative) and gene overlap.layers['unspliced'] - Preconditioning – Apply
andscv.pp.filter_and_normalize(min_shared_counts=30, n_top_genes=4000)
to stabilize kinetics as recommended by scVelo maintainers.scv.pp.moments(n_pcs=30, n_neighbors=30) - Model selection – Default to
; auto-fallback tomode="dynamical"
if latent time convergence stalls (>30 iterations without likelihood improvement).stochastic - Velocity graph + confidence – Run
andscv.tl.velocity_graph
, persisting matrices plus summary stats (min/median confidence, percent of cells >0.4).scv.tl.velocity_confidence - Latent time + drivers – Execute
andscv.tl.recover_dynamics
, thenscv.tl.latent_time
with CSV/JSON exports of top regulators.scv.tl.rank_velocity_genes(groupby="leiden") - Visualization bundle – Render
,velocity_embedding_stream
, and per-gene phase portraits for reviewer traceability.velocity_embedding_grid
Guardrails
- Fail fast if
missing or if >20% sparsity after normalization indicates invalid loom conversion.layers - Never overwrite raw
; write.h5ad
plus*_velocity.h5ad
capturing parameters + git hash of scVelo commit.result.json - Document heuristics when trimming divergences (e.g., driver gene count, MT filtering) inside the markdown report for FDA audit trails.
Integration Hooks
- Upstream:
,scrna-qc
, doublet workflows.sc-batch-integration - Downstream: trajectory agents, ligand-receptor analysis, spatial velocity coupling.
References
- scVelo GitHub issues/wiki for parameter defaults and troubleshooting.
- scverse best-practices notebook for velocity QC decision trees.