[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CVYPJDJMF3WFP79622AP70":3,"skill-same:01M7CVYPJDJMF3WFP79622AP70":92},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7CVYPJDJMF3WFP79622AP70","gokegg-analysis",null,"Use when performing GO and KEGG enrichment on a gene list from bulk RNA-seq or microarray studies, then generating a combined GO\u002FKEGG dot chart. NOT for single-cell RNA-seq, methylation data, or non-expression data.","mrsonord2240\u002Fopenscience-specialists","mrsonord2240","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F76487430?v=4","01M7CTEM40S43GSJZ9A3YCCXZK","Samuel Nord","01M7CTEM4K69JD1GBYNHVJ9ZP4",2,"MIT","https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgokegg-analysis\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: gokegg-analysis\ndescription: Use when performing GO and KEGG enrichment on a gene list from bulk RNA-seq or microarray studies, then generating a combined GO\u002FKEGG dot chart. NOT for single-cell RNA-seq, methylation data, or non-expression data.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\u002F\u002Fgithub.com\u002Faipoch\u002Fmedical-research-skills](https:\u002F\u002Fgithub.com\u002Faipoch\u002Fmedical-research-skills)\n\n## When To Read External Files\n\n| Situation | File To Read | Purpose |\n|---|---|---|\n| Need algorithm details | `references\u002Falgorithm.md` | Statistical methods and formulas |\n| Need to run the analysis | `scripts\u002Fmain.R` | Full execution command |\n| Encounter an error | `references\u002Ftroubleshooting.md` | Troubleshooting guidance |\n| Need CLI examples | `references\u002Fcli-guide.md` | Parameter usage examples |\n\n## When To Use\n\nUse this skill for:\n- GO and KEGG enrichment from a gene list derived from bulk RNA-seq or microarray studies\n- Supported gene ID types: `SYMBOL`, `ENSEMBL`, `ENTREZID`\n- Supported species databases: `org.Hs.eg.db`, `org.Mm.eg.db`, `org.Rn.eg.db`\n\nDo not use this skill for:\n- Single-cell RNA-seq analysis\n- Methylation, proteomics, or non-expression omics workflows\n- Differential expression testing from raw count matrices\n\n## Usage\n\nMain analysis and plotting:\n`Rscript scripts\u002Fmain.R --feature \"TP53,EGFR,BRCA1,MYC\" --output_dir .\u002Foutput --sp org.Hs.eg.db --gene_type SYMBOL --pvalue_cutoff 0.05 --qvalue_cutoff 0.2 --pAdjustMethod BH --seed 66 --go_top_n 3 --kegg_top_n 3 --format pdf`\n\nNotes:\n- `scripts\u002Fmain.R` is the only command-line entry point\n- `scripts\u002Fdochart.R` currently provides plotting functions and is sourced by `scripts\u002Fmain.R`\n- If `--go_input`, `--kegg_input`, or `--outdir` are omitted, `main.R` uses `output_dir\u002Ftemp\u002FGO_list.rda`, `output_dir\u002Ftemp\u002FKEGG_list.rda`, and `output_dir\u002Fplot` automatically\n\n## Agent Output\n\nOn success, the agent should report:\n- Whether GO enrichment completed successfully\n- Whether KEGG enrichment completed successfully\n- The normalized input gene count after trimming and parsing\n- The main output directory\n- The generated files, especially `GO_df.csv`, `KEGG_df.csv`, `GO_list.rda`, `KEGG_list.rda`, and the combined dot chart\n- The path to `session_info.txt`\n\nPost-run checklist:\n- Re-parse the original `--feature` string using the documented separator rules and report the deduplicated gene count after trimming\n- Check `temp\u002FGO_df.csv` and `temp\u002FGO_list.rda` before claiming GO success\n- Check `temp\u002FKEGG_df.csv` and `temp\u002FKEGG_list.rda` before claiming KEGG success\n- Check `plot\u002Fgokegg_dot_chart.\u003Cformat>`, `plot\u002Fgokegg_dot_chart_data.csv`, `plot\u002Fgokegg_dot_chart_data.rda`, and `session_info.txt` before claiming full success\n- Summarize the final result with: parsed gene count, GO status, KEGG status, plot status, output directory, and key output files\n\nOn failure, the agent should report:\n- The exact `SKILL_*` error code\n- The failing step, such as gene parsing, ID conversion, enrichment, or plotting\n- The actionable next step, such as fixing input IDs, checking missing packages, or regenerating `.rda` files\n\n## Parameter Reference\n\n### `scripts\u002Fmain.R`\n\n| Short | Long | Type | Default | Required | Description |\n|---|---|---|---|---|---|\n| `-f` | `--feature` | character | `\"\"` | Yes | Gene list separated by commas, Chinese commas, semicolons, tabs, or newlines |\n| `-o` | `--output_dir` | character | `.\u002Foutput\u002F` | No | Main output directory |\n| `-s` | `--sp` | character | `org.Hs.eg.db` | No | Species database |\n| `-g` | `--gene_type` | character | `SYMBOL` | No | Input gene ID type |\n| `-p` | `--pvalue_cutoff` | numeric | `0.05` | No | Enrichment p-value cutoff |\n| `-q` | `--qvalue_cutoff` | numeric | `0.2` | No | Enrichment q-value cutoff |\n| `-m` | `--pAdjustMethod` | character | `BH` | No | P-value adjustment method |\n|  | `--seed` | integer | `66` | No | Random seed |\n|  | `--go_input` | character | `NULL` | No | Optional GO `.rda`; defaults to `output_dir\u002Ftemp\u002FGO_list.rda` |\n|  | `--kegg_input` | character | `NULL` | No | Optional KEGG `.rda`; defaults to `output_dir\u002Ftemp\u002FKEGG_list.rda` |\n|  | `--outdir` | character | `NULL` | No | Plot output directory; defaults to `output_dir\u002Fplot` |\n|  | `--go_top_n` | numeric | `3` | No | Top GO terms per ontology |\n|  | `--kegg_top_n` | numeric | `3` | No | Top KEGG pathways |\n| `-w` | `--width` | numeric | `20` | No | Plot width in cm |\n|  | `--height` | numeric | `16` | No | Plot height in cm |\n|  | `--format` | character | `pdf` | No | Plot format: `pdf`, `png`, `svg` |\n|  | `--dpi` | numeric | `300` | No | DPI for raster output |\n| `-c` | `--colors` | character | `#E41A1C,#FFFF33,#2E86AB,#4DAF4A` | No | Colors for `GO:BP,GO:CC,GO:MF,KEGG` |\n|  | `--title` | character | `GO + KEGG Dot Chart` | No | Plot title |\n|  | `--xlab` | character | `NULL` | No | Horizontal axis label override |\n|  | `--ylab` | character | `NULL` | No | Vertical axis label override |\n|  | `--dot_size` | numeric | `4.5` | No | Dot size |\n|  | `--shape` | numeric | `19` | No | Dot shape |\n|  | `--rotate` \u002F `--no-rotate` | logical flag | `TRUE` | No | Rotate plot orientation on or off |\n|  | `--sorting` | character | `descending` | No | Dot sorting order |\n|  | `--label_width` | numeric | `35` | No | Label wrap width |\n|  | `--title_size` | numeric | `12` | No | Title font size |\n|  | `--axis_title_size` | numeric | `9` | No | Axis title font size |\n|  | `--axis_text_size` | numeric | `8` | No | Axis text font size |\n|  | `--legend_title_size` | numeric | `8` | No | Legend title font size |\n|  | `--legend_text_size` | numeric | `7` | No | Legend text font size |\n|  | `--legend_position` | character | `top` | No | Legend position |\n|  | `--plot_margin` | character | `10,10,10,10` | No | Plot margins: top,right,bottom,left |\n|  | `--axis_line_size` | numeric | `0.5` | No | Axis line width |\n|  | `--axis_ticks_size` | numeric | `0.5` | No | Axis tick width |\n|  | `--show_grid` | logical | `FALSE` | No | Show grid lines |\n| `-v` | `--verbose` | logical | `FALSE` | No | Enable verbose logging |\n\n## Input Format\n\n### Main Analysis Input\n- `--feature` should be provided as a gene list\n- Preferred separator: comma\n- Also accepted: Chinese commas, semicolons, tabs, and newlines\n- Leading and trailing spaces around each gene are removed automatically with trimming\n- The gene ID type must match `--gene_type`\n- `--sp` supports only `org.Hs.eg.db`, `org.Mm.eg.db`, and `org.Rn.eg.db`\n\nExamples:\n`TP53,EGFR,BRCA1,MYC`\n\n`TP53, EGFR, BRCA1, MYC`\n\n`TP53；EGFR；BRCA1；MYC`\n\n`TP53\\nEGFR\\nBRCA1\\nMYC`\n\nExample command with minimal input:\n`Rscript scripts\u002Fmain.R --feature \"TP53,EGFR,BRCA1,MYC\" --output_dir .\u002Fexample_output --sp org.Hs.eg.db --gene_type SYMBOL`\n\nExample command with custom plotting parameters:\n`Rscript scripts\u002Fmain.R --feature \"TP53,EGFR,BRCA1,MYC\" --output_dir .\u002Fexample_plot_output --sp org.Hs.eg.db --gene_type SYMBOL --go_top_n 5 --kegg_top_n 8 --colors \"#E41A1C,#FFFF33,#2E86AB,#4DAF4A\" --title \"Custom GO + KEGG Dot Chart\" --xlab=\"-log10(adjusted p-value)\" --ylab=\"Enriched Terms\" --width 24 --height 18 --label_width 40 --format png --dpi 300 --no-rotate --verbose`\n\nNote: values passed to `--xlab` or `--ylab` that start with `-` should use `--option=value` syntax to avoid being parsed as flags.\n\nNote: separator variants are supported only when they are passed inside a single `--feature` argument value.\n\n### Plot Input\n- Plotting is triggered by `scripts\u002Fmain.R`\n- `--go_input`: optional `.rda` file containing a `GO_list` object\n- `--kegg_input`: optional `.rda` file containing a `KEGG_list` object\n- If not provided, `main.R` uses the newly generated files under `output_dir\u002Ftemp`\n- Plotting requires result tables with at least `Description` and `p.adjust`\n\n## Output Files\n\n| File Name | Format | Description |\n|---|---|---|\n| `temp\u002FGO_df.csv` | CSV | GO enrichment result table |\n| `temp\u002FGO_list.rda` | RDA | Full GO enrichment object |\n| `temp\u002FKEGG_df.csv` | CSV | KEGG enrichment result table |\n| `temp\u002FKEGG_list.rda` | RDA | Full KEGG enrichment object |\n| `plot\u002Fgokegg_dot_chart.pdf` etc. | PDF\u002FPNG\u002FSVG | Combined GO\u002FKEGG dot chart |\n| `plot\u002Fgokegg_dot_chart_data.csv` | CSV | Combined plotting table used for the figure |\n| `plot\u002Fgokegg_dot_chart_data.rda` | RDA | Plot bundle with plotting data and parameters |\n| `session_info.txt` | TXT | Runtime session information |\n\n## Error Handling\n\nCommon error codes and fixes:\n- `SKILL_FILE_NOT_FOUND`: Input file does not exist; check the path and permissions\n- `SKILL_FILE_FORMAT_ERROR`: `.rda` cannot be read or is malformed; regenerate upstream results\n- `SKILL_MISSING_COLUMNS`: Result table is missing `Description` or `p.adjust`\n- `SKILL_EMPTY_DATA`: Input genes are empty after parsing, cannot be converted, or enrichment results are empty\n- `SKILL_INVALID_PARAMETER`: Required parameter missing, unsupported species, or insufficient color count\n- `SKILL_PACKAGE_NOT_FOUND`: Required package is not installed\n- `SKILL_ANALYSIS_FAILED`: Internal GO\u002FKEGG enrichment failure; verify `gene_type`, `sp`, and input genes\n\nFor detailed troubleshooting, read `references\u002Ftroubleshooting.md`.\n\n## Testing\n\nMinimal test dataset: use a small built-in gene list directly, with no extra files required.\n\nSmoke test command:\n`Rscript scripts\u002Fmain.R --feature \"TP53,EGFR,BRCA1,MYC\" --output_dir .\u002Ftest_output --sp org.Hs.eg.db --gene_type SYMBOL --pvalue_cutoff 0.05 --qvalue_cutoff 0.2 --pAdjustMethod BH --seed 66 --go_top_n 3 --kegg_top_n 3 --format pdf --verbose`\n\nExpected smoke-test outputs:\n- `.\u002Ftest_output\u002Ftemp\u002FGO_list.rda`\n- `.\u002Ftest_output\u002Ftemp\u002FKEGG_list.rda`\n- `.\u002Ftest_output\u002Ftemp\u002FGO_df.csv`\n- `.\u002Ftest_output\u002Ftemp\u002FKEGG_df.csv`\n- `.\u002Ftest_output\u002Fplot\u002Fgokegg_dot_chart.pdf`\n- `.\u002Ftest_output\u002Fplot\u002Fgokegg_dot_chart_data.csv`\n- `.\u002Ftest_output\u002Fplot\u002Fgokegg_dot_chart_data.rda`\n- `.\u002Ftest_output\u002Fsession_info.txt`\n- Exit status code `0`\n\nAutomated regression script:\n`Rscript test\u002Ftest_regressions.R`\n\nThe regression script covers:\n- Separator parsing with comma, Chinese semicolon, newline, tab, and mixed separators\n- Empty parsed-gene handling\n- Invalid `--plot_margin` validation\n- Plot input validation for missing GO\u002FKEGG inputs\n\nSeparator examples for manual CLI verification:\n`Rscript scripts\u002Fmain.R --feature \"TP53,EGFR,BRCA1,MYC\" --output_dir .\u002Ftest_sep_comma`\n`Rscript scripts\u002Fmain.R --feature \"TP53；EGFR；BRCA1；MYC\" --output_dir .\u002Ftest_sep_cn_semicolon`\n`Rscript scripts\u002Fmain.R --feature $'TP53\\nEGFR\\nBRCA1\\nMYC' --output_dir .\u002Ftest_sep_newline`\n`Rscript scripts\u002Fmain.R --feature $'TP53\\tEGFR\\tBRCA1\\tMYC' --output_dir .\u002Ftest_sep_tab`\n`Rscript scripts\u002Fmain.R --feature $'TP53； EGFR, BRCA1\tMYC' --output_dir .\u002Ftest_sep_mixed`\n\nNote: all separators must be passed inside a single `--feature` argument value.","> **Source**: [https:\u002F\u002Fgithub.com\u002Faipoch\u002Fmedical-research-skills](https:\u002F\u002Fgithub.com\u002Faipoch\u002Fmedical-research-skills)\n\n## When To Read External Files\n\n| Situation | File To Read | Purpose |\n|---|---|---|\n| Need algorithm details | `references\u002Falgorithm.md` | Statistical methods and formulas |\n| Need to run the analysis | `scripts\u002Fmain.R` | Full execution command |\n| Encounter an error | `references\u002Ftroubleshooting.md` | Troubleshooting guidance |\n| Need CLI examples | `references\u002Fcli-guide.md` | Parameter usage examples |\n\n## When To Use\n\nUse this skill for:\n- GO and KEGG enrichment from a gene list derived from bulk RNA-seq or microarray studies\n- Supported gene ID types: `SYMBOL`, `ENSEMBL`, `ENTREZID`\n- Supported species databases: `org.Hs.eg.db`, `org.Mm.eg.db`, `org.Rn.eg.db`\n\nDo not use this skill for:\n- Single-cell RNA-seq analysis\n- Methylation, proteomics, or non-expression omics workflows\n- Differential expression testing from raw count matrices\n\n## Usage\n\nMain analysis and plotting:\n`Rscript scripts\u002Fmain.R --feature \"TP53,EGFR,BRCA1,MYC\" --output_dir .\u002Foutput --sp org.Hs.eg.db --gene_type SYMBOL --pvalue_cutoff 0.05 --qvalue_cutoff 0.2 --pAdjustMethod BH --seed 66 --go_top_n 3 --kegg_top_n 3 --format pdf`\n\nNotes:\n- `scripts\u002Fmain.R` is the only command-line entry point\n- `scripts\u002Fdochart.R` currently provides plotting functions and is sourced by `scripts\u002Fmain.R`\n- If `--go_input`, `--kegg_input`, or `--outdir` are omitted, `main.R` uses `output_dir\u002Ftemp\u002FGO_list.rda`, `output_dir\u002Ftemp\u002FKEGG_list.rda`, and `output_dir\u002Fplot` automatically\n\n## Agent Output\n\nOn success, the agent should report:\n- Whether GO enrichment completed successfully\n- Whether KEGG enrichment completed successfully\n- The normalized input gene count after trimming and parsing\n- The main output directory\n- The generated files, especially `GO_df.csv`, `KEGG_df.csv`, `GO_list.rda`, `KEGG_list.rda`, and the combined dot chart\n- The path to `session_info.txt`\n\nPost-run checklist:\n- Re-parse the original `--feature` string using the documented separator rules and report the deduplicated gene count after trimming\n- Check `temp\u002FGO_df.csv` and `temp\u002FGO_list.rda` before claiming GO success\n- Check `temp\u002FKEGG_df.csv` and `temp\u002FKEGG_list.rda` before claiming KEGG success\n- Check `plot\u002Fgokegg_dot_chart.\u003Cformat>`, `plot\u002Fgokegg_dot_chart_data.csv`, `plot\u002Fgokegg_dot_chart_data.rda`, and `session_info.txt` before claiming full success\n- Summarize the final result with: parsed gene count, GO status, KEGG status, plot status, output directory, and key output files\n\nOn failure, the agent should report:\n- The exact `SKILL_*` error code\n- The failing step, such as gene parsing, ID conversion, enrichment, or plotting\n- The actionable next step, such as fixing input IDs, checking missing packages, or regenerating `.rda` files\n\n## Parameter Reference\n\n### `scripts\u002Fmain.R`\n\n| Short | Long | Type | Default | Required | Description |\n|---|---|---|---|---|---|\n| `-f` | `--feature` | character | `\"\"` | Yes | Gene list separated by commas, Chinese commas, semicolons, tabs, or newlines |\n| `-o` | `--output_dir` | character | `.\u002Foutput\u002F` | No | Main output directory |\n| `-s` | `--sp` | character | `org.Hs.eg.db` | No | Species database |\n| `-g` | `--gene_type` | character | `SYMBOL` | No | Input gene ID type |\n| `-p` | `--pvalue_cutoff` | numeric | `0.05` | No | Enrichment p-value cutoff |\n| `-q` | `--qvalue_cutoff` | numeric | `0.2` | No | Enrichment q-value cutoff |\n| `-m` | `--pAdjustMethod` | character | `BH` | No | P-value adjustment method |\n|  | `--seed` | integer | `66` | No | Random seed |\n|  | `--go_input` | character | `NULL` | No | Optional GO `.rda`; defaults to `output_dir\u002Ftemp\u002FGO_list.rda` |\n|  | `--kegg_input` | character | `NULL` | No | Optional KEGG `.rda`; defaults to `output_dir\u002Ftemp\u002FKEGG_list.rda` |\n|  | `--outdir` | character | `NULL` | No | Plot output directory; defaults to `output_dir\u002Fplot` |\n|  | `--go_top_n` | numeric | `3` | No | Top GO terms per ontology |\n|  | `--kegg_top_n` | numeric | `3` | No | Top KEGG pathways |\n| `-w` | `--width` | numeric | `20` | No | Plot width in cm |\n|  | `--height` | numeric | `16` | No | Plot height in cm |\n|  | `--format` | character | `pdf` | No | Plot format: `pdf`, `png`, `svg` |\n|  | `--dpi` | numeric | `300` | No | DPI for raster output |\n| `-c` | `--colors` | character | `#E41A1C,#FFFF33,#2E86AB,#4DAF4A` | No | Colors for `GO:BP,GO:CC,GO:MF,KEGG` |\n|  | `--title` | character | `GO + KEGG Dot Chart` | No | Plot title |\n|  | `--xlab` | character | `NULL` | No | Horizontal axis label override |\n|  | `--ylab` | character | `NULL` | No | Vertical axis label override |\n|  | `--dot_size` | numeric | `4.5` | No | Dot size |\n|  | `--shape` | numeric | `19` | No | Dot shape |\n|  | `--rotate` \u002F `--no-rotate` | logical flag | `TRUE` | No | Rotate plot orientation on or off |\n|  | `--sorting` | character | `descending` | No | Dot sorting order |\n|  | `--label_width` | numeric | `35` | No | Label wrap width |\n|  | `--title_size` | numeric | `12` | No | Title font size |\n|  | `--axis_title_size` | numeric | `9` | No | Axis title font size |\n|  | `--axis_text_size` | numeric | `8` | No | Axis text font size |\n|  | `--legend_title_size` | numeric | `8` | No | Legend title font size |\n|  | `--legend_text_size` | numeric | `7` | No | Legend text font size |\n|  | `--legend_position` | character | `top` | No | Legend position |\n|  | `--plot_margin` | character | `10,10,10,10` | No | Plot margins: top,right,bottom,left |\n|  | `--axis_line_size` | numeric | `0.5` | No | Axis line width |\n|  | `--axis_ticks_size` | numeric | `0.5` | No | Axis tick width |\n|  | `--show_grid` | logical | `FALSE` | No | Show grid lines |\n| `-v` | `--verbose` | logical | `FALSE` | No | Enable verbose logging |\n\n## Input Format\n\n### Main Analysis Input\n- `--feature` should be provided as a gene list\n- Preferred separator: comma\n- Also accepted: Chinese commas, semicolons, tabs, and newlines\n- Leading and trailing spaces around each gene are removed automatically with trimming\n- The gene ID type must match `--gene_type`\n- `--sp` supports only `org.Hs.eg.db`, `org.Mm.eg.db`, and `org.Rn.eg.db`\n\nExamples:\n`TP53,EGFR,BRCA1,MYC`\n\n`TP53, EGFR, BRCA1, MYC`\n\n`TP53；EGFR；BRCA1；MYC`\n\n`TP53\\nEGFR\\nBRCA1\\nMYC`\n\nExample command with minimal input:\n`Rscript scripts\u002Fmain.R --feature \"TP53,EGFR,BRCA1,MYC\" --output_dir .\u002Fexample_output --sp org.Hs.eg.db --gene_type SYMBOL`\n\nExample command with custom plotting parameters:\n`Rscript scripts\u002Fmain.R --feature \"TP53,EGFR,BRCA1,MYC\" --output_dir .\u002Fexample_plot_output --sp org.Hs.eg.db --gene_type SYMBOL --go_top_n 5 --kegg_top_n 8 --colors \"#E41A1C,#FFFF33,#2E86AB,#4DAF4A\" --title \"Custom GO + KEGG Dot Chart\" --xlab=\"-log10(adjusted p-value)\" --ylab=\"Enriched Terms\" --width 24 --height 18 --label_width 40 --format png --dpi 300 --no-rotate --verbose`\n\nNote: values passed to `--xlab` or `--ylab` that start with `-` should use `--option=value` syntax to avoid being parsed as flags.\n\nNote: separator variants are supported only when they are passed inside a single `--feature` argument value.\n\n### Plot Input\n- Plotting is triggered by `scripts\u002Fmain.R`\n- `--go_input`: optional `.rda` file containing a `GO_list` object\n- `--kegg_input`: optional `.rda` file containing a `KEGG_list` object\n- If not provided, `main.R` uses the newly generated files under `output_dir\u002Ftemp`\n- Plotting requires result tables with at least `Description` and `p.adjust`\n\n## Output Files\n\n| File Name | Format | Description |\n|---|---|---|\n| `temp\u002FGO_df.csv` | CSV | GO enrichment result table |\n| `temp\u002FGO_list.rda` | RDA | Full GO enrichment object |\n| `temp\u002FKEGG_df.csv` | CSV | KEGG enrichment result table |\n| `temp\u002FKEGG_list.rda` | RDA | Full KEGG enrichment object |\n| `plot\u002Fgokegg_dot_chart.pdf` etc. | PDF\u002FPNG\u002FSVG | Combined GO\u002FKEGG dot chart |\n| `plot\u002Fgokegg_dot_chart_data.csv` | CSV | Combined plotting table used for the figure |\n| `plot\u002Fgokegg_dot_chart_data.rda` | RDA | Plot bundle with plotting data and parameters |\n| `session_info.txt` | TXT | Runtime session information |\n\n## Error Handling\n\nCommon error codes and fixes:\n- `SKILL_FILE_NOT_FOUND`: Input file does not exist; check the path and permissions\n- `SKILL_FILE_FORMAT_ERROR`: `.rda` cannot be read or is malformed; regenerate upstream results\n- `SKILL_MISSING_COLUMNS`: Result table is missing `Description` or `p.adjust`\n- `SKILL_EMPTY_DATA`: Input genes are empty after parsing, cannot be converted, or enrichment results are empty\n- `SKILL_INVALID_PARAMETER`: Required parameter missing, unsupported species, or insufficient color count\n- `SKILL_PACKAGE_NOT_FOUND`: Required package is not installed\n- `SKILL_ANALYSIS_FAILED`: Internal GO\u002FKEGG enrichment failure; verify `gene_type`, `sp`, and input genes\n\nFor detailed troubleshooting, read `references\u002Ftroubleshooting.md`.\n\n## Testing\n\nMinimal test dataset: use a small built-in gene list directly, with no extra files required.\n\nSmoke test command:\n`Rscript scripts\u002Fmain.R --feature \"TP53,EGFR,BRCA1,MYC\" --output_dir .\u002Ftest_output --sp org.Hs.eg.db --gene_type SYMBOL --pvalue_cutoff 0.05 --qvalue_cutoff 0.2 --pAdjustMethod BH --seed 66 --go_top_n 3 --kegg_top_n 3 --format pdf --verbose`\n\nExpected smoke-test outputs:\n- `.\u002Ftest_output\u002Ftemp\u002FGO_list.rda`\n- `.\u002Ftest_output\u002Ftemp\u002FKEGG_list.rda`\n- `.\u002Ftest_output\u002Ftemp\u002FGO_df.csv`\n- `.\u002Ftest_output\u002Ftemp\u002FKEGG_df.csv`\n- `.\u002Ftest_output\u002Fplot\u002Fgokegg_dot_chart.pdf`\n- `.\u002Ftest_output\u002Fplot\u002Fgokegg_dot_chart_data.csv`\n- `.\u002Ftest_output\u002Fplot\u002Fgokegg_dot_chart_data.rda`\n- `.\u002Ftest_output\u002Fsession_info.txt`\n- Exit status code `0`\n\nAutomated regression script:\n`Rscript test\u002Ftest_regressions.R`\n\nThe regression script covers:\n- Separator parsing with comma, Chinese semicolon, newline, tab, and mixed separators\n- Empty parsed-gene handling\n- Invalid `--plot_margin` validation\n- Plot input validation for missing GO\u002FKEGG inputs\n\nSeparator examples for manual CLI verification:\n`Rscript scripts\u002Fmain.R --feature \"TP53,EGFR,BRCA1,MYC\" --output_dir .\u002Ftest_sep_comma`\n`Rscript scripts\u002Fmain.R --feature \"TP53；EGFR；BRCA1；MYC\" --output_dir .\u002Ftest_sep_cn_semicolon`\n`Rscript scripts\u002Fmain.R --feature $'TP53\\nEGFR\\nBRCA1\\nMYC' --output_dir .\u002Ftest_sep_newline`\n`Rscript scripts\u002Fmain.R --feature $'TP53\\tEGFR\\tBRCA1\\tMYC' --output_dir .\u002Ftest_sep_tab`\n`Rscript scripts\u002Fmain.R --feature $'TP53； EGFR, BRCA1\tMYC' --output_dir .\u002Ftest_sep_mixed`\n\nNote: all separators must be passed inside a single `--feature` argument value.",{"name":5,"author":24,"license":15,"description":7},"AIPOCH","main","e0956dc9606356ab78468936b502e55a365282e2","specialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgokegg-analysis",0,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists","https:\u002F\u002Fgithub.com\u002Fmrsonord2240","2026-10-12 03:19:04",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add mrsonord2240\u002Fopenscience-specialists --skill gokegg-analysis",{"tool":38,"command":39},"bunx","bunx skills add mrsonord2240\u002Fopenscience-specialists --skill gokegg-analysis",{"tool":41,"command":42},"pnpm","pnpm dlx skills add mrsonord2240\u002Fopenscience-specialists --skill gokegg-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgokegg-analysis\u002FSKILL.md",true,[46,52,58,62,66,72,76,80,84,88],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"assets\u002FKEGG_pathway_name.txt","ASSET","资产文件",81701,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgokegg-analysis\u002Fassets\u002FKEGG_pathway_name.txt",{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Falgorithm.md","REFERENCE","参考文档",5093,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgokegg-analysis\u002Freferences\u002Falgorithm.md",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fcli-guide.md",4357,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgokegg-analysis\u002Freferences\u002Fcli-guide.md",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Ftroubleshooting.md",5919,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgokegg-analysis\u002Freferences\u002Ftroubleshooting.md",{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"scripts\u002Fdochart.R","SCRIPT","脚本",4620,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgokegg-analysis\u002Fscripts\u002Fdochart.R",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"scripts\u002Ffunctions.R",6017,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgokegg-analysis\u002Fscripts\u002Ffunctions.R",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Fmain.R",7496,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgokegg-analysis\u002Fscripts\u002Fmain.R",{"path":81,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Frun_analysis.R",3596,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgokegg-analysis\u002Fscripts\u002Frun_analysis.R",{"path":85,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":86,"sourceHtmlUrl":87},"scripts\u002Futils.R",6812,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgokegg-analysis\u002Fscripts\u002Futils.R",{"path":89,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":90,"sourceHtmlUrl":91},"test\u002Fdata\u002Fgene.txt",19,"https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Ftumor-immune-microenvironment-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fgokegg-analysis\u002Ftest\u002Fdata\u002Fgene.txt",[93,101,108,115,122,129],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7CW36A6QAGWFE2C008M1XPG","bio-workflows-metabolomics-pipeline","Orchestrates the untargeted LC-MS metabolomics pipeline end-to-end (xcms 4.x feature extraction, QC\u002Fdrift\u002Fnormalization, confidence-stratified annotation, permutation-validated statistics, background-aware pathway mapping), naming what each stage decides and where it silently fails. Use when running a full LC-MS metabolomics study from raw mzML to enriched pathways and needing the honest handoffs between stages. Each stage defers to its component skill for parameters and traps; for stable-isotope flux (a separate branch, not this untargeted flow) see metabolomics\u002Fisotope-tracing.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Funtargeted-metabolomics-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fbio-workflows-metabolomics-pipeline\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7CW2Y18623NA2S1Y30FRQW1","bio-metabolomics-xcms-preprocessing","Programmatic untargeted LC-MS feature extraction in R with the modern xcms 4.x MsExperiment\u002FXcmsExperiment API, taking raw mzML to a feature table via CentWave peak detection, retention-time alignment, peak-density correspondence, gap-filling, CAMERA redundancy collapse, and built-in QC feature filtering. Use when converting centroided LC-MS runs into a features-by-samples matrix and deciding centWave\u002Fgrouping\u002Falignment parameters. For drift correction and QC\u002FCV filtering execution see metabolomics\u002Fnormalization-qc; for metabolite identification see metabolomics\u002Fmetabolite-annotation; for the MS-DIAL GUI alternative with MS2Dec deconvolution see metabolomics\u002Fmsdial-preprocessing; for downstream statistics see metabolomics\u002Fstatistical-analysis.","https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Funtargeted-metabolomics-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fbio-metabolomics-xcms-preprocessing\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M7CW2M364HVWPNQEKE2WP4PP","bio-metabolomics-statistical-analysis","Decision-grade statistical analysis for metabolomics intensity tables. Covers transformation and scaling (Pareto vs unit-variance as a hidden hypothesis), unsupervised structure (PCA\u002FHCA for QC), permutation-validated PLS-DA\u002FOPLS-DA (R2 vs Q2, double CV, VIP as heuristic), univariate testing (Welch\u002FMann-Whitney\u002FANOVA\u002FLMM with covariate adjustment), and dependence-aware multiple testing. Use when testing which metabolites differ, building or validating a discriminant model, choosing a scaling, or correcting many correlated tests. For sample-wise normalization\u002Fdrift correction see metabolomics\u002Fnormalization-qc; for ML classifiers and selection-inside-CV leakage see machine-learning\u002Fbiomarker-discovery and machine-learning\u002Fmodel-validation; for pathway interpretation see metabolomics\u002Fpathway-mapping; for design\u002Fpower\u002Fmultiplicity regime see experimental-design\u002Fmultiple-testing.","https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Funtargeted-metabolomics-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fbio-metabolomics-statistical-analysis\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M7CW2BCBF851WYE03Z8XPEDQ","bio-metabolomics-pathway-mapping","Maps metabolomics results to biological pathways via over-representation (ORA), metabolite-set enrichment (MSEA\u002FQEA), mummichog\u002FPSEA on raw m\u002Fz peaks, and network-diffusion enrichment (FELLA), with correct background-set construction and honest interpretive ceilings. Use when interpreting differential metabolites or an untargeted LC-MS feature table in pathway context, choosing ORA vs MSEA vs mummichog vs topology, or setting the reference\u002Fbackground set. For annotation confidence levels feeding ORA see metabolomics\u002Fmetabolite-annotation; for gene-set concepts see pathway-analysis\u002Fgo-enrichment and pathway-analysis\u002Fgsea; for joint gene+metabolite pathways see multi-omics-integration\u002Fmofa-integration.","https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Funtargeted-metabolomics-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fbio-metabolomics-pathway-mapping\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":19},"01M7CW21NSZMCPMF7D9CHJM718","bio-metabolomics-normalization-qc","Designs QC, corrects signal drift, removes batch effects, filters features, normalizes samples, and imputes missing values for untargeted LC-MS\u002FGC-MS metabolomics, framing each step as a measurement model that can create or erase biological signal. Use when processing a peak\u002Ffeature table before statistical analysis, choosing a drift-correction or sample-normalization method, deciding QC RSD vs D-ratio filtering, or handling left-censored missing values. The feature table is produced by metabolomics\u002Fxcms-preprocessing or metabolomics\u002Fmsdial-preprocessing; transformation\u002Fscaling for modeling defers to metabolomics\u002Fstatistical-analysis; cross-study design issues link to experimental-design\u002Fbatch-design.","https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Funtargeted-metabolomics-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fbio-metabolomics-normalization-qc\u002FSKILL.md",[],[],{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":19},"01M7CW1SWVM0NYHVE6Q7MA3G7R","bio-metabolomics-msdial-preprocessing","Runs the MS-DIAL preprocessing workflow (peak picking, MS2Dec spectral deconvolution, alignment, gap-filling) and imports the alignment-result table into R or Python with honest filtering. Use when preprocessing LC-MS DDA\u002FDIA (SWATH) or GC-MS raw data with MS-DIAL, deciding MS-DIAL vs XCMS, configuring the MSDIALCUI console run, or parsing an MS-DIAL export into a clean feature matrix. For programmatic R peak detection and the feature-table-as-artifact framing see metabolomics\u002Fxcms-preprocessing; for lipid annotation mode see metabolomics\u002Flipidomics; for MSI-level confidence honesty see metabolomics\u002Fmetabolite-annotation; for drift correction and QC see metabolomics\u002Fnormalization-qc.","https:\u002F\u002Fgithub.com\u002Fmrsonord2240\u002Fopenscience-specialists\u002Fblob\u002Fmain\u002Fspecialists\u002Funtargeted-metabolomics-analyst\u002Fversions\u002F1.0.0\u002Fpackage\u002Fskills\u002Fbio-metabolomics-msdial-preprocessing\u002FSKILL.md",[],[]]