{"id":82040,"date":"2026-11-30T12:07:23","date_gmt":"2026-11-30T04:07:23","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/deseq2-agent-series-4-wgcna-pitfalls\/"},"modified":"2026-11-30T12:12:43","modified_gmt":"2026-11-30T04:12:43","slug":"deseq2-agent-series-4-wgcna-pitfalls","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/deseq2-agent-series-4-wgcna-pitfalls\/","title":{"rendered":"Agent \u8dd1 WGCNA \u5b9e\u5f55\uff1aR\u00b2 \u6c38\u8fdc\u5230\u4e0d\u4e86 0.85 \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 4 \u671f\u3002\u524d\u60c5\uff1a<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/deseq2-agent-full-run-pitfalls\/\" target=\"_blank\" rel=\"noopener\">\u7b2c 1 \u671f DESeq2 \u5dee\u5f02\u5206\u6790<\/a>\u3001<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/deseq2-agent-series-2-enrichment-pitfalls\/\" target=\"_blank\" rel=\"noopener\">\u7b2c 2 \u671f GO\/KEGG \u5bcc\u96c6<\/a>\u3002\u7b2c 3 \u671f Seurat \u5355\u7ec6\u80de\u5728\u51c6\u5907\u4e2d\uff0c\u672c\u671f\u5148\u7528\u540c\u4e00\u4efd airway \u6570\u636e\u628a\u5171\u8868\u8fbe\u7f51\u7edc\u505a\u5b8c\u2014\u2014\u8fd9\u662f&#8221;\u5dee\u5f02\u5206\u6790\u627e\u57fa\u56e0\u3001WGCNA \u627e\u6a21\u5757&#8221;\u7684\u53e6\u4e00\u534a\u6545\u4e8b\u3002<\/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 \/ WGCNA 1.74\u3002\u6240\u6709\u62a5\u9519\u3001\u6570\u5b57\u3001\u56fe\u6765\u81ea\u672c\u6b21\u771f\u5b9e\u8fd0\u884c\uff0c\u5168\u7a0b 138 \u79d2\u3002<\/p>\n<\/blockquote>\n<h2>\u4e00\u30018 \u4e2a\u6837\u672c\u8dd1 WGCNA\uff0cAgent \u5148\u8be5\u8bf4\u4e0d\u5417<\/h2>\n<p>WGCNA \u7684\u6807\u51c6\u573a\u666f\u662f\u51e0\u5341\u4e0a\u767e\u4e2a\u6837\u672c\u7684\u5171\u8868\u8fbe\u7f51\u7edc\u2014\u2014\u5b83\u8981\u4f30&#8221;\u6bcf\u5bf9\u57fa\u56e0\u5728\u5168\u6837\u672c\u4e0a\u7684\u76f8\u5173\u6027&#8221;\u3002airway \u53ea\u6709 8 \u4e2a\u6837\u672c\uff0c\u5b98\u65b9 FAQ \u660e\u8bf4 <strong>n < 15 \u65f6\u76f8\u5173\u6027\u4f30\u8ba1\u4e0d\u7a33\u3001\u7ed3\u679c\u8c28\u614e\u89e3\u8bfb<\/strong>\u3002<\/p>\n<p>\u4f46\u8fd9\u6b21\u504f\u8981\u8dd1\uff0c\u800c\u4e14\u628a&#8221;\u8be5\u4e0d\u8be5\u8dd1&#8221;\u7684\u5224\u65ad\u8fc7\u7a0b\u5199\u51fa\u6765\uff0c\u539f\u56e0\u6709\u4e24\u4e2a\uff1a\u4e00\u662f\u5927\u91cf\u8bfb\u8005\u624b\u91cc\u5c31\u662f\u5c0f\u6837\u672c\uff0c\u60f3\u770b WGCNA \u5230\u5e95\u4f1a\u7ed9\u51fa\u4ec0\u4e48\uff1b\u4e8c\u662f<strong>&#8220;\u6570\u636e\u4e0d\u591f\u683c\u65f6\u6d41\u7a0b\u4f1a\u600e\u4e48\u62a5\u8b66&#8221;\u672c\u8eab\u5c31\u662f\u6700\u6709\u6559\u5b66\u4ef7\u503c\u7684\u5185\u5bb9<\/strong>\u2014\u2014soft threshold \u7684 R\u00b2 \u66f2\u7ebf\u4f1a\u76f4\u63a5\u544a\u8bc9\u4f60\u7b54\u6848\uff08\u89c1\u7b2c\u4e09\u8282\uff09\u3002<\/p>\n<p>\u5148\u770b\u6b63\u786e\u6d41\u7a0b\u4e00\u6b21\u8dd1\u901a\u7684\u90e8\u5206\uff0c\u518d\u9010\u4e2a\u62c6\u5751\u3002<\/p>\n<h2>\u4e8c\u3001\u6b63\u786e\u6d41\u7a0b\uff1a\u4ece vst \u77e9\u9635\u5230 23 \u4e2a\u6a21\u5757<\/h2>\n<p>\u8f93\u5165\u590d\u7528\u7b2c 1 \u671f\u7684 vst \u8868\u8fbe\u77e9\u9635\uff0816139 \u57fa\u56e0 \u00d7 8 \u6837\u672c\uff09\uff0cWGCNA \u5b98\u65b9\u5efa\u8bae\u6311\u9ad8\u65b9\u5dee\u57fa\u56e0\uff08\u5efa\u8bae 5000 \u4ee5\u5185\uff09\uff1a<\/p>\n<pre><code class=\"language-r\">library(WGCNA)\r\noptions(stringsAsFactors = FALSE)\r\ndisableWGCNAThreads()          # \u5751 2 \u89c1\u7b2c\u56db\u8282\r\n\r\n<p>expr <- assay(vst)             # \u7b2c 1 \u671f\u4ea7\u51fa\u7684 vst \u77e9\u9635 rv  <- rowVars(expr) sel <- order(rv, decreasing = TRUE)[1:5000] datExpr <- t(expr[sel, ])      # WGCNA \u8981\"\u6837\u672c \u00d7 \u57fa\u56e0\"\uff0c\u8f6c\u7f6e\u522b\u5fd8<\/p>\r\n\r\n<p>gsg <- goodSamplesGenes(datExpr, verbose = 0) gsg$allOK     # TRUE\uff1a\u6ca1\u6709\u5168\u96f6\u57fa\u56e0\/\u6837\u672c<\/p>\r\n\r\n<p>powers <- c(1:10, seq(12, 20, 2)) sft <- pickSoftThreshold(datExpr, powerVector = powers,                          networkType = \"signed\", verbose = 0)<\/p>\r\n\r\n<p>net <- blockwiseModules(datExpr, power = 6, networkType = \"signed\",                         TOMType = \"signed\", minModuleSize = 10,                         mergeCutHeight = 0.25, numericLabels = TRUE,                         pamRespectsDendro = FALSE, verbose = 0) moduleColors <- labels2colors(net$colors) <\/code><\/pre>\n<\/p>\n<p>\u771f\u5b9e\u8f93\u51fa\uff1a<\/p>\n<pre><code class=\"language-text\">\u77e9\u9635: 8 \u6837\u672c x 5000 \u57fa\u56e0\r\n\u6a21\u5757\u6570: 23\r\ngrey\uff08\u672a\u5165\u6a21\uff09: 794 \u57fa\u56e0\r\n<\/code><\/pre>\n<p>23 \u4e2a\u6a21\u5757\u3001794 \u4e2a\u57fa\u56e0\u6e38\u79bb\u5728 grey\uff08\u672a\u5206\u7ec4\uff09\u2014\u2014\u8fd9\u4e2a\"\u6a21\u5757\u6570\u591a\u4e8e\u6837\u672c\u6570\u80fd\u652f\u6491\u7684\u590d\u6742\u5ea6\"\u672c\u8eab\u5c31\u662f\u5c0f\u6837\u672c\u7684\u8fc7\u62df\u5408\u4fe1\u53f7\uff0c\u540e\u9762\u4f1a\u56de\u5230\u8fd9\u4e00\u70b9\u3002<\/p>\n<h2>\u4e09\u3001\u5751 1\uff1aR\u00b2 \u66f2\u7ebf\u62d2\u7edd\u8fbe\u5230 0.85\u2014\u2014\u6570\u636e\u5728\u8bf4\"\u6211\u4e0d\u591f\"<\/h2>\n<p><code>pickSoftThreshold<\/code> \u7684\u4efb\u52a1\u662f\u627e\u8ba9\u7f51\u7edc\u6ee1\u8db3 scale-free \u62d3\u6251\uff08\u65e0\u6807\u5ea6\u5206\u5e03\uff09\u7684 soft power\u3002\u5b98\u65b9\u7ecf\u9a8c\u6cd5\u5219\uff1aR\u00b2 > 0.85 \u4e14 mean connectivity \u522b\u592a\u4f4e\u3002\u770b\u771f\u5b9e\u66f2\u7ebf\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>power<\/th>\n<th>R\u00b2<\/th>\n<th>mean k<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>0.10<\/td>\n<td>2512<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>0.48<\/td>\n<td>1124<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>0.32<\/td>\n<td>550<\/td>\n<\/tr>\n<tr>\n<td>12<\/td>\n<td>0.12<\/td>\n<td>232<\/td>\n<\/tr>\n<tr>\n<td>16<\/td>\n<td>0.57<\/td>\n<td>155<\/td>\n<\/tr>\n<tr>\n<td><strong>20<\/strong><\/td>\n<td><strong>0.74<\/strong><\/td>\n<td><strong>111<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u6700\u9ad8 R\u00b2 = 0.74\uff08power=20\uff09\uff0c\u5168\u7a0b\u6ca1\u6709\u4e00\u4e2a power \u8fc7 0.85\u3002<\/strong> \u811a\u672c\u91cc <code>df$power[df$r2 > 0.85][1]<\/code> \u8fd4\u56de NA\u2014\u2014\u6b63\u786e\u6d41\u7a0b\u5728\u8fd9\u91cc\u5e94\u8be5\u505c\u4e0b\u6765\uff0c\u800c\u4e0d\u662f\u786c\u9009\u4e00\u4e2a power \u7ee7\u7eed\u3002<\/p>\n<p>8 \u4e2a\u6837\u672c\u7684\u76f8\u5173\u7cfb\u6570\u77e9\u9635\u6bcf\u683c\u53ea\u7531 8 \u4e2a\u6570\u652f\u6491\uff0cscale-free \u62df\u5408\u5728\u8fd9\u79cd\u566a\u58f0\u6c34\u5e73\u4e0b\u4e0d\u53ef\u80fd\u6536\u655b\u3002<strong>\u8fd9\u4e0d\u662f\"\u6362\u4e2a power \u518d\u8bd5\"\u7684\u95ee\u9898\uff0c\u662f\u6570\u636e\u91cf\u7684\u786c\u7ea6\u675f\u3002<\/strong> \u6362 30 \u4e2a\u6837\u672c\uff0c\u540c\u4e00\u7269\u79cd\u540c\u4e00\u7ec4\u7ec7\uff0cR\u00b2 \u66f2\u7ebf\u5927\u6982\u7387\u5728 power 6-12 \u6bb5\u5c31\u8fc7 0.85\u2014\u2014\u8fd9\u662f WGCNA \u7528\u6237\u6700\u8be5\u8bb0\u4f4f\u7684\u5224\u636e\uff1a<strong>R\u00b2 \u66f2\u7ebf\u5230\u4e0d\u4e86 0.85\uff0c\u5148\u6570\u6837\u672c\u6570\uff0c\u518d\u602a\u53c2\u6570\u3002<\/strong><\/p>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/01_softpower.png?ssl=1\" alt=\"soft threshold \u66f2\u7ebf\" \/><figcaption>\u56fe 1 soft power vs R\u00b2\uff1a\u5168\u7a0b\u672a\u8fbe 0.85<\/figcaption><\/figure>\n<p>\u6211\u4eec\u7ee7\u7eed\u8dd1\u662f\u4e3a\u4e86\u628a\"\u5e26\u75c5\u8fd0\u884c\"\u7684\u5168\u8c8c\u5c55\u793a\u51fa\u6765\u2014\u2014power \u515c\u5e95\u53d6 6\uff08\u4f4e connect \u91cf\u76f8\u5bf9\u53cb\u597d\uff09\uff0c\u7ed3\u679c\u89e3\u8bfb\u65f6\u59cb\u7ec8\u6302\u7740\"\u6a21\u5757\u6570\u4e0d\u53ef\u4fe1\"\u7684\u8b66\u793a\u3002<\/p>\n<h2>\u56db\u3001\u5751 2\uff1a\u5e7d\u7075 snow \u7b2c\u4e09\u6b21\u73b0\u8eab<\/h2>\n<p>\u4e0a\u671f BiocParallel \u7684 SnowParam \u5b50\u8fdb\u7a0b\u4e22\u5e93\u8def\u5f84\uff0c\u8fd9\u6b21\u6362\u4e86\u5f20\u8138\uff1a<\/p>\n<pre><code class=\"language-text\">Error in checkForRemoteErrors(lapply(cl, recvResult)) :\r\n  4 nodes produced errors; first error: object '.doSnowGlobals' not found\r\n<\/code><\/pre>\n<p><code>enableWGCNAThreads(4)<\/code> \u5f00\u7684\u4e5f\u662f snow \u96c6\u7fa4\uff0cworker \u5b50\u8fdb\u7a0b\u627e\u4e0d\u5230\u4e3b\u8fdb\u7a0b\u7684\u5168\u5c40\u5bf9\u8c61\u3002\u4e09\u8fde\u51fb\u7684\u5b8c\u6574\u6e05\u5355\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u671f\u6570<\/th>\n<th>\u5305<\/th>\n<th>\u62a5\u9519\u8868\u8c61<\/th>\n<th>\u540c\u4e00\u6839\u56e0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>2<\/td>\n<td>BiocParallel\/fgsea<\/td>\n<td><code>loadNamespace(\"snow\")<\/code> \u5931\u8d25<\/td>\n<td>Windows snow \u5b50\u8fdb\u7a0b\u4e0d\u7ee7\u627f\u73af\u5883<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>WGCNA<\/td>\n<td><code>.doSnowGlobals<\/code> not found<\/td>\n<td>\u540c\u4e0a<\/td>\n<\/tr>\n<tr>\n<td>\uff08\u4efb\u610f\uff09<\/td>\n<td>\u6240\u6709 snow \u7cfb<\/td>\n<td>\u4e3b\u8fdb\u7a0b\u6b63\u5e38\u3001\u4e00\u5e76\u884c\u5c31\u5012<\/td>\n<td>\u540c\u4e0a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u89e3\u6cd5\u540c\u6b3e\uff1a<code>disableWGCNAThreads()<\/code> \u4e32\u884c\u3002<\/strong> 5000 \u57fa\u56e0 \u00d7 8 \u6837\u672c\u5168\u7f51 138 \u79d2\u8dd1\u5b8c\uff0c\u5355\u7ebf\u7a0b\u6beb\u65e0\u538b\u529b\u3002\u8fd9\u4e2a\u5751\u5df2\u7ecf\u5728\u4e24\u671f\u91cc\u51fa\u73b0\u4e86\uff0c\u89c4\u5f8b\u8db3\u591f\u5199\u8fdb\u4efb\u4f55 Windows \u751f\u4fe1\u73af\u5883\u7684\u6807\u51c6\u68c0\u67e5\u6e05\u5355\uff1a<strong>\u51e1\u662f snow \u7cfb\u5e76\u884c\uff0c\u5148\u5173\u6389\u518d\u8dd1\uff1b\u771f\u9700\u8981\u5e76\u884c\uff0c\u628a\u5e93\u8def\u5f84\u548c\u73af\u5883\u5199\u8fdb worker \u542f\u52a8\u94a9\u5b50\u3002<\/strong><\/p>\n<h2>\u4e94\u3001\u5751 3\uff1aWGCNA \u7684 cor \u4e0e R 4.5 \u6cdb\u578b\u7b7e\u540d\u51b2\u7a81<\/h2>\n<p>\u591a\u7ebf\u7a0b\u5173\u6389\u540e\uff0c\u5efa\u7f51\u53c8\u5012\uff1a<\/p>\n<pre><code class=\"language-text\">Error in (new(\"standardGeneric\", ...)) :\r\n  unused arguments (weights.x = NULL, weights.y = NULL, cosine = FALSE)\r\n<\/code><\/pre>\n<p>WGCNA \u8001\u4ee3\u7801\u6309\u81ea\u5df1\u7684 <code>cor(x, y, use, weights.x, weights.y, cosine)<\/code> \u7b7e\u540d\u8c03\u51fd\u6570\uff1bR 4.x \u7684 <code>stats::cor<\/code> \u662f\u6807\u51c6\u6cdb\u578b\uff0c\u4e0d\u8ba4 <code>weights.x<\/code> \u8fd9\u4e9b\u53c2\u6570\u3002<strong>WGCNA \u5b98\u65b9 FAQ \u7684\u6807\u51c6\u89e3\u6cd5\u4e00\u884c<\/strong>\uff1a<\/p>\n<pre><code class=\"language-r\">cor <- WGCNA::cor    # \u663e\u5f0f\u7528 WGCNA \u7248 cor \u906e\u853d\r\n<\/code><\/pre>\n<p>\u52a0\u8f7d WGCNA \u540e\u7acb\u5373\u5199\u8fd9\u884c\uff0c\u4e4b\u540e <code>blockwiseModules<\/code>\u3001<code>pickSoftThreshold<\/code> \u5168\u90e8\u6b63\u5e38\u3002\u8fd9\u4e2a\u5751\u7684\u8bc6\u522b\u7279\u5f81\u5f88\u51c6\uff1a\u9519\u8bef\u4fe1\u606f\u91cc\u51fa\u73b0 <code>weights.x<\/code> \/ <code>cosine<\/code> \u5b57\u6837\uff0c\u5c31\u662f\u5b83\u3002<\/p>\n<h2>\u516d\u3001\u7ed3\u679c\u89e3\u8bfb\uff1a\u4e24\u4e2a\u6a21\u5757\u8bb2\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684\u6545\u4e8b<\/h2>\n<p>\u6a21\u5757-\u6027\u72b6\u5173\u8054\uff08\u6027\u72b6 = dex \u5904\u7406\uff0c0\/1 \u6570\u503c\u5316\uff09\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u6a21\u5757<\/th>\n<th>cor(dex)<\/th>\n<th>p<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>blue<\/strong><\/td>\n<td><strong>-0.99<\/strong><\/td>\n<td>2.8e-6<\/td>\n<\/tr>\n<tr>\n<td><strong>turquoise<\/strong><\/td>\n<td><strong>+0.97<\/strong><\/td>\n<td>4.1e-5<\/td>\n<\/tr>\n<tr>\n<td>greenyellow<\/td>\n<td>0.63<\/td>\n<td>0.09<\/td>\n<\/tr>\n<tr>\n<td>\u5176\u4f59 20 \u4e2a\u6a21\u5757<\/td>\n<td><\/td>\n<td><\/td>\n<td>x<\/td>\n<td><0.61\uff0cp>0.1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\uff08\u5b8c\u6574 23 \u6a21\u5757\u8868\u4e0e\u70ed\u56fe\u89c1 03_module_trait_heatmap.png\uff0c\u6309\u76f8\u5173\u7cfb\u6570\u6392\u5e8f\u3002\uff09<\/p>\n<p>\u4e24\u4e2a\u4fe1\u53f7\u8fdc\u8d85\u5176\u4f59\uff1a<strong>blue \u6a21\u5757\u5728\u5904\u7406\u7ec4\u6574\u4f53\u4e0b\u8c03\u3001turquoise \u6574\u4f53\u4e0a\u8c03\uff0c\u76f8\u5173\u5f3a\u5ea6 -0.99\/+0.97<\/strong>\u3002\u5bf9\u7167\u7b2c 1 \u671f\u5dee\u5f02\u5206\u6790\uff084081 \u663e\u8457\u57fa\u56e0\u300125.3%\uff09\u3001\u7b2c 2 \u671f\u5bcc\u96c6\uff08\u8840\u7ba1\/\u5faa\u73af\u901a\u8def\uff09\u2014\u2014\u4e09\u5957\u65b9\u6cd5\u6307\u5411\u540c\u4e00\u7ed3\u8bba\uff1a\u5904\u7406\u6548\u5e94\u4e3b\u5bfc\u4e14\u65b9\u5411\u5206\u660e\u3002<\/p>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/02_module_dendro.png?ssl=1\" alt=\"\u57fa\u56e0\u6811\u4e0e\u6a21\u5757\" \/><figcaption>\u56fe 3 \u57fa\u56e0\u805a\u7c7b\u6811\u4e0e\u6a21\u5757\u8272\u5e26<\/figcaption><\/figure>\n<p>blue \u6a21\u5757 Top10 hub \u57fa\u56e0\uff08\u6a21\u5757\u5185\u4e0e eigengene \u76f8\u5173\u6700\u9ad8\u8005\uff09\uff1a<\/p>\n<p><strong>KCTD12\u3001COL1A1\u3001PHLDA1\u3001MRPL49\u3001RAP2B\u3001TBX18\u3001ARHGEF2\u3001SLC6A9\u3001TUBA4A\u3001SOX4<\/strong><\/p>\n<p>\u751f\u7269\u5b66\u5408\u7406\u6027\uff1aCOL1A1\uff08\u80f6\u539f\uff09\u548c TUBA4A\uff08\u5fae\u7ba1\uff09\u662f\u7ec6\u80de\u9aa8\u67b6\/\u80de\u5916\u57fa\u8d28\u7ec4\u5206\uff0c\u5730\u585e\u7c73\u677e\u6291\u5236\u5e73\u6ed1\u808c\u589e\u6b96\u4f34\u968f ECM \u91cd\u5851\u4e0b\u8c03\u2014\u2014\u65b9\u5411\u5bf9\u3002SOX4 \u8f6c\u5f55\u56e0\u5b50\u4e0b\u8c03\u4e0e\u7cd6\u76ae\u8d28\u6fc0\u7d20\u7684\u6297\u589e\u6b96\u6548\u5e94\u4e00\u81f4\u3002<\/p>\n<p>\u4f46\u8bb0\u4f4f\u7b2c\u4e09\u8282\u7684\u8b66\u793a\uff1a8 \u6837\u672c\u4e0b hub \u6392\u540d\u7684\u7a33\u5b9a\u6027\u6709\u9650\uff0c\u8fd9\u4e9b\u57fa\u56e0<strong>\u9002\u5408\u4f5c\u4e3a\u9a8c\u8bc1\u5019\u9009<\/strong>\uff08\u6311 2-3 \u4e2a\u505a qPCR\uff09\uff0c\u4e0d\u9002\u5408\u76f4\u63a5\u5199\"hub \u57fa\u56e0\"\u8fdb\u8bba\u6587\u7ed3\u8bba\u2014\u2014\u5ba1\u7a3f\u4eba\u95ee\u4e00\u53e5\"n=8 \u7684 hub \u53ef\u4fe1\u5ea6\"\u5c31\u5f88\u96be\u7b54\u3002<\/p>\n<h2>\u4e03\u3001\u5751 4\uff1alabeledHeatmap \u7684\u53c2\u6570\u5339\u914d\u7384\u5b66<\/h2>\n<p>\u753b\u6a21\u5757-\u6027\u72b6\u70ed\u56fe\uff0cWGCNA \u81ea\u5e26\u7684 <code>labeledHeatmap()<\/code> \u8fde\u7eed\u4e24\u8f6e\u62a5\u9519\uff1a<\/p>\n<pre><code class=\"language-text\">argument 5 matches multiple formal arguments    # yLabels\/ySymbols\r\nargument 3 matches multiple formal arguments    # color\r\n<\/code><\/pre>\n<p>\u539f\u56e0\u662f\u5b83\u7684 S4 \u6cdb\u578b\u4e0e\u53c2\u6570\u4f4d\u7f6e\u5339\u914d\u5728\u4e0d\u540c R \u7248\u672c\u4e0b\u884c\u4e3a\u6f02\u79fb\uff0c\u540c\u6837\u7684\u8c03\u7528\u6587\u6863\u91cc\u80fd\u8dd1\u3001\u8fd9\u91cc\u62a5\"\u591a\u91cd\u5339\u914d\"\u3002<strong>\u4e0e\u5176\u8003\u53e4\u53c2\u6570\u987a\u5e8f\uff0c\u4e0d\u5982 ggplot \u81ea\u7ed8\u91cd\u753b<\/strong>\uff0810 \u884c\u4ee3\u7801\uff0c\u6837\u5f0f\u8fd8\u66f4\u597d\u63a7\u5236\uff09\uff1a<\/p>\n<pre><code class=\"language-r\">ggplot(resmt, aes(x=\"dex (trt)\", y=reorder(module, cor_dex), fill=cor_dex)) +\r\n  geom_tile() +\r\n  geom_text(aes(label=paste0(signif(cor_dex,2), \"n(\", signif(p_dex,1), \")\")), size=2.6) +\r\n  scale_fill_gradient2(low=\"#2166ac\", mid=\"white\", high=\"#b2182b\", limits=c(-1,1)) +\r\n  theme_bw()\r\n<\/code><\/pre>\n<p>\u6559\u8bad\u666e\u9002\uff1a<strong>\u5f53\u753b\u56fe\u51fd\u6570\u7684\u53c2\u6570\u5339\u914d\u5f00\u59cb\"\u770b\u8fd0\u6c14\"\uff0c\u5207\u6362\u5230 ggplot \u624b\u7ed8\u7684\u6210\u672c\u8fdc\u4f4e\u4e8e\u8c03\u8bd5\u3002<\/strong><\/p>\n<h2>\u516b\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>\u5c0f\u6837\u672c\u786c\u8dd1<\/td>\n<td>R\u00b2 \u66f2\u7ebf\u6700\u9ad8 0.74\uff0c\u65e0 power \u8fc7 0.85<\/td>\n<td>n=8 \u76f8\u5173\u6027\u4f30\u8ba1\u566a\u58f0\u538b\u5012\u62d3\u6251\u4fe1\u53f7<\/td>\n<td>n<15 \u614e\u7528\uff1bR\u00b2 \u4e0d\u8fbe\u6807\u5148\u6570\u6837\u672c<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u5e7d\u7075 snow\uff08WGCNA \u7248\uff09<\/td>\n<td><code>.doSnowGlobals not found<\/code><\/td>\n<td>snow \u5b50\u8fdb\u7a0b\u4e0d\u7ee7\u627f\u4e3b\u8fdb\u7a0b\u73af\u5883<\/td>\n<td><code>disableWGCNAThreads()<\/code><\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>cor \u6cdb\u578b\u51b2\u7a81<\/td>\n<td><code>unused arguments (weights.x...)<\/code><\/td>\n<td>WGCNA \u8001 cor \u7b7e\u540d vs R 4.x \u6cdb\u578b<\/td>\n<td><code>cor <- WGCNA::cor<\/code> \u906e\u853d<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>labeledHeatmap \u5339\u914d<\/td>\n<td><code>argument N matches multiple<\/code><\/td>\n<td>S4 \u6cdb\u578b\u4f4d\u7f6e\u5339\u914d\u6f02\u79fb<\/td>\n<td>ggplot \u81ea\u7ed8<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>signedKME \u63a5\u53e3\u4e0d\u7a33<\/td>\n<td>segfault\/\u975e\u5411\u91cf\u62a5\u9519<\/td>\n<td>\u63a5\u53e3\u5bf9 data.frame \u7ed3\u6784\u654f\u611f<\/td>\n<td>\u624b\u5de5 apply \u7b97\u6a21\u5757\u5185 cor<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>\u8f6c\u7f6e\u65b9\u5411<\/td>\n<td>\u77e9\u9635\u7ef4\u5ea6\u53cd<\/td>\n<td>WGCNA \u8981\u6837\u672c\u00d7\u57fa\u56e0<\/td>\n<td><code>t(expr)<\/code> \u540e\u68c0\u67e5 dim<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4e5d\u3001Agent \u89c6\u89d2\u7684\u6536\u5c3e<\/h2>\n<p><strong>\u6d41\u7a0b\u62a5\u8b66\u65f6\u8981\u505c\u4e0b\u6765\u8bfb\uff0c\u800c\u4e0d\u662f\u7ed5\u8fc7\u53bb\u3002<\/strong> \u672c\u671f\u6700\u6709\u4ef7\u503c\u7684\u4e00\u5e55\u662f <code>R\u00b2>0.85<\/code> \u7b5b\u9009\u8fd4\u56de NA\u2014\u2014\u6b63\u786e\u54cd\u5e94\u662f\"\u6570\u636e\u4e0d\u6ee1\u8db3 WGCNA \u524d\u63d0\"\uff0c\u800c Agent \u7684\u7b2c\u4e00\u53cd\u5e94\u662f\"\u515c\u5e95\u53d6 power=6 \u7ee7\u7eed\u8dd1\"\u3002\u4e24\u8005\u90fd\u5bf9\uff1a\u524d\u8005\u662f\u79d1\u5b66\u5224\u65ad\uff0c\u540e\u8005\u662f\u6559\u5b66\u6f14\u793a\u3002\u4f46<strong>\u5199\u8bba\u6587\u65f6\u53ea\u80fd\u662f\u524d\u8005<\/strong>\u2014\u2014\u53c2\u6570\u515c\u5e95\u53ef\u4ee5\u85cf\u7740\uff0c\u6837\u672c\u91cf\u4e0d\u591f\u85cf\u4e0d\u4f4f\u3002<\/p>\n<p><strong>\u4e09\u4e2a\u6570\u636e\u96c6\u89c6\u89d2\u4e92\u8bc1\u6bd4\u5355\u4e00\u65b9\u6cd5\u7ed3\u8bba\u786c\u3002<\/strong> \u5dee\u5f02\u5206\u6790\uff08\u57fa\u56e0\u7ea7\uff09\u3001\u5bcc\u96c6\uff08\u901a\u8def\u7ea7\uff09\u3001WGCNA\uff08\u6a21\u5757\u7ea7\uff09\u5728\u540c\u4e00\u6570\u636e\u4e0a\u7ed9\u51fa\u65b9\u5411\u4e00\u81f4\u7684\u7ed3\u8bba\u65f6\uff0c\u7ed3\u8bba\u7684\u53ef\u4fe1\u5ea6\u624d\u771f\u6b63\u7acb\u8d77\u6765\u3002\u4e09\u4e2a\u89c6\u89d2\u51fa\u73b0\u77db\u76fe\u65f6\uff08\u6bd4\u5982 DEG \u663e\u8457\u4f46\u6a21\u5757\u4e0d\u76f8\u5173\uff09\uff0c\u90a3\u624d\u662f\u6700\u503c\u5f97\u6df1\u6316\u7684\u751f\u7269\u5b66\u3002<\/p>\n<p>---<\/p>\n<p>\u6837\u672c\u91cf\u5728 WGCNA \u8fb9\u7f18\u3001\u62ff\u4e0d\u51c6\u7f51\u7edc\u8be5\u4e0d\u8be5\u4fe1\uff1f\u628a\u6837\u672c\u6570\u3001\u5206\u7ec4\u6570\u548c\u60f3\u9a8c\u8bc1\u7684\u8868\u578b\u53d1\u7ed9\u6211\u4eec\uff0c\u4e91\u751f\u4fe1\u5148\u5e2e\u4f60\u5224\u65ad WGCNA \u5728\u4f60\u7684\u6570\u636e\u4e0a\u662f\u4e0d\u662f\u53ef\u884c\u8def\u5f84\u2014\u2014<strong>\u4e5f\u53ef\u4ee5\u76f4\u63a5\u5728\u6211\u4eec\u7684\u670d\u52a1\u5668\u4e0a\u8bd5\u8dd1<\/strong>\uff1a\u9ad8\u5185\u5b58\u73af\u5883 + \u9884\u88c5 WGCNA\/Seurat \u751f\u6001\uff0c\u8dd1\u5b8c\u518d\u51b3\u5b9a\u3002<a href=\"https:\/\/work.weixin.qq.com\/kfid\/kfcb05492f29d4d6064\" target=\"_blank\" rel=\"noopener\">WGCNA \u53ef\u884c\u6027\u54a8\u8be2<\/a><\/p>\n<p>\u4e0d\u60f3\u81ea\u5df1\u8e29\u8fd9\u4e9b\u5751\uff1f\u628a\u6d41\u7a0b\u4ea4\u7ed9\u4e91\u751f\u4fe1 BioAgent\u3002WGCNA \u7684\u73af\u5883\u5751\uff08\u5e7d\u7075 snow\u3001cor \u51b2\u7a81\uff09\u5728 BioAgent \u4e0a\u5168\u90e8\u9884\u4fee\uff1a\u4e32\u884c\u914d\u7f6e\u3001WGCNA \u7248 cor \u5df2\u5c4f\u853d\u2014\u2014\u767b\u5f55\u5373\u8dd1\u5171\u8868\u8fbe\u7f51\u7edc\uff0csoft threshold \u66f2\u7ebf\u548c\u6a21\u5757-\u6027\u72b6\u8868\u81ea\u52a8\u4ea7\u51fa\u3002 <strong><a href=\"https:\/\/www.biocloudservice.com\/bioagent\/\" target=\"_blank\" rel=\"noopener\">\u8fdb\u5165\u4e91\u751f\u4fe1 BioAgent<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7cfb\u5217\u7b2c 4 \u671f\uff1aairway 8 \u6837\u672c\u786c\u8dd1 WGCNA\u2014\u201423 \u6a21\u5757\u3001blue \u6a21\u5757\u4e0e\u5904\u7406\u76f8\u5173 -0.99\u3001hub \u57fa\u56e0 KCTD12\/COL1A1\/SOX4\u3002\u771f\u5b9e\u5751\uff1aR\u00b2 \u66f2\u7ebf\u5230\u4e0d\u4e86 0.85 \u662f\u6837\u672c\u91cf\u786c\u7ea6\u675f\u3001\u5e7d\u7075 snow \u7b2c\u4e09\u6b21\u73b0\u8eab\u3001cor \u6cdb\u578b\u51b2\u7a81\u3002<\/p>\n","protected":false},"author":0,"featured_media":82039,"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":[80,243,590,219,1529],"class_list":["post-82040","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-transcriptomics","tag-rna-seq","tag-wgcna","tag-590","tag-219","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-1.png?fit=1600%2C900&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/82040","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=82040"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/82040\/revisions"}],"predecessor-version":[{"id":82068,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/82040\/revisions\/82068"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/82039"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=82040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=82040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=82040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}