← 返回 Skills 市场
aipoch-ai

GO/KEGG Enrichment

作者 AIpoch · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
430
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install go-kegg-enrichment
功能描述
Performs GO (Gene Ontology) and KEGG pathway enrichment analysis on gene lists. Trigger when: - User provides a list of genes (symbols or IDs) and asks for e...
使用说明 (SKILL.md)

GO/KEGG Enrichment Analysis

Automated pipeline for Gene Ontology and KEGG pathway enrichment analysis with result interpretation and visualization.

Features

  • GO Enrichment: Biological Process (BP), Molecular Function (MF), Cellular Component (CC)
  • KEGG Pathway: Pathway enrichment with organism-specific mapping
  • Multiple ID Support: Gene symbols, Entrez IDs, Ensembl IDs, RefSeq
  • Statistical Methods: Hypergeometric test, Fisher's exact test, GSEA support
  • Visualizations: Bar plots, dot plots, enrichment maps, cnet plots
  • Result Interpretation: Automatic biological significance summary

Supported Organisms

Common Name Scientific Name KEGG Code OrgDB Package
Human Homo sapiens hsa org.Hs.eg.db
Mouse Mus musculus mmu org.Mm.eg.db
Rat Rattus norvegicus rno org.Rn.eg.db
Zebrafish Danio rerio dre org.Dr.eg.db
Fly Drosophila melanogaster dme org.Dm.eg.db
Yeast Saccharomyces cerevisiae sce org.Sc.sgd.db

Usage

Basic Usage

# Run enrichment analysis with gene list
python scripts/main.py --genes gene_list.txt --organism human --output results/

Parameters

Parameter Description Default Required
--genes Path to gene list file (one gene per line) - Yes
--organism Organism code (human/mouse/rat/zebrafish/fly/yeast) human No
--id-type Gene ID type (symbol/entrez/ensembl/refseq) symbol No
--background Background gene list file all genes No
--pvalue-cutoff P-value cutoff for significance 0.05 No
--qvalue-cutoff Adjusted p-value (q-value) cutoff 0.2 No
--analysis Analysis type (go/kegg/all) all No
--output Output directory ./enrichment_results No
--format Output format (csv/tsv/excel/all) all No

Advanced Usage

# GO enrichment only with specific ontology
python scripts/main.py \
    --genes deg_upregulated.txt \
    --organism mouse \
    --analysis go \
    --go-ontologies BP,MF \
    --pvalue-cutoff 0.01 \
    --output go_results/

# KEGG enrichment with custom background
python scripts/main.py \
    --genes treatment_genes.txt \
    --background all_expressed_genes.txt \
    --organism human \
    --analysis kegg \
    --qvalue-cutoff 0.05 \
    --output kegg_results/

Input Format

Gene List File

TP53
BRCA1
EGFR
MYC
KRAS
PTEN

With Expression Values (for GSEA)

gene,log2FoldChange
TP53,2.5
BRCA1,-1.8
EGFR,3.2

Output Files

output/
├── go_enrichment/
│   ├── GO_BP_results.csv       # Biological Process results
│   ├── GO_MF_results.csv       # Molecular Function results
│   ├── GO_CC_results.csv       # Cellular Component results
│   ├── GO_BP_barplot.pdf       # Visualization
│   ├── GO_MF_dotplot.pdf
│   └── GO_summary.txt          # Interpretation summary
├── kegg_enrichment/
│   ├── KEGG_results.csv        # Pathway results
│   ├── KEGG_barplot.pdf
│   ├── KEGG_dotplot.pdf
│   └── KEGG_pathview/          # Pathway diagrams
└── combined_report.html        # Interactive report

Result Interpretation

The tool automatically generates biological interpretation including:

  1. Top Enriched Terms: Significant GO terms/pathways ranked by enrichment ratio
  2. Functional Themes: Clustered biological themes from enriched terms
  3. Key Genes: Core genes driving enrichment in significant terms
  4. Network Relationships: Gene-term relationship visualization
  5. Clinical Relevance: Disease associations (for human genes)

Technical Difficulty: HIGH

⚠️ AI自主验收状态: 需人工检查

This skill requires:

  • R/Bioconductor environment with clusterProfiler
  • Multiple annotation databases (org.*.eg.db)
  • KEGG REST API access
  • Complex visualization dependencies

Dependencies

Required R Packages

install.packages(c("BiocManager", "ggplot2", "dplyr", "readr"))
BiocManager::install(c(
    "clusterProfiler", 
    "org.Hs.eg.db", "org.Mm.eg.db", "org.Rn.eg.db",
    "enrichplot", "pathview", "DOSE"
))

Python Dependencies

pip install pandas numpy matplotlib seaborn rpy2

Example Workflow

  1. Prepare Input: Create gene list from DEG analysis
  2. Run Analysis: Execute main.py with appropriate parameters
  3. Review Results: Check generated CSV files and visualizations
  4. Interpret: Read auto-generated summary for biological insights

References

See references/ for:

  • clusterProfiler documentation
  • KEGG API guide
  • Statistical methods explanation
  • Visualization examples

Limitations

  • Requires internet connection for KEGG database queries
  • Large gene lists (>5000) may require increased memory
  • Some pathways may not be available for all organisms
  • KEGG API has rate limits (max 3 requests/second)

Risk Assessment

Risk Indicator Assessment Level
Code Execution Python/R scripts executed locally Medium
Network Access No external API calls Low
File System Access Read input files, write output files Medium
Instruction Tampering Standard prompt guidelines Low
Data Exposure Output files saved to workspace Low

Security Checklist

  • No hardcoded credentials or API keys
  • No unauthorized file system access (../)
  • Output does not expose sensitive information
  • Prompt injection protections in place
  • Input file paths validated (no ../ traversal)
  • Output directory restricted to workspace
  • Script execution in sandboxed environment
  • Error messages sanitized (no stack traces exposed)
  • Dependencies audited

Prerequisites

# Python dependencies
pip install -r requirements.txt

Evaluation Criteria

Success Metrics

  • Successfully executes main functionality
  • Output meets quality standards
  • Handles edge cases gracefully
  • Performance is acceptable

Test Cases

  1. Basic Functionality: Standard input → Expected output
  2. Edge Case: Invalid input → Graceful error handling
  3. Performance: Large dataset → Acceptable processing time

Lifecycle Status

  • Current Stage: Draft
  • Next Review Date: 2026-03-06
  • Known Issues: None
  • Planned Improvements:
    • Performance optimization
    • Additional feature support
安全使用建议
This package appears to implement GO/KEGG enrichment, but there are inconsistencies you should resolve before running it: (1) Decide whether you intend to use an R/clusterProfiler pipeline or the provided Python script (scripts/main.py uses gseapy). The README/SKILL.md mixes both—follow the actual script or ask the author to clarify. (2) Expect network calls to Enrichr/KEGG when using online options; do not submit confidential gene lists if privacy is a concern. (3) Install Python dependencies from requirements.txt in a virtual environment; if you follow the R instructions they are separate and unnecessary for the Python script. (4) Verify KEGG usage terms for your use case (academic vs commercial). (5) Run the code in an isolated environment (virtualenv or container) and inspect outputs before trusting automated interpretation. If you need higher assurance, ask the publisher to clarify the R vs Python discrepancy and to provide an explicit install/run README matching the actual code.
功能分析
Type: OpenClaw Skill Name: go-kegg-enrichment Version: 1.0.0 The skill is designed for legitimate GO/KEGG enrichment analysis. However, the `SKILL.md` contains contradictory information regarding network access, claiming 'No external API calls' while also stating 'Requires internet connection for KEGG database queries' and listing 'KEGG REST API access' as a requirement. The `scripts/main.py` further confirms network access via `gseapy` and an explicit `--use-enrichr` flag for the Enrichr API. More critically, the script accepts file paths for `--genes`, `--background`, and `--output` without implementing robust path sanitization, which could allow for path traversal attacks (e.g., `../../sensitive_file.txt`) to read or write files outside the intended workspace. These issues represent significant vulnerabilities, classifying the skill as suspicious.
能力评估
Purpose & Capability
Name/description match the included code: the repo provides a script to perform GO/KEGG enrichment and visualization. However, the SKILL.md repeatedly describes an R/Bioconductor pipeline (clusterProfiler, org.*.eg.db) while the included script (scripts/main.py) is a pure-Python pipeline using gseapy. Both Python and R dependencies appear in documentation/requirements files, which is inconsistent but could be bookkeeping/sloppiness rather than malicious.
Instruction Scope
Instructions are within the stated functional scope (read a gene list, run enrichment, write results/plots). They expect network access for Enrichr/KEGG queries. Inconsistencies: SKILL.md and the risk table contain contradictory statements about network/API usage (mentions KEGG REST API but also states 'No external API calls' in a truncated table). No instructions attempt to read unrelated system files, sensitive environment variables, or contact unknown endpoints.
Install Mechanism
There is no automatic install spec (instruction-only install), so nothing is downloaded or executed implicitly by the platform. The package includes requirements.txt and references/requirements.txt listing Python libraries (gseapy, pandas, etc.) and documentation that lists R/Bioconductor packages; installation is manual. This is low install-mechanism risk, though the user will need to install Python packages (and possibly R packages if they follow the R instructions).
Credentials
The skill requests no environment variables or credentials. Network access to public enrichment services (Enrichr, KEGG) is expected for normal operation. There are no requests for unrelated secrets or system config paths.
Persistence & Privilege
The skill is not always-enabled and is user-invocable; it does not request elevated/persistent platform privileges. It does not attempt to modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install go-kegg-enrichment
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /go-kegg-enrichment 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: GO and KEGG enrichment analysis skill for gene lists. - Supports enrichment analysis for GO (BP, MF, CC) and KEGG pathways in multiple organisms. - Accepts gene lists (symbols or IDs), with flexible input and background options. - Outputs enriched terms, statistics, and multiple visualizations (barplot, dotplot, enrichment map). - Provides automatic biological interpretations and summaries for results. - Requires R/Bioconductor (clusterProfiler, org.*.eg.db) and Python (rpy2, pandas) environments. - Includes security, risk, and usage guidelines for safe and effective execution.
元数据
Slug go-kegg-enrichment
版本 1.0.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

GO/KEGG Enrichment 是什么?

Performs GO (Gene Ontology) and KEGG pathway enrichment analysis on gene lists. Trigger when: - User provides a list of genes (symbols or IDs) and asks for e... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 430 次。

如何安装 GO/KEGG Enrichment?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install go-kegg-enrichment」即可一键安装,无需额外配置。

GO/KEGG Enrichment 是免费的吗?

是的,GO/KEGG Enrichment 完全免费(开源免费),可自由下载、安装和使用。

GO/KEGG Enrichment 支持哪些平台?

GO/KEGG Enrichment 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 GO/KEGG Enrichment?

由 AIpoch(@aipoch-ai)开发并维护,当前版本 v1.0.0。

💬 留言讨论