pathway-enrichment-compare

Compare enrichment between two gene lists and draw a mirrored bar plot.

3|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/chenyhvvvv/STAT-agent --skill pathway-enrichment-compare
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pathway-enrichment-compare
Source: https://github.com/chenyhvvvv/STAT-agent/tree/main/stat_agent/skills/pathway-enrichment-compare
Command: npx skills add https://github.com/chenyhvvvv/STAT-agent --skill pathway-enrichment-compare

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Compares pathway/gene-set enrichment between two user-provided gene lists and visualizes the differences with a mirrored bar plot, enabling quick interpretation of distinctive biological signals.

Core Features & Use Cases

  • Compare two gene lists against a gene-set library (MSigDB Hallmark, GO, Reactome, KEGG, and more) to identify enriched terms for each group.
  • Generate a mirrored bar plot showing terms enriched in each group on opposite sides for easy comparison.
  • Store results in adata.uns (e.g., enrichment_results_groups, enrichment_params) and surface top terms for reporting.

Quick Start

Load two gene lists into adata.uns['enrichment_genes_groups'], set the species and library, and run the enrichment to produce results and a mirrored plot.

Frequently Asked Questions about pathway-enrichment-compare

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compare pathway enrichment between two gene lists in scRNA-seq data?

To compare pathway enrichment between two gene lists, load your gene sets into adata.uns['enrichment_genes_groups'] as a dictionary with exactly two groups, then run the enrichment to generate results and a mirrored bar plot.

What is a mirrored bar plot for gene-set enrichment analysis?

A mirrored bar plot for gene-set enrichment displays enriched terms for two groups on opposite sides of a central axis, enabling quick visual comparison of distinguishing biological signals across groups.

Can I use MSigDB Hallmark and KEGG libraries for scRNA-seq enrichment comparison?

Yes, you can use MSigDB Hallmark, KEGG, GO, or Reactome gene-set libraries for scRNA-seq enrichment comparison by specifying your chosen library when running the two-group enrichment analysis.

How do I set up adata.uns for two-group pathway enrichment visualization?

Set up adata.uns for two-group pathway enrichment by creating a dictionary at adata.uns['enrichment_genes_groups'] containing exactly two gene lists, then the analysis stores results in adata.uns and generates a mirrored plot.

What's the best way to visualize differences in pathway enrichment across two cell populations?

The best way to visualize pathway enrichment differences across two cell populations is a mirrored bar plot, which places enriched terms for each group on opposite sides for direct visual comparison of biological signals.

Why does two-group enrichment comparison require exactly two gene lists in adata.uns?

Two-group enrichment comparison requires exactly two gene lists in adata.uns because the mirrored bar plot is designed to contrast exactly two groups, placing their enriched pathways on opposite sides to reveal distinguishing biological signals.