omicverse-single-cell-differential-expression
Installation
SKILL.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.