본문으로 건너뛰기
cccskills
무료GitHub에 공개

gokegg-analysis

Run GO and KEGG enrichment on gene lists from bulk RNA-seq or microarray studies, then create a combined dot chart and result files. Supports common gene ID types and human, mouse, or rat databases.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Use when performing GO and KEGG enrichment on a gene list from bulk RNA-seq or microarray studies, then generating a combined GO/KEGG dot chart. NOT for single-cell RNA-seq, methylation data, or non-expression data.

실행 점수 미검증

설치 방법 보기

이럴 때 유용합니다

  • バルクRNA-seqの遺伝子リストを機能解析したいとき
  • マイクロアレイ結果から関連経路を調べたいとき
  • GOとKEGGの結果を一枚の図にまとめたいとき

포함된 파일(12)

  • SKILL.md10.5 KB
  • assets/KEGG_pathway_name.txt79.8 KB
  • eval_report_gokegg_result.json14.1 KB
  • references/algorithm.md5.0 KB
  • references/cli-guide.md4.3 KB
  • references/troubleshooting.md5.8 KB
  • scripts/dochart.R4.5 KB
  • scripts/functions.R5.9 KB
  • scripts/main.R7.3 KB
  • scripts/run_analysis.R3.5 KB
  • scripts/utils.R6.7 KB
  • test/data/gene.txt19 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Source: https://github.com/aipoch/medical-research-skills

When To Read External Files

SituationFile To ReadPurpose
Need algorithm detailsreferences/algorithm.mdStatistical methods and formulas
Need to run the analysisscripts/main.RFull execution command
Encounter an errorreferences/troubleshooting.mdTroubleshooting guidance
Need CLI examplesreferences/cli-guide.mdParameter usage examples

When To Use

Use this skill for:

  • GO and KEGG enrichment from a gene list derived from bulk RNA-seq or microarray studies
  • Supported gene ID types: SYMBOL, ENSEMBL, ENTREZID
  • Supported species databases: org.Hs.eg.db, org.Mm.eg.db, org.Rn.eg.db

Do not use this skill for:

  • Single-cell RNA-seq analysis
  • Methylation, proteomics, or non-expression omics workflows
  • Differential expression testing from raw count matrices

Usage

Main analysis and plotting: Rscript scripts/main.R --feature "TP53,EGFR,BRCA1,MYC" --output_dir ./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

Notes:

  • scripts/main.R is the only command-line entry point
  • scripts/dochart.R currently provides plotting functions and is sourced by scripts/main.R
  • If --go_input, --kegg_input, or --outdir are omitted, main.R uses output_dir/temp/GO_list.rda, output_dir/temp/KEGG_list.rda, and output_dir/plot automatically

Agent Output

On success, the agent should report:

  • Whether GO enrichment completed successfully
  • Whether KEGG enrichment completed successfully
  • The normalized input gene count after trimming and parsing
  • The main output directory
  • The generated files, especially GO_df.csv, KEGG_df.csv, GO_list.rda, KEGG_list.rda, and the combined dot chart
  • The path to session_info.txt

Post-run checklist:

  • Re-parse the original --feature string using the documented separator rules and report the deduplicated gene count after trimming
  • Check temp/GO_df.csv and temp/GO_list.rda before claiming GO success
  • Check temp/KEGG_df.csv and temp/KEGG_list.rda before claiming KEGG success
  • Check plot/gokegg_dot_chart.<format>, plot/gokegg_dot_chart_data.csv, plot/gokegg_dot_chart_data.rda, and session_info.txt before claiming full success
  • Summarize the final result with: parsed gene count, GO status, KEGG status, plot status, output directory, and key output files

On failure, the agent should report:

  • The exact SKILL_* error code
  • The failing step, such as gene parsing, ID conversion, enrichment, or plotting
  • The actionable next step, such as fixing input IDs, checking missing packages, or regenerating .rda files

Parameter Reference

scripts/main.R

ShortLongTypeDefaultRequiredDescription
-f--featurecharacter""YesGene list separated by commas, Chinese commas, semicolons, tabs, or newlines
-o--output_dircharacter./output/NoMain output directory
-s--spcharacterorg.Hs.eg.dbNoSpecies database
-g--gene_typecharacterSYMBOLNoInput gene ID type
-p--pvalue_cutoffnumeric0.05NoEnrichment p-value cutoff
-q--qvalue_cutoffnumeric0.2NoEnrichment q-value cutoff
-m--pAdjustMethodcharacterBHNoP-value adjustment method
--seedinteger66NoRandom seed
--go_inputcharacterNULLNoOptional GO .rda; defaults to output_dir/temp/GO_list.rda
--kegg_inputcharacterNULLNoOptional KEGG .rda; defaults to output_dir/temp/KEGG_list.rda
--outdircharacterNULLNoPlot output directory; defaults to output_dir/plot
--go_top_nnumeric3NoTop GO terms per ontology
--kegg_top_nnumeric3NoTop KEGG pathways
-w--widthnumeric20NoPlot width in cm
--heightnumeric16NoPlot height in cm
--formatcharacterpdfNoPlot format: pdf, png, svg
--dpinumeric300NoDPI for raster output
-c--colorscharacter#E41A1C,#FFFF33,#2E86AB,#4DAF4ANoColors for GO:BP,GO:CC,GO:MF,KEGG
--titlecharacterGO + KEGG Dot ChartNoPlot title
--xlabcharacterNULLNoHorizontal axis label override
--ylabcharacterNULLNoVertical axis label override
--dot_sizenumeric4.5NoDot size
--shapenumeric19NoDot shape
--rotate / --no-rotatelogical flagTRUENoRotate plot orientation on or off
--sortingcharacterdescendingNoDot sorting order
--label_widthnumeric35NoLabel wrap width
--title_sizenumeric12NoTitle font size
--axis_title_sizenumeric9NoAxis title font size
--axis_text_sizenumeric8NoAxis text font size
--legend_title_sizenumeric8NoLegend title font size
--legend_text_sizenumeric7NoLegend text font size
--legend_positioncharactertopNoLegend position
--plot_margincharacter10,10,10,10NoPlot margins: top,right,bottom,left
--axis_line_sizenumeric0.5NoAxis line width
--axis_ticks_sizenumeric0.5NoAxis tick width
--show_gridlogicalFALSENoShow grid lines
-v--verboselogicalFALSENoEnable verbose logging

Input Format

Main Analysis Input

  • --feature should be provided as a gene list
  • Preferred separator: comma
  • Also accepted: Chinese commas, semicolons, tabs, and newlines
  • Leading and trailing spaces around each gene are removed automatically with trimming
  • The gene ID type must match --gene_type
  • --sp supports only org.Hs.eg.db, org.Mm.eg.db, and org.Rn.eg.db

Examples: TP53,EGFR,BRCA1,MYC

TP53, EGFR, BRCA1, MYC

TP53;EGFR;BRCA1;MYC

TP53\nEGFR\nBRCA1\nMYC

Example command with minimal input: Rscript scripts/main.R --feature "TP53,EGFR,BRCA1,MYC" --output_dir ./example_output --sp org.Hs.eg.db --gene_type SYMBOL

Example command with custom plotting parameters: Rscript scripts/main.R --feature "TP53,EGFR,BRCA1,MYC" --output_dir ./example_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

Note: values passed to --xlab or --ylab that start with - should use --option=value syntax to avoid being parsed as flags.

Note: separator variants are supported only when they are passed inside a single --feature argument value.

Plot Input

  • Plotting is triggered by scripts/main.R
  • --go_input: optional .rda file containing a GO_list object
  • --kegg_input: optional .rda file containing a KEGG_list object
  • If not provided, main.R uses the newly generated files under output_dir/temp
  • Plotting requires result tables with at least Description and p.adjust

Output Files

File NameFormatDescription
temp/GO_df.csvCSVGO enrichment result table
temp/GO_list.rdaRDAFull GO enrichment object
temp/KEGG_df.csvCSVKEGG enrichment result table
temp/KEGG_list.rdaRDAFull KEGG enrichment object
plot/gokegg_dot_chart.pdf etc.PDF/PNG/SVGCombined GO/KEGG dot chart
plot/gokegg_dot_chart_data.csvCSVCombined plotting table used for the figure
plot/gokegg_dot_chart_data.rdaRDAPlot bundle with plotting data and parameters
session_info.txtTXTRuntime session information

Error Handling

Common error codes and fixes:

  • SKILL_FILE_NOT_FOUND: Input file does not exist; check the path and permissions
  • SKILL_FILE_FORMAT_ERROR: .rda cannot be read or is malformed; regenerate upstream results
  • SKILL_MISSING_COLUMNS: Result table is missing Description or p.adjust
  • SKILL_EMPTY_DATA: Input genes are empty after parsing, cannot be converted, or enrichment results are empty
  • SKILL_INVALID_PARAMETER: Required parameter missing, unsupported species, or insufficient color count
  • SKILL_PACKAGE_NOT_FOUND: Required package is not installed
  • SKILL_ANALYSIS_FAILED: Internal GO/KEGG enrichment failure; verify gene_type, sp, and input genes

For detailed troubleshooting, read references/troubleshooting.md.

Testing

Minimal test dataset: use a small built-in gene list directly, with no extra files required.

Smoke test command: Rscript scripts/main.R --feature "TP53,EGFR,BRCA1,MYC" --output_dir ./test_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

Expected smoke-test outputs:

  • ./test_output/temp/GO_list.rda
  • ./test_output/temp/KEGG_list.rda
  • ./test_output/temp/GO_df.csv
  • ./test_output/temp/KEGG_df.csv
  • ./test_output/plot/gokegg_dot_chart.pdf
  • ./test_output/plot/gokegg_dot_chart_data.csv
  • ./test_output/plot/gokegg_dot_chart_data.rda
  • ./test_output/session_info.txt
  • Exit status code 0

Automated regression script: Rscript test/test_regressions.R

The regression script covers:

  • Separator parsing with comma, Chinese semicolon, newline, tab, and mixed separators
  • Empty parsed-gene handling
  • Invalid --plot_margin validation
  • Plot input validation for missing GO/KEGG inputs

Separator examples for manual CLI verification: Rscript scripts/main.R --feature "TP53,EGFR,BRCA1,MYC" --output_dir ./test_sep_comma Rscript scripts/main.R --feature "TP53;EGFR;BRCA1;MYC" --output_dir ./test_sep_cn_semicolon Rscript scripts/main.R --feature $'TP53\nEGFR\nBRCA1\nMYC' --output_dir ./test_sep_newline Rscript scripts/main.R --feature $'TP53\tEGFR\tBRCA1\tMYC' --output_dir ./test_sep_tab Rscript scripts/main.R --feature $'TP53; EGFR, BRCA1 MYC' --output_dir ./test_sep_mixed

Note: all separators must be passed inside a single --feature argument value.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Condense an academic paper into a structured abstract of up to 250 words, organized by background, objective, methods, results, and conclusion. It aims to retain key quantitative findings and supports papers from several research fields; figures and charts are not interpreted.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Creating a concise abstract from a research paper
  • Summarizing empirical studies while retaining key statistics
  • Preparing structured summaries across multiple papers
aipoch/medical-research-skills2천2026년 9월 17일 업데이트

Precision editing tool that reduces abstract word count through intelligent compression techniques, maintaining scientific rigor while meeting strict journal and conference requirements.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aipoch/medical-research-skills2천2026년 9월 17일 업데이트

Refines long medical academic texts into SCI-style unstructured Chinese and English abstracts; use when you need to condense drafts/reports/summaries into bilingual abstracts and generate Summary_Report.md.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aipoch/medical-research-skills2천2026년 9월 17일 업데이트

Generates submission-ready Elsevier/SCI Highlights from manuscript text or extracted PDF/DOCX/TXT content. Use when a user needs 3-5 concise, evidence-grounded highlight bullets for a research paper, review, meta-analysis, case report, or bioinformatics manuscript.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aipoch/medical-research-skills2천2026년 9월 17일 업데이트

Generates complete FAERS pharmacovigilance study designs for multi-drug or class-level safety comparison inside one predefined SOC or AE family using active comparators, disproportionality analysis, subgroup characterization, and reviewer-facing evidence control.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aipoch/medical-research-skills2천2026년 9월 17일 업데이트

Analyze data with `adme-property-predictor` using a reproducible workflow, explicit validation, and structured outputs for review-ready interpretation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aipoch/medical-research-skills2천2026년 9월 17일 업데이트

aipoch의 스킬 모두 보기

이 스킬의 문제 신고