Skip to content
gene-set-enrichment logo

Gene Set Enrichment

gene-set-enrichment

Perform gene set enrichment analysis using AI research providers. Analyzes lists of genes to identify biological themes, pathways, and functional associations.

mattnigh/skills_collection0installs24stars

SKILL.md

Full skill instructions

gene-set-enrichment

Toolkit for performing gene set enrichment analysis on lists of genes using AI research providers. Identifies biological themes, pathways, diseases, and functional relationships within gene sets.

When to Use

Use this skill when:

  • The user provides a list of genes and wants to understand what they have in common
  • The user needs pathway or functional enrichment analysis
  • The user wants to identify biological themes in differential expression results
  • The user needs to understand disease associations for a gene set
  • The user has genomic analysis results and wants biological interpretation

Default Configuration

This skill uses HEAVYWEIGHT mode by default:

  • Provider: Perplexity
  • Model: sonar-deep-research
  • Rationale: Extensive research is required to give meaningful results.

Users can override to use comprehensive mode if needed for publication-quality analysis.

Features

  • Pathway Analysis: Identifies enriched biological pathways
  • Disease Associations: Finds disease connections for gene sets
  • Functional Themes: Discovers common biological functions
  • Tissue Specificity: Analyzes expression patterns across tissues
  • Drug Targets: Identifies potential therapeutic connections
  • Template-Based: Reusable template with space-separated gene lists

Required Environment Variables

# At least one is required:
export PERPLEXITY_API_KEY="your-perplexity-key"   # Recommended for speed
export OPENAI_API_KEY="your-openai-key"           # For comprehensive analysis
export FUTUREHOUSE_API_KEY="your-futurehouse-key" # For scientific literature

Basic Usage

Using the Template (Recommended)

# Quick enrichment analysis
uv run deep-research-client research \
  --template .claude/​skills/​gene-set-enrichment/​examples/​enrichment_template.md \
  --var "geneset=APOH APP COL3A1 VEGFA THBD" \
  --var "organism=human" \
  --provider perplexity \
  --model sonar-deep-research \
  --output enrichment_results.md

# Comprehensive analysis (slower, more detailed)
uv run deep-research-client research \
  --template .claude/​skills/​gene-set-enrichment/​examples/​enrichment_template.md \
  --var "geneset=APOH APP COL3A1 VEGFA THBD" \
  --var "organism=human" \
  --provider openai \
  --output enrichment_detailed.md

Direct Query (No Template)

uv run deep-research-client research \
  "Perform gene set enrichment analysis on: APOH APP COL3A1 VEGFA THBD. Identify common pathways, biological processes, and disease associations." \
  --provider perplexity \
  --model sonar-deep-research \
  --output quick_enrichment.md

Template Variables

The enrichment template accepts:

  • {geneset} - Space-separated list of gene symbols (e.g., "APOH APP VEGFA")
  • {organism} - Organism name (e.g., "human", "mouse", "rat")
  • {context} - Optional: Study context (e.g., "upregulated in heart disease", "differentially expressed in cancer")

Workflow

  1. Prepare gene list: Convert gene list to space-separated format
  2. Choose analysis mode:
    • Fast (sonar-pro): Quick exploratory analysis
    • Comprehensive (openai): Publication-quality detailed analysis
  3. Run template: Use template with geneset variable
  4. Review results: Check identified pathways, functions, diseases
  5. Iterate: Refine analysis based on initial results

Output Format

Results include:

  • Enriched Pathways: KEGG, Reactome, WikiPathways
  • Biological Processes: GO terms and functional categories
  • Disease Associations: OMIM, disease databases
  • Tissue Expression: Where genes are co-expressed
  • Protein Interactions: Known interaction networks
  • Drug Connections: Therapeutic targets and compounds
  • Citations: Links to relevant databases and publications

Example Gene Sets

Cardiovascular/​ECM Example (36 genes)

APOH APP CND2 COL3A1 COL5A2 CXCL6 FGFR1 FSTL1 ITGAV JAG1 JAG2 KCNJ8 LPL LRPAP1 LUM MSX1 NRP1 OLR1 PDGFA PF4 PGLYRP1 POSTN PRG2 PTK2 S100A4 SERPINA5 SLCO2A1 SPP1 STC1 THBD TIMP1 TNFRSF21 VAV2 VCAN VEGFA VTN

This set appears enriched for:

  • Extracellular matrix organization
  • Cardiovascular development
  • Angiogenesis and vascular remodeling
  • Cell adhesion and migration

Small Test Set

TP53 BRCA1 BRCA2 PTEN RB1

Cancer-related tumor suppressors for testing.

Common Patterns

Quick exploratory enrichment

uv run deep-research-client research \
  --template .claude/​skills/​gene-set-enrichment/​examples/​enrichment_template.md \
  --var "geneset=GENE1 GENE2 GENE3" \
  --var "organism=human" \
  --provider perplexity \
  --model sonar-pro

Context-specific enrichment

uv run deep-research-client research \
  --template .claude/​skills/​gene-set-enrichment/​examples/​enrichment_template.md \
  --var "geneset=GENE1 GENE2 GENE3" \
  --var "organism=human" \
  --var "context=upregulated in diabetic cardiomyopathy" \
  --var "focus=cardiac remodeling pathways"

Comprehensive publication-quality

uv run deep-research-client research \
  --template .claude/​skills/​gene-set-enrichment/​examples/​enrichment_template.md \
  --var "geneset=GENE1 GENE2 GENE3" \
  --var "organism=human" \
  --provider openai

Tips for Best Results

  1. Gene Symbol Format: Use official gene symbols (HUGO for human, MGI for mouse)
  2. List Size: Works best with 10-500 genes
    • Too few (<5): Limited statistical power
    • Too many (>1000): May be too broad
  3. Organism: Specify organism to avoid ambiguity
  4. Context: Add experimental context for more relevant results
  5. Iteration: Start with fast mode, then use comprehensive for final analysis
  6. Caching: Results are cached - use --no-cache to force re-analysis with updated databases

Integration with Analysis Pipelines

From differential expression results

# Python example: extract top genes
import pandas as pd

# Load DEG results
degs = pd.read_csv("deg_results.csv")
top_genes = degs[degs['padj'] < 0.05].head(50)['gene_symbol'].tolist()
geneset = " ".join(top_genes)

# Use with template
print(f"--var \"geneset={geneset}\"")

From genomic analysis

# Extract gene symbols from analysis output
cut -f1 significant_genes.txt | tr '\n' ' ' > geneset.txt

# Use in template
uv run deep-research-client research \
  --template .claude/​skills/​gene-set-enrichment/​examples/​enrichment_template.md \
  --var "geneset=$(cat geneset.txt)" \
  --var "organism=human"

Comparison with Traditional Tools

This AI-based approach complements traditional enrichment tools (DAVID, Enrichr, g:Profiler):

Advantages:

  • Natural language interpretation
  • Integrated cross-database search
  • Literature context and recent discoveries
  • Flexible, conversational analysis

Traditional Tools Still Better For:

  • Precise statistical p-values
  • Large-scale batch processing
  • Specific database versions
  • Reproducible computational workflows

Best Practice: Use both approaches:

  1. Run traditional enrichment for statistics
  2. Use this skill for biological interpretation and context

Important Notes

  • Default is fast mode: Uses sonar-pro for quick results
  • Gene symbols: Use standard nomenclature (HGNC for human)
  • List format: Space-separated gene symbols in the template variable
  • Caching: Results cached by gene set and provider
  • Updates: AI models have knowledge cutoff - very recent discoveries may not be included
  • Validation: Cross-reference with traditional enrichment tools for important findings

Related Skills

  • run-deep-research: For individual gene deep-dive analysis
  • Custom analysis workflows can combine both skills

More skills from mattnigh

spring-framework-patterns logo
mattnigh/skills_collection

spring-framework-patterns

Comprehensive Spring Framework and Spring Boot best practices including dependency injection patterns, bean lifecycle and scopes, REST API development, Spring Data JPA, service layer design, Spring Security, testing strategies, caching, AOP, async processing, error handling, and common anti-patte...

24 0
View

TypeScript厳格モードによる型安全性設計を専門とするスキル。 📖 参照書籍: - 『Effective TypeScript』(Dan Vanderkam): 型設計 📚 リソース参照: - `resources/Level1_basics.md`: レベル1の基礎ガイド - `resources/Level2_intermediate.md`: レベル2の実務ガイド - `resources/Level3_advanced.md`: レベル3の応用ガイド - `resources/Level4_expert.md`: レベル4の専門ガイド - `resources/di...

24 0
View
deploying-cloud-k8s logo
mattnigh/skills_collection

deploying-cloud-k8s

Deploys applications to cloud Kubernetes (AKS/GKE/DOKS) with CI/CD pipelines. Use when deploying to production, setting up GitHub Actions, troubleshooting deployments. Covers build-time vs runtime vars, architecture matching, and battle-tested debugging.

24 0
View
moai-alfred-agent-guide logo
mattnigh/skills_collection

moai-alfred-agent-guide

19-agent team structure, decision trees for agent selection, Haiku vs Sonnet model selection, and agent collaboration principles. Use when deciding which sub-agent to invoke, understanding team responsibilities, or learning multi-agent orchestration.

24 0
View
mermaid-diagram-generator logo
mattnigh/skills_collection

mermaid-diagram-generator

Converts architecture descriptions, module specs, or workflow docs into Mermaid diagrams. Use when visualizing brick module relationships, workflows (DDD, investigation), or system architecture. Supports: flowcharts, sequence diagrams, class diagrams, state machines, entity relationship diagrams,...

24 0
View
pre-flight-check logo
mattnigh/skills_collection

pre-flight-check

INVOKE FIRST before any code work. Validates git workflow (branch, issue, worklog) and checks approach. Use at START of every task and END before completing. Prevents skipped steps.

24 0
View
browser-dev-tools logo
mattnigh/skills_collection

browser-dev-tools

This skill should be used when working with browser-rendered artifacts (i.e. Bun, React/React Native) to proactively validate that development work on localhost is being built appropriately and to support debugging browser-rendered content. Use this skill after making frontend changes to verify t...

24 0
View
lead-dev logo
mattnigh/skills_collection

lead-dev

Lead Développeur - Coordination technique opérationnelle, code review, mentoring et livraison. Pair de web-dev-process au niveau OPÉRATIONS.

24 0
View
worker-monitor logo
mattnigh/skills_collection

worker-monitor

Monitor Docker workers, RQ queue health, and auto-scale workers (max 4). Use when: checking job progress, monitoring queue depth, scaling workers up/down, diagnosing slow processing, or waiting for jobs to complete. Referenced by data-quality skill during reprocessing.

24 0
View
quality-advisor logo
mattnigh/skills_collection

quality-advisor

Proactive quality guidance system that monitors artifact creation and provides real-time feedback on documentation quality

24 0
View
bump-version logo
mattnigh/skills_collection

bump-version

This skill should be used when the user wants to bump the version number in the workspace. It updates versions across all pyproject.toml files (root, tde, and tda packages) and the CHANGELOG.md to keep them synchronized.

24 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View