omicverse/omicverse-skills/single-cell-differential-expression
Claude Code and agent skill by omicverse/omicverse-skills
- community
Checking that the SKILL.md file is still in the repository.
Run OmicVerse single-cell differential expression analysis as a reusable, triggerable skill. Use when comparing conditions inside one or more cell types in AnnData, choosing between Wilcoxon, t-test, and memento backends, or adapting a related notebook into a repeatable DEG workflow.
Install
npx vskill@latest install omicverse/omicverse-skills/single-cell-differential-expressionSKILL.md
OmicVerse Single-Cell Differential Expression
Goal
Turn notebook-style OmicVerse DEG analysis into a compact execution spine for condition-vs-condition comparisons inside selected cell types. Keep this skill focused on DEG only; differential abundance and compositional analysis are a separate job with a different input contract and backend surface.
Quick Workflow
- Inspect the input
AnnData, the condition column, the cell-type column, and whether raw counts are available inadata.raworadata.layers["counts"]. - Choose a DEG backend before running anything:
wilcoxonort-testfor the scanpy rank-gene path,memento-defor the count-aware memento path. - Subset to the required cell types with
celltype_keyandcelltype_group; leavecelltype_group=Noneonly when you really want all cell types pooled into one DEG run. - Run
DEG.run(...)with an explicitmax_cellspolicy and method-specific kwargs when using memento. - Collect results with
get_results(), then verify the expected statistical columns and expression-percentage columns before saving or plotting.
Interface Summary
ov.single.DEG(adata, condition, ctrl_group, test_group, method='wilcoxon', use_raw=None)initializes the wrapper.methodbranches arewilcoxon,t-test, andmemento-de.use_raw=Noneauto-detectsadata.raw; if raw exists, the wrapper copiesadata.raw.Xinto a fresh object and uses that matrix for DEG.DEG.run(celltype_key, celltype_group=None, max_cells=100000, **kwargs)subsets by cell type and dispatches to the selected backend.wilcoxonandt-testnormalize and log-transform only when the active matrix still looks integer-valued.memento-deexpects count-like input; ifXis not integer-valued, the wrapper first looks foradata.layers["counts"]and otherwise tries count recovery from log-normalized values.- memento-specific kwargs are passed through
run(...); the notebook usedcapture_rate,num_cpus, andnum_boot. DEG.get_results()returns a DEG table and augments it withbaseMean,pct_ctrl,pct_test, andpct_diff.
Stage Selection
- Use
method='wilcoxon'when you want the notebook's fast nonparametric path on one or more selected cell types. - Use
method='t-test'only when a t-test is acceptable for the data distribution and normalization state. - Use
method='memento-de'when the user explicitly wants memento's differential-mean path or needs the extra branch-specific kwargs. - Keep
celltype_groupexplicit for targeted comparisons such as one lineage or cluster; set it toNoneonly when a pooled all-cell-type DEG run is actually intended. - Treat violin plots as optional reporting after DEG, not as part of the reusable execution contract.
Input Contract
- Start from an
AnnDataobject with a condition column inobs. - Provide control and test labels that exist in that condition column.
- Provide a cell-type column for
celltype_key. - Prefer preserving raw counts in
adata.raworadata.layers["counts"], especially formemento-de. - Expect the wrapper to coerce dense matrices to CSR internally.
Minimal Execution Patterns
Constraints
- Do not merge DEG and DCT into one skill at execution time; they are independently triggerable and use different backends.
- Do not assume the notebook's example cell type or example genes are universal defaults.
- Do not leave
methodimplicit; branch choice changes both the statistical engine and the data expectations. - Do not claim that
memento-deran on raw counts unless you actually confirmed raw counts, acountslayer, or successful count recovery. - Keep smoke and acceptance commands shell-agnostic. Do not rely on
zsh-specific syntax, shell startup files, or shell-only features when a direct${PYTHON} script.pycommand is enough. - Do not put local paths or environment names into the reusable instructions.
Validation
- Check that the selected control and test labels both remain after subsetting.
- Check that
DEG.run(...)used the intended cell-type subset. - For
wilcoxonandt-test, check that the result table contains at leastlog2FC,pvalue,padj,qvalue,baseMean,pct_ctrl,pct_test, andpct_diff. - For
memento-de, check that the result table still gainsbaseMean,pct_ctrl,pct_test, andpct_diffafterget_results(). - If the dataset is large, say whether
max_cellscaused downsampling. - If only a bounded smoke path was run, say so explicitly.
Resource Map
- Use the branch selection notes when choosing the DEG backend or deciding whether all cell types should be pooled.
- Use the source grounding notes when you need the live signatures, defaults, or branch-specific behavior.
- Use the notebook map when tracing which tutorial cells became which reusable instruction.
- Use the compatibility notes when notebook prose and current runtime behavior diverge.
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-differential-expression/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-differential-expression)