{"id":81563,"date":"2026-11-30T01:57:59","date_gmt":"2026-11-29T17:57:59","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=81563"},"modified":"2026-11-30T12:12:43","modified_gmt":"2026-11-30T04:12:43","slug":"deseq2-agent-series-2-enrichment-pitfalls","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/deseq2-agent-series-2-enrichment-pitfalls\/","title":{"rendered":"Agent \u8dd1 GO\/KEGG \u5bcc\u96c6\u5b9e\u5f55\uff1aKEGG \u8d85\u65f6\u3001\u5e7d\u7075 snow \u4e0e 0 \u6761\u663e\u8457\u901a\u8def\u7684\u771f\u76f8"},"content":{"rendered":"<p style=\"background:#eef7f5;padding:10px 16px;border-radius:8px;font-size:14px;\"><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/deseq2-agent-series\/\" target=\"_blank\" rel=\"noopener\">\u2190 \u8fd4\u56de\u7cfb\u5217\u76ee\u5f55\uff1a\u300cAgent \u5b9e\u8dd1\u8e29\u5751\u5b9e\u5f55\u300d12 \u671f\u5168\u5217\u8868<\/a><\/p>\n<blockquote>\n<p>\u672c\u6587\u662f\u300cAgent \u5b9e\u8dd1\u8e29\u5751\u5b9e\u5f55\u300d\u7cfb\u5217\u7b2c 2 \u671f\u3002\u7b2c 1 \u671f\u7528 Agent \u8dd1\u901a\u4e86 DESeq2 \u5dee\u5f02\u5206\u6790\uff08<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/deseq2-agent-full-run-pitfalls\/\" target=\"_blank\" rel=\"noopener\">74 \u79d2\u51fa\u5168\u56fe\uff0c8 \u4e2a\u9ad8\u9891\u8e29\u5751<\/a>\uff09\uff0c\u62ff\u5230 4081 \u4e2a\u663e\u8457\u57fa\u56e0\u3002\u8fd9\u4e00\u671f\u63a5\u7740\u95ee\u4e00\u4e2a\u6240\u6709\u4eba\u90fd\u7ed5\u4e0d\u5f00\u7684\u95ee\u9898\uff1a<strong>\u8fd9 4081 \u4e2a\u57fa\u56e0\u5230\u5e95\u5bcc\u96c6\u5728\u4ec0\u4e48\u901a\u8def\u4e0a\uff1f<\/strong><\/p>\n<\/blockquote>\n<p>><\/p>\n<blockquote>\n<p>\u5b9e\u6d4b\u73af\u5883\uff1aWindows Server \/ Xeon E5-2680 v2 \/ 32 GB \/ R 4.5.2 \/ clusterProfiler 4.18.4 \/ fgsea 1.36.2 \/ GO.db 3.22.0\u3002\u6240\u6709\u62a5\u9519\u3001\u6570\u5b57\u3001\u56fe\u6765\u81ea\u672c\u6b21\u771f\u5b9e\u8fd0\u884c\u3002<\/p>\n<\/blockquote>\n<h2>\u4e00\u3001\u4e3a\u4ec0\u4e48\u5bcc\u96c6\u5206\u6790\u6bd4\u5dee\u5f02\u5206\u6790\u66f4\u5bb9\u6613\u8e29\u5751<\/h2>\n<p>\u5dee\u5f02\u5206\u6790\u7684\u8f93\u5165\u8f93\u51fa\u662f\u660e\u786e\u7684\uff1acounts \u77e9\u9635\u8fdb\uff0c\u57fa\u56e0\u5217\u8868\u51fa\u3002\u5bcc\u96c6\u5206\u6790\u4e0d\u4e00\u6837\u2014\u2014\u5b83\u6709<strong>\u4e09\u4e2a\u4e0a\u6e38\u51b3\u7b56<\/strong>\u5728\u4f60\u70b9\u56de\u8f66\u4e4b\u524d\u5c31\u8981\u505a\u5bf9\uff0c\u800c\u4e14\u6bcf\u4e2a\u90fd\u6709\u5751\uff1a<\/p>\n<p>1. <strong>\u57fa\u56e0\u5217\u8868\u600e\u4e48\u5b9a<\/strong>\uff1a\u53ea\u5582\u663e\u8457\u57fa\u56e0\uff08ORA\uff09\u8fd8\u662f\u5582\u5b8c\u6574\u6392\u5e8f\u5217\u8868\uff08GSEA\uff09\uff1f 2. <strong>\u80cc\u666f\u57fa\u56e0\u96c6\u600e\u4e48\u5b9a<\/strong>\uff1auniverse \u8bbe\u4e0d\u8bbe\u3001\u8bbe\u591a\u5927\uff1f\u8fd9\u4e00\u6b65\u505a\u9519\uff0cp \u503c\u53ef\u4ee5\u9519\u4e00\u4e2a\u6570\u91cf\u7ea7\u3002 3. <strong>ID \u4f53\u7cfb\u5bf9\u4e0d\u5bf9<\/strong>\uff1aDESeq2 \u7ed9\u7684\u662f Ensembl ID\uff0cGO\/KEGG \u8981\u7684\u662f Entrez ID\uff0c\u8f6c\u6362\u5fc5\u7136\u4e22\u57fa\u56e0\u2014\u2014\u4e22\u591a\u5c11\u80fd\u63a5\u53d7\uff1f<\/p>\n<p>\u8fd9\u6b21\u7684\u5b9e\u8dd1\u628a\u8fd9\u4e9b\u5751\u5168\u90e8\u8e29\u4e86\u4e00\u904d\uff0c\u8fd8\u989d\u5916\u6536\u83b7\u4e24\u4e2a\u73af\u5883\u7ea7\u5927\u5751\uff1aKEGG \u5b98\u65b9 API \u5728\u56fd\u5185 60 \u79d2\u8d85\u65f6\u3001Windows \u5e76\u884c\u540e\u7aef SnowParam \u7684\u5b50\u8fdb\u7a0b\u5e93\u8def\u5f84\u4e22\u5931\u3002\u4e0b\u9762\u6309\u771f\u5b9e\u53d1\u751f\u987a\u5e8f\u8bb0\u5f55\u3002<\/p>\n<h2>\u4e8c\u3001\u6b63\u786e\u6d41\u7a0b\uff1a\u4e00\u6b21\u8dd1\u901a\u7684\u90e8\u5206<\/h2>\n<p>\u7b2c 1 \u671f\u4ea7\u51fa\u7684\u7ed3\u679c\u8868\uff08<code>res_full_with_symbol.tsv<\/code>\uff0c16139 \u57fa\u56e0\u30014081 \u4e2a padj<0.05\uff09\u76f4\u63a5\u4f5c\u4e3a\u8f93\u5165\u3002ID \u8f6c\u6362\u4e0e GO \u5bcc\u96c6\u4e00\u6b21\u901a\u8fc7\uff1a<\/p>\n<pre><code class=\"language-r\">library(clusterProfiler); library(org.Hs.eg.db)\r\n\r\n<p>res <- read.delim(\"res_full_with_symbol.tsv\", check.names=FALSE) sig <- res[!is.na(res$padj) &#038; res$padj < 0.05, ]   # 4081 \u4e2a\u663e\u8457\u57fa\u56e0 bg  <- res[!is.na(res$padj), ]                     # \u80cc\u666f = \u8fdb\u5165\u68c0\u9a8c\u7684 16139 \u4e2a<\/p>\r\n\r\n<p>sig.e <- mapIds(org.Hs.eg.db, keys=rownames(sig), column=\"ENTREZID\",                 keytype=\"ENSEMBL\", multiVals=\"first\") bg.e  <- mapIds(org.Hs.eg.db, keys=rownames(bg),  column=\"ENTREZID\",                 keytype=\"ENSEMBL\", multiVals=\"first\")<\/p>\r\n\r\n<p>ego <- enrichGO(gene = na.omit(sig.e),                 universe = na.omit(bg.e),       # \u5173\u952e\uff1a\u80cc\u666f\u8bbe\u4e3a\"\u8fdb\u5165\u68c0\u9a8c\u7684\u57fa\u56e0\"                 keyType = \"ENTREZID\", OrgDb = org.Hs.eg.db,                 ont = \"BP\", pAdjustMethod = \"BH\", qvalueCutoff = 0.05) <\/code><\/pre>\n<\/p>\n<p>\u771f\u5b9e\u8f93\u51fa\uff1a<\/p>\n<pre><code class=\"language-text\">\u663e\u8457\u57fa\u56e0 Ensembl: 4081  \u2192 Entrez: 3832 \uff08\u4e22\u5931\u7387 6.1%\uff09\r\n\u80cc\u666f\u57fa\u56e0 Ensembl: 15826  \u2192 Entrez: 13788\r\n\u663e\u8457 GO BP \u6761\u76ee: 1123\r\nTop5:\r\nGO:0003013 circulatory system process    206\/3467  3.5e-17\r\nGO:0008015 blood circulation             179\/3467  9.3e-17\r\nGO:0048514 blood vessel morphogenesis    233\/3467  1.1e-16\r\nGO:0001525 angiogenesis                  205\/3467  3.8e-15\r\nGO:0003012 muscle system process         154\/3467  2.9e-13\r\n<\/code><\/pre>\n<p>\u7ed3\u679c\u5148\u505a\u751f\u7269\u5b66 sanity check\uff1a\u5730\u585e\u7c73\u677e\u5904\u7406\u6c14\u9053\u5e73\u6ed1\u808c\u7ec6\u80de\uff0c\u5bcc\u96c6\u51fa\u7684 Top \u901a\u8def\u662f\u5faa\u73af\u7cfb\u7edf\u3001\u8840\u7ba1\u5f62\u6001\u53d1\u751f\u3001\u808c\u8089\u7cfb\u7edf\u8fc7\u7a0b\u2014\u2014<strong>\u8fd9\u6b63\u662f\u7cd6\u76ae\u8d28\u6fc0\u7d20\u4f5c\u7528\u4e8e\u6c14\u9053\u5e73\u6ed1\u808c\u7684\u5df2\u77e5\u751f\u7269\u5b66<\/strong>\u3002\u7ed3\u679c\u53ef\u4fe1\uff0c\u6d41\u7a0b\u5404\u73af\u8282\u6ca1\u6709\u6697\u4f24\u3002<\/p>\n<p>https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/01_go_bp_bar.png<\/p>\n<p>Top10 \u6761\u5f62\u56fe\uff0801_go_bp_bar.png\uff09\u91cc Count \u6700\u9ad8\u7684\u6761\u76ee\u63a5\u8fd1 200 \u4e2a\u57fa\u56e0\u2014\u2014\u8fd9\u8bf4\u660e 4081 \u4e2a\u663e\u8457\u57fa\u56e0\u91cc\u53c2\u4e0e\u5faa\u73af\u7cfb\u7edf\u8fc7\u7a0b\u7684\u57fa\u6570\u5f88\u5927\uff0c\u5bcc\u96c6\u4e0d\u662f\u51e0\u4e2a\"\u660e\u661f\u57fa\u56e0\"\u6491\u8d77\u6765\u7684\u5047\u8c61\u3002\u70b9\u56fe\uff0802_go_bp_dot.png\uff09\u8865\u4e86\u53e6\u4e00\u4e2a\u7ef4\u5ea6\uff1a\u989c\u8272\u6309 p.adjust \u5206\u6863\u3001\u5927\u5c0f\u6309\u57fa\u56e0\u6570\uff0c vascular \u76f8\u5173\u6761\u76ee\u540c\u65f6\u6ee1\u8db3\"\u57fa\u56e0\u591a + p \u503c\u6df1\"\uff0c\u5c5e\u4e8e\u53cc\u91cd\u786e\u8ba4\u3002<\/p>\n<p>\u4e00\u4e2a\u5bb9\u6613\u88ab\u5ffd\u7565\u7684\u7ec6\u8282\uff1a1123 \u6761\u663e\u8457 GO BP \u6761\u76ee\u91cc\uff0c\u5f7c\u6b64\u9ad8\u5ea6\u91cd\u53e0\uff08\u8840\u6db2\u5faa\u73af \u2282 \u5faa\u73af\u7cfb\u7edf\u8fc7\u7a0b\u3001\u8840\u7ba1\u5f62\u6001\u53d1\u751f \u2229 \u8840\u7ba1\u751f\u6210\uff09\u3002\u505a\u5c55\u793a\u65f6\u8981\u6311\"\u4ee3\u8868\"\uff0c\u4e0d\u8981\u628a 1123 \u6761\u5168\u90e8\u8d34\u8fdb\u8bba\u6587\u2014\u2014\u5ba1\u7a3f\u4eba\u770b\u5230\u7684\u662f\u5197\u4f59\uff0c\u4e0d\u662f\u5de5\u4f5c\u91cf\u3002clusterProfiler \u7684 <code>simplify()<\/code> \u53ef\u4ee5\u6309\u8bed\u4e49\u76f8\u4f3c\u5ea6\u53bb\u5197\u4f59\uff0c\u8fd9\u4e00\u6b65\u7559\u7ed9\u4f60\u6309\u9700\u52a0\u3002<\/p>\n<p>\u8fd9\u91cc\u6709\u4e2a\u5bb9\u6613\u5ffd\u7565\u7684\u7ec6\u8282\uff1a<code>universe<\/code> \u53c2\u6570\u3002\u5f88\u591a\u4eba\u4e0d\u8bbe\uff08\u9ed8\u8ba4\u5168\u90e8\u6ce8\u91ca\u57fa\u56e0\uff0c\u7ea6 19000+\uff09\uff0c\u6211\u4eec\u7684\u80cc\u666f\u662f 13788 \u4e2a<strong>\u5b9e\u9645\u8fdb\u5165\u68c0\u9a8c\u7684\u57fa\u56e0<\/strong>\u3002\u533a\u522b\u5728\u54ea\uff1f\u5dee\u5f02\u5206\u6790\u8fc7\u6ee4\u6389\u4e86\u4f4e\u8ba1\u6570\u57fa\u56e0\uff0c\u8fd9\u4e9b\u57fa\u56e0\"\u6ca1\u673a\u4f1a\u663e\u8457\"\u800c\u4e0d\u662f\"\u4e0d\u663e\u8457\"\u3002\u628a\u5b83\u4eec\u7559\u5728\u80cc\u666f\u91cc\uff0c\u4f1a\u7a00\u91ca\u5bcc\u96c6\u663e\u8457\u6027\uff08\u5206\u6bcd\u865a\u5927\uff09\u3002<strong>\u539f\u5219\uff1a\u80cc\u666f\u57fa\u56e0\u96c6 = \u6709\u673a\u4f1a\u51fa\u73b0\u5728\u7ed3\u679c\u8868\u91cc\u7684\u57fa\u56e0\u3002<\/strong><\/p>\n<h2>\u4e09\u3001\u5751 1\uff1aKEGG \u5b98\u65b9 API \u56fd\u5185\u8d85\u65f6\uff0860 \u79d2\u7b49\u4e0d\u5230\u54cd\u5e94\uff09<\/h2>\n<p>\u8dd1 <code>enrichKEGG()<\/code> \u7b2c\u4e00\u67aa\u5c31\u5012\uff1a<\/p>\n<pre><code class=\"language-text\">Reading KEGG annotation online: \"https:\/\/rest.kegg.jp\/link\/hsa\/pathway\"...\r\nError in (function (con, ...) : cannot read from connection\r\nURL 'https:\/\/rest.kegg.jp\/link\/hsa\/pathway': Timeout of 60 seconds was reached\r\n<\/code><\/pre>\n<p><strong>\u6839\u56e0<\/strong>\uff1a<code>enrichKEGG<\/code> \u9ed8\u8ba4\u5b9e\u65f6\u8bbf\u95ee KEGG REST API\uff08rest.kegg.jp\uff0c\u670d\u52a1\u5668\u5728\u5883\u5916\uff09\u3002\u672c\u673a curl \u76f4\u8fde\u6d4b\u901f 7 \u79d2\u8d77\u6b65\u300160 \u79d2\u624d\u56de\u5168\u6570\u636e\u2014\u2014R \u7684 60 \u79d2\u9ed8\u8ba4\u8d85\u65f6\u76f4\u63a5\u653e\u5f03\u3002\u8fd9\u662f\u56fd\u5185\u73af\u5883\u7684\u9ad8\u9891\u5751\uff1a<strong>\u4e0a\u5348\u80fd\u8dd1\u3001\u4e0b\u5348\u8d85\u65f6\uff0c\u53d6\u51b3\u4e8e\u5f53\u65f6\u56fd\u9645\u94fe\u8def\u72b6\u6001\u3002<\/strong><\/p>\n<p>\u89e3\u6cd5\u4e0d\u6b62\u4e00\u4e2a\uff0c\u6211\u4eec\u5b9e\u6d4b\u4e86\u4e24\u6761\uff1a<\/p>\n<ul>\n<li><strong>\u9884\u4e0b\u8f7d\u6cd5<\/strong>\uff1a\u7528 curl \u628a\u4e24\u4e2a\u6838\u5fc3\u6587\u4ef6\u62c9\u5230\u672c\u5730\uff08<code>link\/hsa\/pathway<\/code> 5690 \u884c\u3001<code>list\/pathway\/hsa<\/code> 373 \u884c\uff09\uff0c\u7136\u540e\u624b\u5de5\u505a\u8d85\u51e0\u4f55\u68c0\u9a8c\u3002curl \u91cd\u8bd5 2 \u6b21\u62ff\u5230\u6570\u636e\uff0c\u6587\u4ef6\u843d\u76d8\u540e\u6d41\u7a0b\u5b8c\u5168\u79bb\u7ebf\u3002<\/li>\n<li><strong>\u66ff\u4ee3\u6e90<\/strong>\uff1a\u5982\u679c\u80fd\u7a33\u5b9a\u8bbf\u95ee\u955c\u50cf\u6216\u5df2\u6709 KEGG.db \u672c\u5730\u5305\uff0c\u76f4\u63a5\u79bb\u7ebf\u3002<\/li>\n<\/ul>\n<p>\u9884\u4e0b\u8f7d\u6cd5\u7684\u6838\u5fc3\u4ee3\u7801\uff08\u4e0e enrichKEGG \u540c\u578b\u7684\u8d85\u51e0\u4f55\u68c0\u9a8c\uff09\uff1a<\/p>\n<pre><code class=\"language-r\">lk <- read.delim(\"kegg_link_hsa.txt\", header=FALSE, sep=\"t\")\r\nnames(lk) <- c(\"path\",\"gene\")\r\nlk$gene <- sub(\"^hsa:\", \"\", lk$gene)\r\nlk$path <- sub(\"^path:hsa\", \"\", lk$path)    # \u6ce8\u610f\uff1a\u4e24\u4e2a\u6587\u4ef6\u7684\u952e\u683c\u5f0f\u4e0d\u540c\uff01\r\n\r\n<p>resk <- do.call(rbind, lapply(unique(lk$path), function(p) {   gs <- unique(lk$gene[lk$path==p &#038; lk$gene %in% bg_ids_c])   if (length(gs) < 5) return(NULL)   k <- length(intersect(gs, sig_ids_c))   if (k == 0) return(NULL)   data.frame(path=p, size=length(gs), hit=k,              pvalue=phyper(k-1, length(gs), N-length(gs), n, lower.tail=FALSE)) })) resk$padj <- p.adjust(resk$pvalue, \"BH\") <\/code><\/pre>\n<\/p>\n<h2>\u56db\u3001\u5751 2\uff1a\u4e24\u4e2a\u6570\u636e\u6587\u4ef6\u7684 path \u952e\u683c\u5f0f\u4e0d\u4e00\u6837\uff0cmerge \u5168\u7a7a<\/h2>\n<p>\u9884\u4e0b\u8f7d\u6cd5\u7b2c\u4e00\u6b21\u8dd1\u51fa\u6765 0 \u884c\u7ed3\u679c\u3002\u9010\u5c42\u6392\u67e5\uff1a<\/p>\n<pre><code class=\"language-text\">merge \u884c\u6570: 0\r\nlst path \u793a\u4f8b: 01100 01200     # list \u6587\u4ef6\u6e05\u6d17\u540e\r\nlk  path \u793a\u4f8b: hsa00010         # link \u6587\u4ef6\u6e05\u6d17\u540e  \u2190 \u6ca1\u6e05\u5e72\u51c0\uff01\r\n<\/code><\/pre>\n<p>\u4e24\u4e2a\u6587\u4ef6\u7684 path \u5217\u683c\u5f0f\u4e0d\u540c\uff1alink \u6587\u4ef6\u662f <code>path:hsa00010<\/code>\uff0clist \u6587\u4ef6\u662f <code>hsa01100<\/code>\u3002\u6211\u5199\u4e86\u4e24\u4e2a\u6e05\u6d17\u6b63\u5219\uff0c\u4e00\u4e2a <code>sub(\"^path:\", \"\")<\/code> \u53ea\u53bb\u6389\u524d\u534a\u3001\u4e00\u4e2a <code>sub(\"^hsa\", \"\")<\/code> \u53bb\u6389\u540e\u534a\u2014\u2014\u4e24\u4e2a\u952e\u6c38\u8fdc\u5bf9\u4e0d\u4e0a\uff0cmerge \u8fd4\u56de 0 \u884c<strong>\u4e14\u4e0d\u62a5\u9519<\/strong>\u3002<\/p>\n<p>\u8fd9\u7c7b\u9759\u9ed8\u9519\u8bef\u6700\u5371\u9669\u7684\u5730\u65b9\uff1a<strong>\u5982\u679c\u540e\u7eed\u4ee3\u7801\u4e0d\u68c0\u67e5\u884c\u6570\uff0c0 \u884c\u7ed3\u679c\u4f1a\u987a\u7740\u7ba1\u9053\u6d41\u5230\u4e0b\u6e38<\/strong>\uff0c\u6700\u540e\u4f60\u62ff\u5230\u4e00\u5f20\u7a7a\u56fe\u8fd8\u4ee5\u4e3a\"\u6ca1\u6709\u663e\u8457\u901a\u8def\"\u3002<\/p>\n<p>\u4fee\u6b63\uff1a\u4e24\u8fb9\u90fd\u6e05\u6210\u7eaf\u6570\u5b57\u952e\u3002<\/p>\n<pre><code class=\"language-r\">lk$path  <- sub(\"^path:hsa\", \"\", lk$path)   # path:hsa00010 -> 00010\r\nlst$path <- sub(\"^hsa\", \"\", lst$path)       # hsa01100       -> 01100\r\n<\/code><\/pre>\n<h2>\u4e94\u3001\u5751 3\uff1a\u672c\u5730 KEGG \u7684\u771f\u5b9e\u7ed3\u8bba\u2014\u2014BH \u6821\u6b63\u540e 0 \u6761\u663e\u8457<\/h2>\n<p>\u952e\u4fee\u5bf9\u540e\uff0c\u7ed3\u679c\u51fa\u6765\u4e86\uff0c\u4f46\u548c\u6211\u4eec\u9884\u671f\u7684\"\u8dd1\u51fa\u51e0\u6761\u663e\u8457\u901a\u8def\"\u4e0d\u4e00\u6837\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u6307\u6807<\/th>\n<th>\u6570\u503c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u68c0\u9a8c\u901a\u8def\u6570\uff08size\u22655\uff09<\/td>\n<td>88<\/td>\n<\/tr>\n<tr>\n<td>\u80cc\u666f\u57fa\u56e0\u4e0e KEGG \u6ce8\u91ca\u4ea4\u96c6<\/td>\n<td>1336<\/td>\n<\/tr>\n<tr>\n<td>\u663e\u8457\u57fa\u56e0\u4e0e KEGG \u6ce8\u91ca\u4ea4\u96c6<\/td>\n<td>432<\/td>\n<\/tr>\n<tr>\n<td>\u88f8 p < 0.05 \u7684\u901a\u8def<\/td>\n<td><strong>10<\/strong><\/td>\n<\/tr>\n<tr>\n<td>BH \u6821\u6b63\u540e p < 0.05<\/td>\n<td><strong>0<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Top \u901a\u8def\u5168\u90e8\u6307\u5411\u6c28\u57fa\u9178\u4ee3\u8c22\uff08\u7cbe\u6c28\u9178\/\u812f\u6c28\u9178\u3001\u534a\u80f1\u6c28\u9178\/\u86cb\u6c28\u9178\u3001\u4e19\u6c28\u9178\/\u5929\u51ac\u6c28\u9178\/\u8c37\u6c28\u9178\u4ee3\u8c22\uff09\u2014\u2014\u65b9\u5411\u7b26\u5408\u7cd6\u76ae\u8d28\u6fc0\u7d20\u7684\u4ee3\u8c22\u6548\u5e94\uff0c\u88f8 p \u4e5f\u5230\u4e86 0.005 \u7ea7\u522b\u3002\u4f46 88 \u6b21\u68c0\u9a8c\u7684 BH \u6821\u6b63\u628a\u8fd9 10 \u6761\u5168\u90e8\u538b\u8fc7\u4e86 0.05\u3002<\/p>\n<p>https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/04_kegg_bar.png<\/p>\n<p>\u6761\u5f62\u56fe\uff0804_kegg_bar.png\uff09\u7279\u610f\u6309\u88f8 p \u6392\u5e8f\u5e76\u6807\u51fa\"\u8fc7\/\u4e0d\u8fc7 BH\"\u2014\u201410 \u6761\u5168\u90e8\u662f\"\u84dd\u4e0d\u8fc7\"\u72b6\u6001\u3002\u8fd9\u5f20\u56fe\u672c\u8eab\u5c31\u662f\"ORA \u5728\u8fd9\u4e2a\u573a\u666f\u5931\u6548\"\u7684\u53ef\u89c6\u5316\u8bc1\u8bcd\uff0c\u6bd4\u6587\u5b57\u63cf\u8ff0\u66f4\u6709\u8bf4\u670d\u529b\u3002<\/p>\n<p><strong>\u8fd9\u4e0d\u662f\u6d41\u7a0b\u9519\u8bef\uff0c\u662f\u6570\u636e\u771f\u76f8<\/strong>\u3002\u4e09\u4e2a\u539f\u56e0\u53e0\u52a0\uff1a<\/p>\n<p>1. <strong>\u80cc\u666f\u4ea4\u96c6\u592a\u5c0f<\/strong>\uff1a13788 \u4e2a\u80cc\u666f\u57fa\u56e0\u91cc\u53ea\u6709 1336 \u4e2a\u5e26 KEGG \u901a\u8def\u6ce8\u91ca\uff089.7%\uff09\u3002\u68c0\u9a8c\u7684\"\u6709\u6548\u6837\u672c\u91cf\"\u6bd4\u8868\u9762\u6570\u5b57\u5c0f\u4e00\u4e2a\u6570\u91cf\u7ea7\u3002 2. <strong>\u4fe1\u53f7\u5206\u6563<\/strong>\uff1a\u4ee3\u8c22\u901a\u8def\u9176\u7684\u6548\u5e94\u91cf\u4e0d\u5982\u8f6c\u5f55\u56e0\u5b50\u3001\u7ec6\u80de\u9aa8\u67b6\u57fa\u56e0\u5267\u70c8\uff0c\u5bcc\u96c6\u4fe1\u53f7\u5929\u7136\u5206\u6563\u5728\u591a\u6761\u901a\u8def\u4e0a\u3002 3. <strong>ORA \u5bf9\"\u4fe1\u53f7\u5f31\u4f46\u5e7f\"\u7684\u573a\u666f\u5929\u7136\u4e0d\u654f\u611f<\/strong>\u2014\u2014\u8fd9\u6b63\u662f GSEA \u7684\u7528\u6b66\u4e4b\u5730\uff08\u89c1\u7b2c\u4e03\u8282\uff09\u3002<\/p>\n<p>\u5199\u8bba\u6587\u65f6\u8fd9\u600e\u4e48\u5904\u7406\uff1f\u5982\u5b9e\u62a5\u544a\uff1aORA \u672a\u68c0\u51fa\u663e\u8457 KEGG \u901a\u8def\uff08padj<0.05\uff09\uff0cTop \u5019\u9009\u4e3a\u6c28\u57fa\u9178\u4ee3\u8c22\u901a\u8def\uff08\u88f8 p 0.005-0.016\uff09\uff0c\u6539\u7528 GSEA \u68c0\u9a8c\u5168\u5c40\u5206\u5e03\u3002<strong>\u4e0d\u8981\u4e3a\u4e86\"\u7ed3\u679c\u597d\u770b\"\u628a\u8fc7\u6ee4\u9608\u503c\u4ece padj<0.05 \u5077\u5077\u964d\u5230 0.25\u3002<\/strong><\/p>\n<h2>\u516d\u3001\u5751 4\uff1aGSEA \u7684 rank \u5411\u91cf\u540d\u91cc\u6df7\u8fdb NA<\/h2>\n<p>GSEA \u7528\u5168\u90e8 13776 \u4e2a\u57fa\u56e0\u7684 log2FC \u6392\u5e8f\u8868\uff0c\u4e0d\u662f\u53ea\u5582\u663e\u8457\u57fa\u56e0\u3002\u7b2c\u4e00\u6b21\u8dd1\uff1a<\/p>\n<pre><code class=\"language-text\">Error in .stopf(\"NAs in %s are not allowed\", universeArg) :\r\n  NAs in names(stats) are not allowed\r\n<\/code><\/pre>\n<p>\u6839\u56e0\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-r\">lfc <- ranked$log2FoldChange\r\nnames(lfc) <- mapIds(...)      # mapIds \u8fd4\u56de\u5e26 NA \u7684\u5411\u91cf\r\nlfc <- na.omit(lfc)            # \u2190 \u53ea\u5220\u4e86\u503c\u4e3a NA \u7684\u5143\u7d20\r\n<\/code><\/pre>\n<p><code>na.omit()<\/code> \u6309<strong>\u503c<\/strong>\u8fc7\u6ee4\uff0c\u4f46 <code>mapIds<\/code> \u6ca1\u6ce8\u91ca\u5230\u7684\u57fa\u56e0\u662f\"\u540d\u5b57\u4e3a NA\u3001\u503c\u6b63\u5e38\"\u2014\u2014na.omit \u4e0d\u4f1a\u5220\u5b83\u4eec\uff0cNA \u540d\u6df7\u8fdb rank \u5411\u91cf\uff0cGSEA \u76f4\u63a5\u62d2\u7edd\u3002<\/p>\n<p>\u4fee\u6b63\uff1a<strong>\u503c\u548c\u540d\u540c\u6b65\u8fc7\u6ee4<\/strong>\uff1a<\/p>\n<pre><code class=\"language-r\">ent <- mapIds(...)\r\nok  <- !is.na(ent)\r\nlfc <- ranked$log2FoldChange[ok]\r\nnames(lfc) <- ent[ok]\r\nlfc <- lfc[!duplicated(names(lfc))]   # \u987a\u624b\u53bb\u91cd\uff081 \u4e2a Entrez \u5bf9\u5e94\u591a\u4e2a Ensembl \u65f6\uff09\r\n<\/code><\/pre>\n<h2>\u4e03\u3001\u5751 5\uff1aWindows \u5e76\u884c\u7684\u9690\u5f62\u6740\u624b\u2014\u2014SnowParam \u5b50\u8fdb\u7a0b\u4e22\u5e93\u8def\u5f84<\/h2>\n<p>rank \u4fee\u597d\u540e\uff0cGSEA \u8fd8\u662f\u8dd1\u4e0d\u52a8\uff0c\u62a5\u9519\u8fdb\u5165\"\u5e7d\u7075\u6a21\u5f0f\"\uff1a<\/p>\n<pre><code class=\"language-text\">Error in loadNamespace(\"snow\") : there is no package called 'snow'\r\nCalls: local ... loadNamespace -> ...\r\n<\/code><\/pre>\n<p>\u8be1\u5f02\u7684\u5730\u65b9\u5728\u4e8e\uff1a<strong>\u4e3b\u8fdb\u7a0b\u91cc <code>requireNamespace(\"snow\")<\/code> \u660e\u660e\u8fd4\u56de TRUE<\/strong>\u2014\u2014snow \u5305\u88c5\u5728\u7528\u6237\u5e93 <code>~\/R\/win-library\/4.5<\/code> \u91cc\uff0c<code>.libPaths()<\/code> \u4e5f\u6302\u4e86\u3002\u4e3a\u4ec0\u4e48\u4e00\u5230 GSEA \u5c31\u627e\u4e0d\u5230\uff1f<\/p>\n<p>\u5b9a\u4f4d\u4e09\u6b65\uff1a<\/p>\n<p>1. <code>BiocParallel::bpparam()<\/code> \u67e5\u9ed8\u8ba4\u540e\u7aef\u2014\u2014<strong>\u8fd4\u56de SnowParam<\/strong>\u3002Windows \u4e0a <code>MulticoreParam<\/code>\uff08fork\uff09\u4e0d\u53ef\u7528\uff0cBiocParallel \u9ed8\u8ba4\u56de\u843d\u5230 SnowParam\uff08snow \u96c6\u7fa4\uff09\u3002 2. SnowParam \u542f\u52a8<strong>worker \u5b50\u8fdb\u7a0b<\/strong>\u65f6\uff0c\u5b50\u8fdb\u7a0b\u91cd\u5efa R \u73af\u5883\uff0c<code>.libPaths()<\/code> \u4e0d\u4f1a\u5b8c\u6574\u7ee7\u627f\u2014\u2014\u7528\u6237\u5e93\u8def\u5f84\u4e22\u4e86\uff0csnow \u5728\u5b50\u8fdb\u7a0b\u91cc\u627e\u4e0d\u5230\u3002 3. \u4e3b\u8fdb\u7a0b\u80fd\u52a0\u8f7d\u3001\u5b50\u8fdb\u7a0b\u62a5\u9519\u2014\u2014\u8fd9\u5c31\u662f\"\u5e7d\u7075 snow\"\u7684\u5168\u8c8c\u3002<\/p>\n<p><strong>\u4e00\u884c\u4fee\u590d<\/strong>\uff1a<\/p>\n<pre><code class=\"language-r\">fg <- fgsea(pathways=paths, stats=lfc, BPPARAM=BiocParallel::SerialParam())\r\n<\/code><\/pre>\n<p>\u5f3a\u5236\u4e32\u884c\u3002\u4ee3\u4ef7\u662f\u653e\u5f03\u5e76\u884c\uff08GSEA \u5168\u7a0b 33 \u79d2\uff0c\u5355\u7ebf\u7a0b\u5b8c\u5168\u53ef\u63a5\u53d7\uff09\uff1b\u6536\u76ca\u662f\u7ed3\u679c\u786e\u5b9a\u53ef\u590d\u73b0\u3002\u5982\u679c\u901a\u8def\u6570\u4e0a\u4e07\u3001\u5355\u7ebf\u7a0b\u8dd1\u4e0d\u52a8\uff0c\u6b63\u786e\u89e3\u6cd5\u662f\u628a\u7528\u6237\u5e93\u8def\u5f84\u5199\u8fdb <code>.Rprofile<\/code>\uff08<code>R_LIBS_USER<\/code>\uff09\uff0c\u8ba9\u5b50\u8fdb\u7a0b\u542f\u52a8\u65f6\u5c31\u80fd\u8bfb\u5230\u3002<\/p>\n<p>\u8fd9\u4e2a\u5751\u7684\u666e\u9002\u6027\u8fdc\u8d85 GSEA\uff1a<strong>Windows \u4e0a\u4efb\u4f55\u8d70 BiocParallel \u7684 Bioconductor \u5305\uff08DESeq2 \u4e4b\u5916\u7684 scater\u3001DaMiRseq \u7b49\uff09\u90fd\u53ef\u80fd\u89e6\u53d1<\/strong>\u3002\u75c7\u72b6\u8bc6\u522b\u53e3\u8bc0\uff1a\u4e3b\u8fdb\u7a0b\u5305\u90fd\u5728\u3001\u4e00\u5e76\u884c\u5c31 loadNamespace \u5931\u8d25\u3002<\/p>\n<h2>\u516b\u3001GSEA \u7ed3\u679c\uff1aORA \u770b\u4e0d\u89c1\u7684\u4fe1\u53f7\u5728\u8fd9\u91cc\u663e\u5f62<\/h2>\n<p>\u4e32\u884c\u4fee\u590d\u540e GSEA \u4e00\u6b21\u8dd1\u901a\uff1a<strong>7081 \u6761 GO BP \u901a\u8def\uff0c43 \u6761 padj<0.05\uff0c\u8017\u65f6 33 \u79d2<\/strong>\u3002<\/p>\n<pre><code class=\"language-text\">Top 5\uff08\u6309 padj\uff09\uff1a\r\nGO:0051962  NES=-1.93  padj=2.5e-4    # \u8d1f\u5411\uff1a\u6574\u4f53\u4e0b\u8c03\r\nGO:0046323  NES=+2.13  padj=9.2e-3\r\nGO:1904659  NES=+2.02  padj=1.7e-2\r\nGO:0032869  NES=+1.81  padj=2.1e-2\r\nGO:0015749  NES=+1.96  padj=2.5e-2\r\n<\/code><\/pre>\n<p>\u5bf9\u7167\u7b2c 5 \u8282\u7684 ORA \u7ed3\u8bba\uff0c\u65b9\u6cd5\u8bba\u7684\u5206\u91ce\u6e05\u6670\u53ef\u89c1\uff1a<\/p>\n<p>https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/03_gsea_top.png<\/p>\n<p>\u8dd1\u9053\u56fe\uff0803_gsea_top.png\uff09\u5c55\u793a\u4e86 Top \u901a\u8def\u7684 rank \u5206\u5e03\uff1a\u66f2\u7ebf\u5728\u6392\u5e8f\u5217\u8868\u4e2d\u90e8\u5f00\u59cb\u722c\u5347\u3001\u5728\u4e0b\u8c03\u533a\uff08\u5de6\u4fa7\uff09\u660e\u663e\u5bcc\u96c6\u2014\u2014NES=-1.93 \u7684\u8d1f\u5411\u4fe1\u53f7\u76f4\u89c2\u53ef\u89c1\u3002\u66f2\u7ebf\u4e0b\u9762\u79ef\u5c31\u662f\u8fd9\u4e2a\u901a\u8def\u7684\u5bcc\u96c6\u5f97\u5206\uff0c\u7ea2\u7ebf\u6807\u8bb0\u4f4d\u7f6e\u662f leading edge\uff08\u8d21\u732e\u6700\u5927\u7684\u57fa\u56e0\u533a\u6bb5\uff09\uff0c\u540e\u7eed\u5b9e\u9a8c\u9a8c\u8bc1\u7684\u5019\u9009\u5c31\u4ece\u8fd9\u91cc\u6311\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th>ORA\uff08enrichGO\/enrichKEGG\uff09<\/th>\n<th>GSEA\uff08fgsea\/gseGO\uff09<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u8f93\u5165<\/td>\n<td>\u663e\u8457\u57fa\u56e0\u5217\u8868\uff084081 \u4e2a\uff09<\/td>\n<td>\u5168\u57fa\u56e0\u6392\u5e8f\u5217\u8868\uff0813776 \u4e2a\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u68c0\u9a8c\u5bf9\u8c61<\/td>\n<td>\u57fa\u56e0\"\u5728\u4e0d\u5728\u5217\u8868\u91cc\"<\/td>\n<td>\u57fa\u56e0\u5728\u6392\u5e8f\u5217\u8868\u4e2d\u7684\u4f4d\u7f6e\u5206\u5e03<\/td>\n<\/tr>\n<tr>\n<td>\u5bf9\u5f31\u800c\u5e7f\u7684\u4fe1\u53f7<\/td>\n<td>\u4e0d\u654f\u611f\uff08BH \u540e KEGG \u5168\u706d\uff09<\/td>\n<td>\u654f\u611f\uff0843 \u6761\u663e\u8457\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u9608\u503c\u4f9d\u8d56<\/td>\n<td>\u5f3a\uff08padj<0.05 \u7684\u5200\u5207\uff09<\/td>\n<td>\u65e0\uff08\u4e0d\u8bbe\u663e\u8457\u6027\u95e8\u69db\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u9002\u5408\u573a\u666f<\/td>\n<td>\u5c11\u6570\u5f3a\u6548\u5e94\u57fa\u56e0<\/td>\n<td>\u8f6c\u5f55\u8c03\u63a7\u3001\u4ee3\u8c22\u7b49\u5f25\u6563\u6548\u5e94<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>airway \u8fd9\u4e2a\u6570\u636e\u96c6\u5904\u7406\u6548\u5e94\u6781\u5f3a\uff0cORA \u672c\u6765\u5c31\u8be5\u6709\u660e\u663e\u4fe1\u53f7\uff08GO 1123 \u6761\u662f\u6d77\u91cf\uff09\uff1b\u4f46 KEGG \u90a3\u8fb9\u7684\"\u4fe1\u53f7\u5f31\u800c\u5e7f\"\u88ab ORA \u6f0f\u6389\u3001\u88ab GSEA \u635e\u56de\u2014\u2014<strong>\u8fd9\u5c31\u662f GSEA \u5b58\u5728\u7684\u610f\u4e49\uff0c\u4e5f\u89e3\u91ca\u4e86\u4e3a\u4ec0\u4e48\u6559\u7a0b\u603b\u8bf4\"\u4e24\u4e2a\u90fd\u8981\u8dd1\"\u3002<\/strong><\/p>\n<p>\u5b9e\u9645\u64cd\u4f5c\u5efa\u8bae\u6309\u6d41\u7a0b\u987a\u5e8f\u8bb0\uff1a\u5148 ORA \u770b\u5f3a\u4fe1\u53f7\uff08\u5feb\u3001\u76f4\u89c2\u3001\u9608\u503c\u660e\u786e\uff09\uff0c\u8dd1\u4e0d\u51fa\u663e\u8457\u6761\u76ee\u4e0d\u4ee3\u8868\u6ca1\u6709\u4fe1\u53f7\uff0c\u7acb\u523b\u8865 GSEA\uff08\u5f31\u800c\u5e7f\u7684\u573a\u666f\u53ea\u6709\u5b83\u80fd\u68c0\u51fa\uff09\uff1b\u4e24\u4e2a\u7ed3\u679c\u90fd\u4fdd\u7559\uff0c\u65b9\u6cd5\u8282\u5982\u5b9e\u5199\"ORA \u68c0\u51fa X \u6761\u3001GSEA \u68c0\u51fa Y \u6761\"\uff1b\u8ba8\u8bba\u4f18\u5148\u89e3\u91ca\u4e24\u8005\u4e00\u81f4\u6027\u6216\u4e0d\u4e00\u81f4\u7684\u539f\u56e0\uff0c\u800c\u4e0d\u662f\u53ea\u6311\u597d\u770b\u7684\u4e00\u8fb9\u5c55\u793a\u3002\u6837\u672c\u91cf\u5c0f\u3001\u6548\u5e94\u5206\u6563\u7684\u8f6c\u5f55\u7ec4\u6570\u636e\uff08\u6bd4\u5982\u4e34\u5e8a\u961f\u5217\u3001\u836f\u7269\u4f4e\u5242\u91cf\u5904\u7406\uff09\u51e0\u4e4e\u5fc5\u7136\u8d70\u5230 GSEA \u90a3\u4e00\u6b65\uff0c\u63d0\u524d\u628a\u8fd9\u4e2a\u9884\u671f\u7ba1\u7406\u597d\uff0c\u8fd4\u4fee\u65f6\u5c11\u4e00\u8f6e\u6298\u817e\u3002<\/p>\n<h2>\u4e5d\u3001\u5751\u70b9\u901f\u67e5\u8868<\/h2>\n<table>\n<thead>\n<tr>\n<th>#<\/th>\n<th>\u5751<\/th>\n<th>\u75c7\u72b6<\/th>\n<th>\u6839\u56e0<\/th>\n<th>\u4fee\u6b63<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>KEGG API \u8d85\u65f6<\/td>\n<td><code>Timeout of 60 seconds<\/code><\/td>\n<td>rest.kegg.jp \u5883\u5916\u94fe\u8def\u4e0d\u7a33<\/td>\n<td>curl \u9884\u4e0b\u8f7d\u4e24\u6587\u4ef6 + \u672c\u5730\u8d85\u51e0\u4f55<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>merge \u952e\u4e0d\u5339\u914d<\/td>\n<td>0 \u884c\u7ed3\u679c\u3001\u65e0\u62a5\u9519<\/td>\n<td>\u4e24\u4e2a\u6587\u4ef6\u7684 path \u683c\u5f0f\u4e0d\u540c\uff08<code>path:hsa00010<\/code> vs <code>hsa01100<\/code>\uff09<\/td>\n<td>\u4e24\u8fb9\u7edf\u4e00\u6e05\u6d17\u6210\u7eaf\u6570\u5b57\u952e<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>universe \u865a\u5927<\/td>\n<td>p \u503c\u6574\u4f53\u504f\u4fdd\u5b88<\/td>\n<td>\u80cc\u666f\u6df7\u5165\u672a\u68c0\u9a8c\u57fa\u56e0<\/td>\n<td>universe = \u5b9e\u9645\u8fdb\u5165\u68c0\u9a8c\u7684\u57fa\u56e0\u96c6<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>ID \u8f6c\u6362\u4e22\u57fa\u56e0<\/td>\n<td>4081\u21923832\uff08\u4e22 6.1%\uff09<\/td>\n<td>Ensembl\u2194Entrez \u6ce8\u91ca\u5929\u7136\u4e0d\u5bf9\u9f50<\/td>\n<td>\u5982\u5b9e\u62a5\u544a\u4e22\u5931\u7387\uff0c\u591a\u5bf9\u4e00\u53d6 first<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>GSEA rank \u540d\u4e3a NA<\/td>\n<td><code>NAs in names(stats)<\/code><\/td>\n<td>na.omit \u53ea\u6ee4\u503c\u4e0d\u6ee4\u540d<\/td>\n<td>\u503c\u540d\u540c\u6b65\u8fc7\u6ee4 + \u53bb\u91cd<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>Windows \u5e76\u884c\u5e7d\u7075 snow<\/td>\n<td>\u4e3b\u8fdb\u7a0b\u80fd\u52a0\u8f7d\u3001\u4e00\u5e76\u884c\u5c31\u62a5\u9519<\/td>\n<td>SnowParam \u5b50\u8fdb\u7a0b\u4e0d\u7ee7\u627f\u7528\u6237\u5e93\u8def\u5f84<\/td>\n<td><code>BPPARAM=SerialParam()<\/code> \u6216 Rprofile \u56fa\u5316\u5e93\u8def\u5f84<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>ORA \u5047\u9634\u6027<\/td>\n<td>KEGG BH \u540e 0 \u663e\u8457<\/td>\n<td>\u4fe1\u53f7\u5f31\u800c\u5e7f + \u591a\u91cd\u6821\u6b63<\/td>\n<td>\u8865\u8dd1 GSEA\uff0c\u5982\u5b9e\u62a5\u544a\u4e24\u79cd\u65b9\u6cd5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u5341\u3001Agent \u89c6\u89d2\u7684\u6536\u5c3e<\/h2>\n<p>\u548c\u7b2c 1 \u671f\u4e00\u6837\uff0c\u590d\u76d8\u8fd9\u6b21 Agent \u7684\u884c\u4e3a\u6a21\u5f0f\uff0c\u6709\u4e09\u70b9\u503c\u5f97\u8fc1\u79fb\uff1a<\/p>\n<p><strong>\u73af\u5883\u7ea7\u5751\u4f1a\u4f2a\u88c5\u6210\u4ee3\u7801\u7ea7\u5751\u3002<\/strong> KEGG \u8d85\u65f6\u548c\u5e7d\u7075 snow \u90fd\u4e0d\u662f\u4ee3\u7801\u903b\u8f91\u9519\u8bef\u2014\u2014\u4e00\u4e2a\u662f\u7f51\u7edc\u73af\u5883\uff0c\u4e00\u4e2a\u662f\u5e76\u884c\u67b6\u6784\u3002Agent \u6700\u521d\u7684\u53cd\u5e94\u90fd\u662f\"\u6539\u4ee3\u7801\u91cd\u8bd5\"\uff0c\u771f\u6b63\u7684\u7834\u5c40\u70b9\u5728\u4e8e<strong>\u8df3\u51fa\u4ee3\u7801\u5c42\u505a\u5bf9\u7167\u5b9e\u9a8c<\/strong>\uff1acurl \u76f4\u8fde\u6d4b\u901f\u3001\u5355\u7ebf\u7a0b\u52a0\u8f7d\u6d4b\u8bd5\u3001bpparam() \u67e5\u9ed8\u8ba4\u540e\u7aef\u3002\u8bca\u65ad\u987a\u5e8f\u5e94\u8be5\u662f\"\u6700\u5c0f\u5316\u590d\u73b0 \u2192 \u9694\u79bb\u53d8\u91cf \u2192 \u5b9a\u4f4d\u5c42\"\u3002<\/p>\n<p><strong>0 \u884c\u7ed3\u679c\u548c\u62a5\u9519\u4e00\u6837\u503c\u5f97\u8b66\u60d5\u3002<\/strong> \u8fd9\u6b21\u6700\u5371\u9669\u7684\u5751\u662f merge \u952e\u4e0d\u5339\u914d\u2014\u2014\u5b83\u4e0d\u62a5\u9519\u3001\u53ea\u7ed9 0 \u884c\u3002\u4efb\u4f55\"\u7ed3\u679c\u4e3a\u7a7a\"\u7684\u6b65\u9aa4\u90fd\u8981\u663e\u5f0f\u68c0\u67e5\u884c\u6570\u5e76\u505c\u4e0b\uff0c\u800c\u4e0d\u662f\u8ba9\u7a7a\u6570\u636e\u6d41\u5411\u4e0b\u6e38\u3002<\/p>\n<p><strong>\u7ed3\u8bba\u5426\u5b9a\u81ea\u5df1\u6bd4\u8bc1\u5b9e\u81ea\u5df1\u66f4\u6709\u4ef7\u503c\u3002<\/strong> KEGG BH \u6821\u6b63\u540e 0 \u6761\u663e\u8457\uff0cAgent \u7684\u7b2c\u4e00\u53cd\u5e94\u4e0d\u662f\"\u8c03\u9608\u503c\u8ba9\u5b83\u663e\u8457\"\uff0c\u800c\u662f\"\u4e3a\u4ec0\u4e48 ORA \u770b\u4e0d\u89c1\uff0cGSEA \u80fd\u770b\u89c1\"\u2014\u2014\u8fd9\u4e2a\u8ffd\u95ee\u76f4\u63a5\u901a\u5411\u65b9\u6cd5\u8bba\u5c42\u9762\u7684\u6b63\u786e\u7b54\u6848\u3002\u505a\u5206\u6790\u7684\u4e5f\u5e94\u8be5\u8fd9\u6837\uff1a<strong>\u7ed3\u679c\u548c\u9884\u671f\u4e0d\u7b26\u65f6\uff0c\u5148\u6000\u7591\u65b9\u6cd5\u548c\u6570\u636e\uff0c\u518d\u8003\u8651\u8fd0\u6c14\u3002<\/strong> \u5177\u4f53\u5230\u8fd9\u6b21\uff1aORA \u7684 0 \u6761\u548c GSEA \u7684 43 \u6761\u653e\u5728\u4e00\u8d77\uff0c\u624d\u662f\u5b8c\u6574\u7ed3\u8bba\uff1b\u53ea\u62a5\u5176\u4e2d\u4e00\u4e2a\u90fd\u662f\u9009\u62e9\u6027\u5448\u73b0\u3002\u5ba1\u7a3f\u4eba\u6700\u5e38\u89c1\u7684\u8d28\u7591\"\u5bcc\u96c6\u7ed3\u679c\u662f\u4e0d\u662f\u6311\u51fa\u6765\u7684\"\uff0c\u7b54\u6848\u6c38\u8fdc\u85cf\u5728\u4f60\u5728\u65b9\u6cd5\u8282\u5199\u4e86\u4ec0\u4e48\u3001\u6ca1\u5199\u4ec0\u4e48\u3002<\/p>\n<p><strong>ID \u8f6c\u6362\u7684\u4e22\u5931\u7387\u8981\u8fdb\u65b9\u6cd5\u8282\u3002<\/strong> 4081 \u4e2a Ensembl \u57fa\u56e0\u8f6c Entrez \u4e22\u4e86 6.1%\uff0c\u80cc\u666f\u4e22\u4e86 13%\u3002\u8fd9\u4e2a\u6570\u5b57\u5f71\u54cd\u6240\u6709\u4e0b\u6e38\u6bd4\u4f8b\uff08GeneRatio \u7684\u5206\u6bcd\u3001\u80cc\u666f\u4ea4\u96c6 1336\uff09\uff0c\u5199\u8fdb\u8bba\u6587\u65b9\u6cd5\u8282\u4e00\u53e5\u8bdd\u5c31\u80fd\u5835\u4f4f\"\u4e3a\u4ec0\u4e48\u4f60\u7684\u57fa\u56e0\u5217\u8868\u548c\u8865\u5145\u6750\u6599\u5bf9\u4e0d\u4e0a\u6570\"\u8fd9\u7c7b\u8fd4\u4fee\u610f\u89c1\u3002\u591a\u5bf9\u4e00\u6620\u5c04\u53d6 first \u610f\u5473\u7740\u540c\u4e00\u4f4d\u70b9\u591a\u4e2a\u8f6c\u5f55\u672c\u7b97\u4e00\u4e2a\u57fa\u56e0\u2014\u2014\u8fd9\u4e5f\u662f Ensembl \u4f53\u7cfb\u505a\u5bcc\u96c6\u524d\u5fc5\u987b\u4ea4\u4ee3\u7684\u53d6\u820d\u3002<\/p>\n<p>---<\/p>\n<p>\u5bcc\u96c6\u7ed3\u679c\u62ff\u4e0d\u51c6\u662f\u65b9\u6cd5\u95ee\u9898\u8fd8\u662f\u6570\u636e\u95ee\u9898\uff1f\u628a\u5dee\u5f02\u5206\u6790\u7ed3\u679c\u8868\uff08\u51e0\u884c\u5934 + \u57fa\u56e0\u6570 + \u663e\u8457\u6570\uff09\u548c\u60f3\u505a\u7684\u5bcc\u96c6\u7c7b\u578b\u53d1\u7ed9\u6211\u4eec\uff0c\u4e91\u751f\u4fe1\u5148\u5e2e\u4f60\u5224\u65ad universe \u8be5\u600e\u4e48\u8bbe\u3001ORA \u548c GSEA \u54ea\u4e2a\u66f4\u5408\u9002\u3002<a href=\"https:\/\/work.weixin.qq.com\/kfid\/kfcb05492f29d4d6064\" target=\"_blank\" rel=\"noopener\">\u5bcc\u96c6\u5206\u6790\u54a8\u8be2<\/a><\/p>\n<p><strong>\u4e0d\u60f3\u81ea\u5df1\u8e29\u8fd9\u4e9b\u5751\uff1f\u628a\u6d41\u7a0b\u4ea4\u7ed9\u4e91\u751f\u4fe1 BioAgent\u3002<\/strong> GO\/KEGG\/GSEA \u4e00\u6761\u94fe\u5728 BioAgent \u4e0a\u70b9\u5f00\u5373\u8dd1\uff1a\u955c\u50cf\u6e90\u9884\u914d\u3001KEGG \u79bb\u7ebf\u6570\u636e\u5185\u7f6e\u3001\u5e76\u884c\u540e\u7aef\u5df2\u4fee\u2014\u2014\u672c\u6587\u7684 1123 \u6761 GO \u7ed3\u679c\u548c 43 \u6761 GSEA \u901a\u8def\u76f4\u63a5\u5728\u7ebf\u590d\u73b0\u3002 \u73af\u5883\u3001\u4f9d\u8d56\u3001\u5e76\u884c\u914d\u7f6e\u5168\u90e8\u9884\u7f6e\uff0c\u62a5\u9519\u81ea\u52a8\u8bca\u65ad\u2014\u2014\u672c\u6587\u7684\u5b8c\u6574\u6d41\u7a0b\u5728 Agent \u4e0a\u53ef\u4ee5\u76f4\u63a5\u590d\u73b0\u3002<a href=\"https:\/\/www.biocloudservice.com\/bioagent\/\" target=\"_blank\" rel=\"noopener\">\u8fdb\u5165\u4e91\u751f\u4fe1 BioAgent<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7cfb\u5217\u7b2c 2 \u671f\uff1a\u7528\u7b2c 1 \u671f DESeq2 \u7684 4081 \u4e2a\u663e\u8457\u57fa\u56e0\u8dd1\u5bcc\u96c6\u3002\u771f\u5b9e\u590d\u73b0 7 \u4e2a\u5751\u2014\u2014KEGG \u5b98\u65b9 API \u56fd\u5185 60 \u79d2\u8d85\u65f6\u3001merge \u952e\u4e0d\u5339\u914d\u9759\u9ed8 0 \u884c\u3001Windows SnowParam \u5b50\u8fdb\u7a0b\u4e22\u5e93\u8def\u5f84\uff08\u5e7d\u7075 snow\uff09\uff1bORA \u68c0\u51fa 0 \u6761 KEGG \u901a\u8def\u3001GSEA \u635e\u56de 43 \u6761\uff0c\u540c\u4e00\u6570\u636e\u4e24\u79cd\u7ed3\u8bba\u7684\u65b9\u6cd5\u8bba\u89e3\u91ca\uff0c\u5168\u90e8\u6570\u5b57\u6765\u81ea\u771f\u5b9e\u8fd0\u884c\u3002<\/p>\n","protected":false},"author":0,"featured_media":81557,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[72],"tags":[121,80,219,213,1529],"class_list":["post-81563","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-transcriptomics","tag-deseq2","tag-rna-seq","tag-219","tag-213","tag-1529"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/poster-4.png?fit=1600%2C900&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/81563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/comments?post=81563"}],"version-history":[{"count":4,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/81563\/revisions"}],"predecessor-version":[{"id":82066,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/81563\/revisions\/82066"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/81557"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=81563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=81563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=81563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}