omicverse/omicverse-skills/single-cell-lda-topic-clustering
Claude Code and agent skill by omicverse/omicverse-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Run OmicVerse single-cell LDA topic clustering with the MIRA backend as a reusable, triggerable skill. Use when fitting topic models on count-like AnnData, choosing between in-memory and on-disk execution, or converting topic assignments into hard cluster labels and RFC-based labels.
Install
npx vskill@latest install omicverse/omicverse-skills/single-cell-lda-topic-clusteringSKILL.md
OmicVerse Single-Cell LDA Topic Clustering
Goal
Turn the notebook's MIRA-backed topic modeling section into a reusable job: fit an LDA topic model on count-like single-cell data, predict topic usage, and optionally derive hard cluster labels or RFC-based labels.
Quick Workflow
- Inspect whether the data still has a count layer and a highly-variable-feature flag.
- Choose
feature_type,learning_rate, and whether to runondisk=Falseorondisk=True. - Construct
LDA_topic(...), then decide how many topics to fit. - Run
predicted(num_topics=...)to createLDA_cluster. - If the user wants harder classification on an embedding, run
get_results_rfc(...)with explicituse_repandLDA_threshold.
Interface Summary
ov.utils.LDA_topic(adata, feature_type='expression', highly_variable_key='highly_variable_features', layers='counts', batch_key=None, learning_rate=0.001, ondisk=False)constructs the wrapper.- The documented
feature_typebranch is modality-sensitive; current docs describe at leastexpressionandaccessibility. ondisk=Falsekeeps training data in memory.ondisk=Truewrites local training and test datasets before tuning and fitting.predicted(num_topics=6)fits the model with the chosen topic count, predicts topic usage, and writesLDA_cluster.get_results_rfc(adata, use_rep='X_pca', LDA_threshold=0.5, num_topics=6)trains tree-based classifiers on high-confidence topic assignments and writesLDA_cluster_rfcandLDA_cluster_clf.
Stage Selection
- Use the plain
predicted(...)path when the user wants one topic-to-cluster projection without extra classifiers. - Use the RFC path only when the user explicitly wants classifier-derived hard labels from the topic representation.
- Use
ondisk=Trueonly when dataset size makes in-memory execution impractical. - Treat the notebook's embedding panels as optional reporting, not the reusable contract.
Input Contract
- Start from
AnnData. - Keep a count-like layer available under the selected
layerskey. - Ensure the selected highly-variable flag exists in
adata.var. - Ensure the embedding named by
use_repexists before the RFC path.
Minimal Execution Patterns
Constraints
- Do not use this skill on data that no longer has a usable count-like layer for the selected
layerskey. - Do not treat the notebook's topic count as a universal default.
- Do not use the RFC path without a real embedding in
obsm. ondisk=Truecreates local training/test datasets and is a runtime mode choice, not part of the reusable semantic contract.- Keep smoke and acceptance commands shell-agnostic.
Validation
- Check that the wrapper constructed successfully with the intended
feature_type,layers, andondiskmode. - After
predicted(...), check that topic columns andLDA_clusterexist. - After the RFC path, check that
LDA_cluster_rfcandLDA_cluster_clfexist. - If only a bounded smoke path was run, state whether model fitting was skipped or reduced.
Resource Map
- Use the branch selection notes when choosing
feature_type,ondisk, or the RFC path. - Use the source grounding notes for current signatures, PyTorch compatibility behavior, and output labels.
- Use the notebook mapping notes to trace the notebook's topic-modeling section into this reusable skill.
- Use the compatibility notes for dependency, GPU, and filesystem-sensitive behavior.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/omicverse_skills/skills/single-cell-lda-topic-clustering/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/omicverse/omicverse-skills/single-cell-lda-topic-clustering)