[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CZ43EMWM7MER7R0FH2X6JW":3,"skill-same:01M6CZ43EMWM7MER7R0FH2X6JW":97},{"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":25,"linkOnly":26,"markdownContent":27,"markdownBody":28,"frontMatter":29,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M6CZ43EMWM7MER7R0FH2X6JW","rnaseq-functional-enrichment",null,"Gene set enrichment and over-representation analysis using clusterProfiler, gseapy, or fgsea, with GO, KEGG, and Reactome pathway databases.","Scientific-Tooling\u002Fstructured-intelligence","Scientific-Tooling","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F267453265?v=4","01M6CZ1SE6GGD4F67EAQ0PVX38","Scientific Tooling","01M6CZ1SJKCFVGH10Z3A152K02",4,"MIT","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Frnaseq-functional-enrichment\u002FSKILL.md",[],[19,20,21,22,23,24],"enrichment","rnaseq functional enrichment","go","SET","analysis","databases","2026-11-10 10:12:30",false,"---\nname: rnaseq-functional-enrichment\ndescription: Gene set enrichment and over-representation analysis using clusterProfiler, gseapy, or fgsea, with GO, KEGG, and Reactome pathway databases.\n---\n\n# Skill: RNA-seq Functional Enrichment\n\n## Use When\n\n- User has a DE results table and wants to know which biological processes, pathways, or functions are enriched in up- or down-regulated genes\n- User wants GO (biological process, molecular function, cellular component) enrichment\n- User wants KEGG or Reactome pathway enrichment\n- User wants gene set enrichment analysis (GSEA) using a ranked gene list\n- User wants to compare enrichment across multiple contrasts or conditions\n\n## Inputs\n\n- Required:\n  - DE results table (TSV with gene_id and padj or p-value columns) **OR** pre-ranked gene list (gene_id, ranking metric such as -log10(p)*sign(log2FC))\n- Optional:\n  - Organism database (default: `org.Hs.eg.db` for human)\n  - Gene ID type: `SYMBOL`, `ENSEMBL`, or `ENTREZID` (default: `SYMBOL`)\n  - FDR cutoff (default: `0.05`)\n  - Analysis type: `ora` or `gsea` (default: `ora` for DE table input, `gsea` for ranked list)\n  - Pathway databases: `go`, `kegg`, `reactome`, `msigdb` (default: `go,kegg`)\n  - Minimum\u002Fmaximum gene set size (default: min=5, max=500)\n  - Output directory (default: `enrichment_results`)\n  - Tool: `clusterProfiler` or `gseapy` (default: `clusterProfiler` for R environments; `gseapy` for Python-only environments)\n\n## Workflow\n\n1. Read DE results; extract gene IDs of significant genes (ORA) or rank all genes by -log10(padj)*sign(log2FoldChange) (GSEA). Strip Ensembl version suffixes (e.g., ENSG00000123.5 → ENSG00000123) if present.\n2. Map gene IDs to ENTREZID using `bitr()` (clusterProfiler) or an annotation database. Deduplicate any genes that map to multiple Entrez IDs.\n3. For ORA: run `enrichGO()` (BP, CC, MF), `enrichKEGG()`, and optionally `enrichPathway()` (Reactome) on the significant gene list.\n4. For GSEA: run `gseGO()` (BP) and `gseKEGG()` on the full ranked gene vector.\n5. Filter results by FDR threshold and gene set size limits.\n6. Generate plots: dotplot (top 20 terms), barplot (top 20 pathways), network\u002Femapplot (pathway overlap), gene-concept network (cnetplot).\n7. Write all enrichment result tables as TSV and plots as PDFs to the output directory.\n8. Report the top enriched terms per database.\n\n## Output Contract\n\n- GO enrichment table (TSV: ID, Description, GeneRatio, BgRatio, pvalue, p.adjust, geneID) — one file per ontology (BP, CC, MF)\n- KEGG enrichment table (same format)\n- Reactome enrichment table (same format, if requested)\n- Dotplot PDF (top 20 GO BP, CC, MF terms)\n- Barplot PDF (top 20 KEGG pathways)\n- Network plot PDF (pathway overlap or gene-concept overlap)\n- Session info text file\n\n## Limits\n\n- clusterProfiler requires R with `org.Hs.eg.db`, `ReactomePA`, `DOSE`, and `enrichplot` installed (see knowledge\u002Fsources\u002Fgenomics\u002Fr-environment-setup.md)\n- KEGG enrichment requires internet access (KEGG REST API) unless a local cache is used\n- Reactome requires the `ReactomePA` package\n- Gene ID conversion (`bitr`) may lose genes without an ENTREZID mapping (~10-20% for Ensembl IDs with version suffixes)\n- GSEA requires a minimum of ~100 genes per gene set; rare pathways may be untestable\n- Common failure cases: Ensembl IDs with version suffixes (ENSG00000123.5) must be stripped before ID conversion; KEGG organism code must match the species (hsa for human, mmu for mouse); gene sets with \u003C5 or >500 genes are excluded by default size filters\n","# Skill: RNA-seq Functional Enrichment\n\n## Use When\n\n- User has a DE results table and wants to know which biological processes, pathways, or functions are enriched in up- or down-regulated genes\n- User wants GO (biological process, molecular function, cellular component) enrichment\n- User wants KEGG or Reactome pathway enrichment\n- User wants gene set enrichment analysis (GSEA) using a ranked gene list\n- User wants to compare enrichment across multiple contrasts or conditions\n\n## Inputs\n\n- Required:\n  - DE results table (TSV with gene_id and padj or p-value columns) **OR** pre-ranked gene list (gene_id, ranking metric such as -log10(p)*sign(log2FC))\n- Optional:\n  - Organism database (default: `org.Hs.eg.db` for human)\n  - Gene ID type: `SYMBOL`, `ENSEMBL`, or `ENTREZID` (default: `SYMBOL`)\n  - FDR cutoff (default: `0.05`)\n  - Analysis type: `ora` or `gsea` (default: `ora` for DE table input, `gsea` for ranked list)\n  - Pathway databases: `go`, `kegg`, `reactome`, `msigdb` (default: `go,kegg`)\n  - Minimum\u002Fmaximum gene set size (default: min=5, max=500)\n  - Output directory (default: `enrichment_results`)\n  - Tool: `clusterProfiler` or `gseapy` (default: `clusterProfiler` for R environments; `gseapy` for Python-only environments)\n\n## Workflow\n\n1. Read DE results; extract gene IDs of significant genes (ORA) or rank all genes by -log10(padj)*sign(log2FoldChange) (GSEA). Strip Ensembl version suffixes (e.g., ENSG00000123.5 → ENSG00000123) if present.\n2. Map gene IDs to ENTREZID using `bitr()` (clusterProfiler) or an annotation database. Deduplicate any genes that map to multiple Entrez IDs.\n3. For ORA: run `enrichGO()` (BP, CC, MF), `enrichKEGG()`, and optionally `enrichPathway()` (Reactome) on the significant gene list.\n4. For GSEA: run `gseGO()` (BP) and `gseKEGG()` on the full ranked gene vector.\n5. Filter results by FDR threshold and gene set size limits.\n6. Generate plots: dotplot (top 20 terms), barplot (top 20 pathways), network\u002Femapplot (pathway overlap), gene-concept network (cnetplot).\n7. Write all enrichment result tables as TSV and plots as PDFs to the output directory.\n8. Report the top enriched terms per database.\n\n## Output Contract\n\n- GO enrichment table (TSV: ID, Description, GeneRatio, BgRatio, pvalue, p.adjust, geneID) — one file per ontology (BP, CC, MF)\n- KEGG enrichment table (same format)\n- Reactome enrichment table (same format, if requested)\n- Dotplot PDF (top 20 GO BP, CC, MF terms)\n- Barplot PDF (top 20 KEGG pathways)\n- Network plot PDF (pathway overlap or gene-concept overlap)\n- Session info text file\n\n## Limits\n\n- clusterProfiler requires R with `org.Hs.eg.db`, `ReactomePA`, `DOSE`, and `enrichplot` installed (see knowledge\u002Fsources\u002Fgenomics\u002Fr-environment-setup.md)\n- KEGG enrichment requires internet access (KEGG REST API) unless a local cache is used\n- Reactome requires the `ReactomePA` package\n- Gene ID conversion (`bitr`) may lose genes without an ENTREZID mapping (~10-20% for Ensembl IDs with version suffixes)\n- GSEA requires a minimum of ~100 genes per gene set; rare pathways may be untestable\n- Common failure cases: Ensembl IDs with version suffixes (ENSG00000123.5) must be stripped before ID conversion; KEGG organism code must match the species (hsa for human, mmu for mouse); gene sets with \u003C5 or >500 genes are excluded by default size filters\n",{"name":5,"description":7},"main","5118e7fda890e9aa819cb71e003cd243d3a31970","skills\u002Frnaseq-functional-enrichment",1,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence","https:\u002F\u002Fgithub.com\u002FScientific-Tooling","2026-11-03 00:01:40",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add Scientific-Tooling\u002Fstructured-intelligence --skill rnaseq-functional-enrichment",{"tool":43,"command":44},"bunx","bunx skills add Scientific-Tooling\u002Fstructured-intelligence --skill rnaseq-functional-enrichment",{"tool":46,"command":47},"pnpm","pnpm dlx skills add Scientific-Tooling\u002Fstructured-intelligence --skill rnaseq-functional-enrichment","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Frnaseq-functional-enrichment\u002FSKILL.md",true,[51,57,61,65,71,75,79,83,89,93],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"agents\u002Fclaude.yaml","REFERENCE","参考文档",341,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Frnaseq-functional-enrichment\u002Fagents\u002Fclaude.yaml",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"agents\u002Fopenai.yaml",342,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Frnaseq-functional-enrichment\u002Fagents\u002Fopenai.yaml",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"agents\u002FREADME.md",322,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Frnaseq-functional-enrichment\u002Fagents\u002FREADME.md",{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"assets\u002F.gitkeep","ASSET","资产文件",0,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Frnaseq-functional-enrichment\u002Fassets\u002F.gitkeep",{"path":72,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":73,"sourceHtmlUrl":74},"config.yaml",332,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Frnaseq-functional-enrichment\u002Fconfig.yaml",{"path":76,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fenrichment-tools.md",6668,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Frnaseq-functional-enrichment\u002Freferences\u002Fenrichment-tools.md",{"path":80,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002FREADME.md",68,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Frnaseq-functional-enrichment\u002Freferences\u002FREADME.md",{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Frun_enrichment.py","SCRIPT","脚本",15910,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Frnaseq-functional-enrichment\u002Fscripts\u002Frun_enrichment.py",{"path":90,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":91,"sourceHtmlUrl":92},"scripts\u002Frun_enrichment.R",24805,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Frnaseq-functional-enrichment\u002Fscripts\u002Frun_enrichment.R",{"path":94,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":95,"sourceHtmlUrl":96},"scripts\u002Frun.sh",5889,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Frnaseq-functional-enrichment\u002Fscripts\u002Frun.sh",[98,121,133,146,160,172],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":25},"01M6CZ6S2C54G03K71G77H22KE","structured-intelligence-skill-creator","Create or update repository skills that conform to local templates, provider metadata requirements, registry rules, and validation workflows.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstructured-intelligence-skill-creator\u002FSKILL.md",[],[105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120],"structured intelligence skill creator","skill creator","intelligence","structured","create","requirements","workflows","provider","update","registry","local","validation","metadata","repository","templates","Rules",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":25},"01M6CZ6M3JFN400406T1NPWNER","stat-survival-analysis","Estimate and compare survival functions using Kaplan-Meier curves and log-rank test, with optional Cox proportional hazards regression.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-survival-analysis\u002FSKILL.md",[],[23,128,129,130,131,132],"stat survival analysis","regression","log","functions","test",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":25},"01M6CZ6G5JPDZASM4DRD9QCTEE","stat-pca","Perform PCA on a numeric data matrix to reduce dimensionality, visualize sample structure, and identify top contributing features.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-pca\u002FSKILL.md",[],[140,141,142,143,144,145],"stat pca","sample","visualize","contributing","data","structure",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":25},"01M6CZ6D9A3N6849BT9VYFSBK5","stat-pairwise-correlation","Compute pairwise correlations and significance tests across all numeric variables, and produce a correlation heatmap.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-pairwise-correlation\u002FSKILL.md",[],[153,154,155,156,157,158,159],"stat pairwise correlation","correlation","produce","heatmap","compute","across","tests",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":25},"01M6CZ69DMF1PDKW83RWARQX6D","stat-nonlinear-embedding","Embed high-dimensional data into 2D using t-SNE or UMAP for exploratory visualization of sample or cell relationships.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-nonlinear-embedding\u002FSKILL.md",[],[167,168,144,169,141,170,171],"stat nonlinear embedding","visualization","relationships","cell","exploratory visualization",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":25},"01M6CZ65YZGJV40F2FZNH04PBS","stat-logistic-regression","Fit a logistic regression model for binary outcomes, report odds ratios and model performance (AUC-ROC, confusion matrix).","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-logistic-regression\u002FSKILL.md",[],[129,179,180,181,182,183],"stat logistic regression","report","model","outcomes","performance"]