{"id":78205,"date":"2026-11-27T16:46:58","date_gmt":"2026-11-27T08:46:58","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=78205"},"modified":"2026-11-27T16:46:58","modified_gmt":"2026-11-27T08:46:58","slug":"yunshengxin-agent-heatmap-zero-variance-20261127","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/yunshengxin-agent-heatmap-zero-variance-20261127\/","title":{"rendered":"\u70ed\u56fe\u805a\u7c7b\u62a5\u9519\uff0c\u539f\u59cb\u6570\u636e\u5374\u6ca1\u6709\u7f3a\u5931\u503c\uff1f\u4e91\u751f\u4fe1agent\u5b9e\u64cd\u6392\u67e5"},"content":{"rendered":"<style>.ysx-hm{max-width:800px;margin:auto;color:#223449;font-size:17px;line-height:1.9;overflow-wrap:anywhere}.ysx-hm h2{font-size:25px;margin:42px 0 18px;color:#15395e;line-height:1.4}.ysx-hm p{margin:18px 0}.ysx-hm a{color:#1569b7;text-decoration:underline}.ysx-hm figure{margin:28px auto}.ysx-hm img{display:block;width:100%;height:auto;border:0}.ysx-hm .ui-shot{max-width:440px;padding:8px;border:1px solid #d5e0e8;border-radius:9px;background:#fff}.ysx-hm .ui-shot img{width:auto;max-width:100%;margin:auto}.ysx-hm figcaption{font-size:14px;line-height:1.6;color:#5c6b79;margin-top:12px;text-align:center}.ysx-hm blockquote{border-left:4px solid #2877c1;padding:12px 20px;background:#eff6ff;margin:24px 0;font-size:16px;user-select:text;color:#233c56}.ysx-hm .ysx-table{overflow-x:auto;margin:24px 0}.ysx-hm table{border-collapse:collapse;width:100%;font-size:15px}.ysx-hm th,.ysx-hm td{border:1px solid #d7e1eb;padding:9px;text-align:left;min-width:84px;overflow-wrap:normal}.ysx-hm th{background:#eaf3fc;color:#15395e}.ysx-hm tbody tr:nth-child(even){background:#f8fbfe}.ysx-hm pre{overflow:auto;padding:14px;background:#f1f5f9;font-size:14px;line-height:1.7;white-space:pre}.ysx-hm code{overflow-wrap:normal}@media(max-width:600px){.ysx-hm h2{font-size:23px}.ysx-hm blockquote{padding:8px 12px}.ysx-hm th,.ysx-hm td{padding:7px;font-size:14px}.ysx-hm .ui-shot{padding:3px}}<\/style>\n<div class=\"ysx-hm\">\n<p>\u8868\u8fbe\u77e9\u9635\u5bfc\u5165\u6210\u529f\uff0c\u68c0\u67e5\u7f3a\u5931\u503c\u4e5f\u663e\u793a0\uff0c\u5230\u4e86\u70ed\u56fe\u805a\u7c7b\u5374\u62a5\u9519\u3002\u5f88\u591a\u521d\u5b66\u8005\u4f1a\u5148\u6362\u914d\u8272\u3001\u6362\u805a\u7c7b\u65b9\u6cd5\uff0c\u6216\u8005\u5c1d\u8bd5\u628a\u6240\u6709NA\u90fd\u6539\u62100\u3002<\/p>\n<p>\u8fd9\u7c7b\u95ee\u9898\u6709\u4e00\u4e2a\u5bb9\u6613\u6f0f\u6389\u7684\u6765\u6e90\uff1a<strong>\u7f3a\u5931\u503c\u53ef\u80fd\u662f\u540e\u9762\u7684\u8ba1\u7b97\u4ea7\u751f\u7684\u3002\u539f\u59cb\u77e9\u9635\u6ca1\u6709NA\uff0c\u4e0d\u4ee3\u8868\u6807\u51c6\u5316\u540e\u7684\u77e9\u9635\u4ecd\u7136\u5168\u90e8\u6709\u6548\u3002<\/strong><\/p>\n<p>\u8fd9\u6b21\u6211\u4eec\u7528\u771f\u5b9e\u516c\u5f00\u7684 pasilla RNA-seq \u8ba1\u6570\uff0c\u5728\u4e91\u751f\u4fe1agent\u4e2d\u8d70\u4e00\u904d\u201c\u68c0\u67e5\u8f93\u5165 \u2192 \u884c\u6807\u51c6\u5316 \u2192 \u6355\u83b7\u805a\u7c7b\u9519\u8bef \u2192 \u4fee\u590d \u2192 \u91cd\u65b0\u51fa\u56fe\u201d\u3002\u672c\u6b21\u539f\u59cb\u8868\u6ca1\u6709\u7f3a\u5931\u503c\uff0c\u4f46\u76f4\u63a5\u505a\u884cZ-score\u540e\u51fa\u73b0\u4e86 <strong>15,680\u4e2aNaN<\/strong>\u3002\u4e0b\u9762\u4e0d\u53ea\u7ed9\u4e00\u5f20\u4fee\u597d\u7684\u56fe\uff0c\u8fd8\u628a\u8fd9\u4e9b\u6570\u4ece\u54ea\u91cc\u6765\u3001\u54ea\u4e9b\u884c\u88ab\u6392\u9664\u3001\u6392\u9664\u540e\u80fd\u8bf4\u4ec0\u4e48\u4e00\u8d77\u8bb2\u6e05\u3002<\/p>\n<figure class=\"science-figure\"><a href=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-cover.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"pasilla\u771f\u5b9e\u6570\u636e\u5b9e\u64cd\uff1a\u539f\u59cb\u8868\u6ca1\u6709\u7f3a\u5931\u503c\uff0c\u884c\u6807\u51c6\u5316\u540e\u51fa\u73b015680\u4e2aNaN\uff1b\u5148\u67e5\u96f6\u65b9\u5dee\uff0c\u518d\u91cd\u753b\u70ed\u56fe\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-cover.png?ssl=1\" \/><\/a><figcaption>pasilla\u771f\u5b9e\u6570\u636e\u5b9e\u64cd\uff1a\u539f\u59cb\u8868\u6ca1\u6709\u7f3a\u5931\u503c\uff0c\u884c\u6807\u51c6\u5316\u540e\u51fa\u73b015680\u4e2aNaN\uff1b\u5148\u67e5\u96f6\u65b9\u5dee\uff0c\u518d\u91cd\u753b\u70ed\u56fe<\/figcaption><\/figure>\n<h2>\u8fd9\u6b21\u7528\u4ec0\u4e48\u6570\u636e\uff0c\u89e3\u51b3\u54ea\u4e00\u6b65\u7684\u95ee\u9898\uff1f<\/h2>\n<p>\u6570\u636e\u6765\u81ea Bioconductor \u7684 <strong>pasilla<\/strong> \u5305\uff0c\u662f\u679c\u8747 pasilla \u6572\u4f4e\u5b9e\u9a8c\u7684\u516c\u5f00\u6570\u636e\u3002\u6211\u4eec\u4e0b\u8f7d\u5305\u4e2d\u63d0\u4f9b\u7684\u57fa\u56e0\u8ba1\u6570\u8868\u4e0e\u6837\u672c\u6ce8\u91ca\uff0c\u4f7f\u752814,599\u4e2a\u57fa\u56e0\u30017\u4e2a\u6837\u672c\uff0c\u5176\u4e2d4\u4e2a untreated\u30013\u4e2a treated\u3002<a href=\"https:\/\/www.bioconductor.org\/packages\/release\/data\/experiment\/html\/pasilla.html\">\u5b98\u65b9\u6570\u636e\u5305<\/a><\/p>\n<div class=\"ysx-table\">\n<table>\n<thead>\n<tr>\n<th>\u9879\u76ee<\/th>\n<th>\u672c\u6b21\u5904\u7406<\/th>\n<th>\u5bf9\u8bfb\u8005\u7684\u610f\u4e49<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u8f93\u5165\u8868\u8fbe\u8868<\/td>\n<td>14,599\u884c \u00d7 7\u5217\uff0c\u6709\u9650\u975e\u8d1f\u6574\u6570<\/td>\n<td>\u539f\u59cb\u8ba1\u6570\u91cc\u6ca1\u6709NA\u3001NaN\u6216Inf<\/td>\n<\/tr>\n<tr>\n<td>\u6837\u672c\u5bf9\u5e94<\/td>\n<td>\u7528\u6837\u672cID\u5339\u914d\u6ce8\u91ca<\/td>\n<td>U1\u2014U4\u5bf9\u5e94untreated1\u20144\uff0cT1\u2014T3\u5bf9\u5e94treated1\u20143<\/td>\n<\/tr>\n<tr>\n<td>\u5c55\u793a\u524d\u8f6c\u6362<\/td>\n<td>\u6bcf\u5217\u603b\u8ba1\u6570\u7b97CPM\uff0c\u518d\u505alog2(CPM+1)<\/td>\n<td>\u8ba9\u672c\u4f8b\u6709\u4e00\u4e2a\u660e\u786e\u3001\u53ef\u590d\u7b97\u7684\u7ed8\u56fe\u8f93\u5165<\/td>\n<\/tr>\n<tr>\n<td>\u884c\u6807\u51c6\u5316<\/td>\n<td>\u6bcf\u884c\u51cf\u53bb\u81ea\u8eab\u5747\u503c\uff0c\u518d\u9664\u4ee5\u81ea\u8eab\u6837\u672c\u6807\u51c6\u5dee<\/td>\n<td>7\u4e2a\u6837\u672c\u4f7f\u7528\u5206\u6bcdn\u22121\uff0c\u5373<code>ddof=1<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u4fee\u590d\u89c4\u5219<\/td>\n<td>\u4ec5\u5728\u70ed\u56fe\u8f93\u5165\u4e2d\u6392\u9664\u6807\u51c6\u5dee\u4e3a0\u6216\u975e\u6709\u9650\u7684\u884c<\/td>\n<td>\u4fdd\u7559\u6392\u9664\u6e05\u5355\uff0c\u539f\u59cb\u8ba1\u6570\u6587\u4ef6\u4e0d\u4fee\u6539<\/td>\n<\/tr>\n<tr>\n<td>\u805a\u7c7b\u8bbe\u7f6e<\/td>\n<td>\u6b27\u6c0f\u8ddd\u79bb\u3001average\u8fde\u63a5\u6cd5<\/td>\n<td>\u524d\u540e\u53ea\u6539\u53d8\u65e0\u6548\u884c\u662f\u5426\u53c2\u4e0e\uff0c\u4e0d\u9760\u66f4\u6362\u65b9\u6cd5\u7ed5\u8fc7\u9519\u8bef<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u8fd9\u5957CPM\u8f6c\u6362\u7528\u4e8e\u672c\u6b21\u7ed8\u56fe\u6392\u9519\uff0c\u4e0d\u4ee3\u8868\u5b8c\u6574\u7684RNA-seq\u5dee\u5f02\u5206\u6790\u65b9\u6848\u3002\u6837\u672c\u4e2d\u5b58\u5728 single-read \u4e0e paired-end \u4e24\u79cd\u5efa\u5e93\u7c7b\u578b\uff0c\u6ce8\u91ca\u5df2\u4fdd\u7559\uff1b\u672c\u6587\u6ca1\u6709\u505a\u6279\u6b21\u6821\u6b63\uff0c\u4e5f\u4e0d\u6839\u636e\u70ed\u56fe\u5224\u65ad\u6572\u4f4e\u6548\u679c\u662f\u5426\u663e\u8457\u3002<a href=\"https:\/\/raw.githubusercontent.com\/bioc\/pasilla\/devel\/inst\/extdata\/pasilla_sample_annotation.csv\">\u539f\u59cb\u6837\u672c\u6ce8\u91ca<\/a><\/p>\n<h2>\u4e0a\u4f20\u6570\u636e\uff0c\u628a\u6392\u9519\u8981\u6c42\u8bf4\u6e05\u695a<\/h2>\n<p>\u6211\u4eec\u4e0a\u4f20 <code>counts.csv<\/code> \u4e0e <code>samples.csv<\/code>\uff0c\u8ba9agent\u4fdd\u7559\u5b8c\u6574\u8f93\u5165\uff0c\u5e76\u628a\u6bcf\u4e00\u6b65\u68c0\u67e5\u5199\u5165\u7ed3\u679c\u8868\u3002\u4e0b\u9762\u662f\u53ef\u590d\u5236\u7684\u6838\u5fc3\u63d0\u95ee\uff1b\u5b9e\u9645\u4f1a\u8bdd\u8fd8\u6307\u5b9a\u4e86\u62bd\u53d6\u89c4\u5219\u3001\u56fe\u5e45\u3001\u5b57\u53f7\u548c\u6587\u4ef6\u540d\u3002<\/p>\n<blockquote>\n<p>\u8bf7\u68c0\u67e5\u8868\u8fbe\u77e9\u9635\u4e0e\u6837\u672c\u8868\uff0c\u6309\u6837\u672cID\u5bf9\u9f50\u3002\u5148\u8ba1\u7b97CPM\u548clog2(CPM+1)\uff0c\u518d\u9010\u884c\u505aZ-score\uff0c\u8bb0\u5f55\u6bcf\u4e00\u6b65\u975e\u6709\u9650\u503c\u7684\u6570\u91cf\u3002\u4e0d\u8981\u76f4\u63a5\u628aNaN\u586b\u62100\u3002\u8bf7\u4fdd\u7559\u96f6\u6807\u51c6\u5dee\u884c\u7684\u6e05\u5355\uff0c\u5728\u4e00\u4e2a\u5c0f\u7684\u771f\u5b9e\u6570\u636e\u5b50\u96c6\u4e2d\u6355\u83b7\u805a\u7c7b\u9519\u8bef\uff0c\u7136\u540e\u6392\u9664\u8fd9\u4e9b\u884c\u5e76\u91cd\u65b0\u805a\u7c7b\u3001\u7ed8\u56fe\u3002\u5bfc\u51fa\u68c0\u67e5\u8868\u3001\u9519\u8bef\u65e5\u5fd7\u3001\u4fee\u590d\u540e\u7684\u77e9\u9635\u3001\u8ba1\u7b97\u4ee3\u7801\uff0c\u4ee5\u53ca\u4e24\u5f20\u72ec\u7acbPNG\u548cPDF\u3002\u53ea\u6f14\u793a\u70ed\u56fe\u6392\u9519\uff0c\u4e0d\u505a\u5dee\u5f02\u8868\u8fbe\u7ed3\u8bba\u3002<\/p>\n<\/blockquote>\n<figure class=\"ui-shot\"><a href=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-plan-chat.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\u4e91\u751f\u4fe1agent\u4e2d\u70ed\u56fe\u6392\u9519\u5206\u6790\u65b9\u6848\u7684\u771f\u5b9e\u5c40\u90e8\u622a\u56fe\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-plan-chat.png?ssl=1\" \/><\/a><figcaption>\u4e91\u751f\u4fe1agent\u4e2d\u70ed\u56fe\u6392\u9519\u5206\u6790\u65b9\u6848\u7684\u771f\u5b9e\u5c40\u90e8\u622a\u56fe<\/figcaption><\/figure>\n<p>\u4e3a\u4e86\u8ba9\u62a5\u9519\u5bb9\u6613\u590d\u67e5\uff0c\u6211\u4eec\u6ca1\u6709\u628a\u4e00\u4e07\u591a\u884c\u76f4\u63a5\u4ea4\u7ed9\u5c42\u6b21\u805a\u7c7b\u3002\u5148\u68c0\u67e5\u5b8c\u6574\u77e9\u9635\uff0c\u518d\u6784\u9020\u4e00\u4e2a<strong>\u7531\u771f\u5b9e\u6570\u636e\u884c\u7ec4\u6210\u768414\u884c\u6f14\u793a\u5b50\u96c6<\/strong>\uff1a\u6309\u57fa\u56e0ID\u6392\u5e8f\u53d62\u4e2a\u96f6\u6807\u51c6\u5dee\u57fa\u56e0\uff0c\u52a0\u4e0alogCPM\u6807\u51c6\u5dee\u6700\u5927\u768412\u4e2a\u975e\u6052\u5b9a\u57fa\u56e0\u3002\u540c\u5206\u65f6\u6309\u57fa\u56e0ID\u6392\u5e8f\u3002\u8fd9\u6837\u65e2\u4fdd\u7559\u4e86\u771f\u6b63\u7684\u95ee\u9898\u884c\uff0c\u4e5f\u80fd\u8ba9\u8bfb\u8005\u770b\u61c2\u4fee\u590d\u524d\u540e\u53d1\u751f\u4e86\u4ec0\u4e48\u3002<\/p>\n<p>\u8fd914\u884c\u4e0d\u662f\u968f\u673a\u62bd\u6837\uff0c\u4e5f\u4e0d\u662f\u5dee\u5f02\u57fa\u56e0\u540d\u5355\uff1b\u5b83\u4eec\u662f\u6309\u660e\u786e\u89c4\u5219\u9009\u51fa\u6765\u7684\u6392\u9519\u793a\u4f8b\uff0c\u8868\u8fbe\u503c\u6ca1\u6709\u4eba\u4e3a\u4fee\u6539\u3002<\/p>\n<h2>\u7b2c\u4e00\u4e2a\u5173\u952e\u53d1\u73b0\uff1aNaN\u51fa\u73b0\u5728\u884c\u6807\u51c6\u5316\u8fd9\u4e00\u6b65<\/h2>\n<figure class=\"science-figure\"><a href=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-fig1_nonfinite_stages.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\u539f\u59cb\u79d1\u5b66\u56fe\uff1a\u5b8c\u6574\u8ba1\u6570\u3001logCPM\u3001\u672a\u8fc7\u6ee4\u884cZ-score\u4e0e\u4fee\u590d\u540e\u884cZ-score\u4e2d\u7684\u975e\u6709\u9650\u5143\u7d20\u6570\u91cf\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-fig1_nonfinite_stages.png?ssl=1\" \/><\/a><figcaption>\u539f\u59cb\u79d1\u5b66\u56fe\uff1a\u5b8c\u6574\u8ba1\u6570\u3001logCPM\u3001\u672a\u8fc7\u6ee4\u884cZ-score\u4e0e\u4fee\u590d\u540e\u884cZ-score\u4e2d\u7684\u975e\u6709\u9650\u5143\u7d20\u6570\u91cf<\/figcaption><\/figure>\n<div class=\"ysx-table\">\n<table>\n<thead>\n<tr>\n<th>\u68c0\u67e5\u9636\u6bb5<\/th>\n<th style=\"text-align: right;\">\u77e9\u9635\u7ef4\u5ea6<\/th>\n<th style=\"text-align: right;\">\u975e\u6709\u9650\u5143\u7d20\u6570<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u539f\u59cbcounts<\/td>\n<td style=\"text-align: right;\">14,599 \u00d7 7<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<\/tr>\n<tr>\n<td>log2(CPM+1)<\/td>\n<td style=\"text-align: right;\">14,599 \u00d7 7<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<\/tr>\n<tr>\n<td>\u6240\u6709\u884c\u76f4\u63a5\u505aZ-score<\/td>\n<td style=\"text-align: right;\">14,599 \u00d7 7<\/td>\n<td style=\"text-align: right;\">15,680<\/td>\n<\/tr>\n<tr>\n<td>\u6392\u9664\u96f6\u6807\u51c6\u5dee\u884c\u540e\u505aZ-score<\/td>\n<td style=\"text-align: right;\">12,359 \u00d7 7<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u8fd9\u6b21\u5171\u6709 <strong>2,240\u884c\u5168\u4e3a0<\/strong>\uff0c\u5728logCPM\u77e9\u9635\u91cc\u4e5f\u5168\u4e3a0\uff0c\u56e0\u6b64\u6bcf\u884c\u5747\u503c\u4e3a0\u3001\u6807\u51c6\u5dee\u4e3a0\u3002\u6309\u516c\u5f0f\u8ba1\u7b97\uff0c\u6bcf\u4e2a\u4f4d\u7f6e\u90fd\u9047\u5230 <code>0 \/ 0<\/code>\uff0c\u4ea7\u751fNaN\u3002<\/p>\n<p>\u6240\u4ee5\uff0c<strong>2,240\u884c \u00d7 7\u4e2a\u6837\u672c = 15,680\u4e2aNaN<\/strong>\u3002\u56fe\u4e2d\u7684\u6570\u91cf\u5355\u4f4d\u662f\u77e9\u9635\u5143\u7d20\uff0c\u4e0d\u662f\u53c8\u53d1\u73b0\u4e8615,680\u4e2a\u95ee\u9898\u57fa\u56e0\u3002<\/p>\n<p>\u62ff\u6f14\u793a\u5b50\u96c6\u4e2d\u7684\u4e24\u4e2a\u771f\u5b9e\u57fa\u56e0\u770b\uff0c\u5c31\u5f88\u76f4\u89c2\uff1a<\/p>\n<div class=\"ysx-table\">\n<table>\n<thead>\n<tr>\n<th>\u57fa\u56e0ID<\/th>\n<th>\u539f\u59cb7\u4e2a\u8ba1\u6570<\/th>\n<th style=\"text-align: right;\">logCPM\u6807\u51c6\u5dee<\/th>\n<th>\u76f4\u63a5\u884c\u6807\u51c6\u5316\u7684\u7ed3\u679c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>FBgn0000038<\/td>\n<td>0, 0, 0, 0, 0, 0, 0<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<td>7\u4e2aNaN<\/td>\n<\/tr>\n<tr>\n<td>FBgn0000056<\/td>\n<td>0, 0, 0, 0, 0, 0, 0<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<td>7\u4e2aNaN<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u884cZ-score\u7684\u8ba1\u7b97\u662f <code>z = (x \u2212 \u884c\u5747\u503c) \/ \u884c\u6807\u51c6\u5dee<\/code>\u3002R\u7684 <code>pheatmap(scale=\"row\")<\/code> \u6e90\u7801\u540c\u6837\u5148\u9010\u884c\u8ba1\u7b97\u5747\u503c\u4e0e\u6807\u51c6\u5dee\uff0c\u518d\u505a\u8fd9\u4e2a\u9664\u6cd5\uff1b<code>na.rm=TRUE<\/code>\u4e0d\u4f1a\u8ba9\u96f6\u6807\u51c6\u5dee\u53d8\u6210\u975e\u96f6\u3002<a href=\"https:\/\/raw.githubusercontent.com\/raivokolde\/pheatmap\/master\/R\/pheatmap.r\">pheatmap\u4f5c\u8005\u6e90\u7801<\/a><\/p>\n<p>\u96f6\u6807\u51c6\u5dee\u4e5f\u4e0d\u53ea\u53d1\u751f\u5728\u5168\u96f6\u884c\u3002\u53ea\u8981<strong>\u9001\u5165\u6807\u51c6\u5316\u7684\u77e9\u9635\u4e2d\uff0c\u4e00\u884c\u6240\u6709\u503c\u90fd\u76f8\u540c<\/strong>\uff0c\u5c31\u6ca1\u6709\u53ef\u4ee5\u7528\u6765\u7f29\u653e\u7684\u884c\u5185\u53d8\u5316\u3002\u672c\u6b21\u6570\u636e\u91cc\uff0c\u8fd92,240\u884c\u6070\u597d\u5168\u662f\u5168\u96f6\u884c\u3002<\/p>\n<h2>\u771f\u6b63\u6355\u83b7\u4e00\u6b21\u9519\u8bef\uff0c\u518d\u9a8c\u8bc1\u4fee\u590d<\/h2>\n<p>\u672c\u6b21\u5e73\u53f0\u6267\u884c\u7684\u662fPython\u3002\u5bf9\u4e0a\u8ff014\u884cZ-score\u8ba1\u7b97\u884c\u95f4\u6b27\u6c0f\u8ddd\u79bb\uff0c\u518d\u9001\u5165SciPy\u5c42\u6b21\u805a\u7c7b\uff0c\u5b9e\u9645\u6355\u83b7\u5230\uff1a<\/p>\n<pre><code class=\"language-text\">The condensed distance matrix must contain only finite values.\r\n<\/code><\/pre>\n<p>\u9519\u8bef\u65e5\u5fd7\u4fdd\u5b58\u5728\u4e0b\u8f7d\u5305\u4e2d\uff0c\u5c5e\u4e8e\u672c\u6b21\u4e3b\u52a8\u590d\u73b0\u7684\u9884\u671f\u9519\u8bef\u3002\u4e0d\u540c\u8f6f\u4ef6\u3001\u4e0d\u540c\u5904\u7406\u987a\u5e8f\u53ef\u80fd\u62a5\u51fa\u4e0d\u540c\u6587\u6848\uff1b\u672c\u6587\u6ca1\u6709\u628a\u8fd9\u6761\u65e5\u5fd7\u5192\u5145R\u7684\u8fd0\u884c\u7ed3\u679c\u3002SciPy\u5b98\u65b9\u6587\u6863\u660e\u786e\u8981\u6c42\u8f93\u5165\u8ddd\u79bb\u4e2d\u7684\u5143\u7d20\u5168\u90e8\u6709\u9650\u3002<a href=\"https:\/\/docs.scipy.org\/doc\/scipy\/reference\/generated\/scipy.cluster.hierarchy.linkage.html\">linkage\u6587\u6863<\/a><\/p>\n<div class=\"ysx-table\">\n<table>\n<thead>\n<tr>\n<th>\u6f14\u793a\u5b50\u96c6<\/th>\n<th style=\"text-align: right;\">\u884c\u6570<\/th>\n<th style=\"text-align: right;\">\u884c\u95f4\u8ddd\u79bb\u4e2a\u6570<\/th>\n<th style=\"text-align: right;\">\u975e\u6709\u9650\u8ddd\u79bb\u6570<\/th>\n<th>\u805a\u7c7b\u7ed3\u679c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>2\u4e2a\u96f6\u6807\u51c6\u5dee\u884c\uff0b12\u4e2a\u975e\u6052\u5b9a\u884c<\/td>\n<td style=\"text-align: right;\">14<\/td>\n<td style=\"text-align: right;\">91<\/td>\n<td style=\"text-align: right;\">25<\/td>\n<td>\u6355\u83b7\u9519\u8bef<\/td>\n<\/tr>\n<tr>\n<td>\u540c\u4e00\u5b50\u96c6\u6392\u96642\u4e2a\u96f6\u6807\u51c6\u5dee\u884c<\/td>\n<td style=\"text-align: right;\">12<\/td>\n<td style=\"text-align: right;\">66<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<td>\u6210\u529f\u751f\u621011\u6b21\u5408\u5e76\u8bb0\u5f55<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u8fd9\u91cc\u768491\u6765\u81ea14\u00d713\u00f72\uff0c66\u6765\u81ea12\u00d711\u00f72\u3002\u4e24\u884cNaN\u5404\u81ea\u4e0e\u5176\u4ed6\u884c\u8ba1\u7b97\u8ddd\u79bb\uff0c\u6d89\u53ca25\u4e2a\u4e0d\u540c\u7684\u884c\u5bf9\uff1b\u6392\u9664\u5b83\u4eec\u540e\uff0c\u5269\u4f5966\u4e2a\u8ddd\u79bb\u90fd\u6709\u6548\u3002\u8fd9\u6837\u5c31\u628a\u201c\u56fe\u753b\u4e0d\u51fa\u6765\u201d\u7f29\u5c0f\u5230\u4e86\u4e00\u4e2a\u53ef\u4ee5\u5177\u4f53\u6838\u5bf9\u7684\u539f\u56e0\u3002<\/p>\n<p>\u5b8c\u6574\u77e9\u9635\u7684\u6392\u9664\u6e05\u5355\u67092,240\u884c\uff1b\u6f14\u793a\u5b50\u96c6\u53ea\u6392\u9664\u5176\u4e2d2\u884c\u3002<strong>\u8fd9\u4e24\u4e2a\u6570\u5b57\u5bf9\u5e94\u4e0d\u540c\u8303\u56f4\uff0c\u4e0d\u80fd\u6df7\u7528\u3002<\/strong> \u4e24\u4e2a\u6b65\u9aa4\u90fd\u4fdd\u7559\u539f\u59cb7\u4e2a\u6837\u672c\uff0c\u539f\u59cb\u8ba1\u6570\u6587\u4ef6\u4fdd\u6301\u4e0d\u53d8\u3002<\/p>\n<h2>\u7b2c\u4e8c\u5f20\u56fe\uff1a\u56fe\u753b\u51fa\u6765\u4e86\uff0c\u5e94\u8be5\u600e\u6837\u8bfb\uff1f<\/h2>\n<figure class=\"science-figure\"><a href=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-fig2_heatmap_rowZ.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\u539f\u59cb\u79d1\u5b66\u56fe\uff1a\u4fee\u590d\u540e\u768412\u57fa\u56e0\u00d77\u6837\u672c\u70ed\u56fe\uff0c\u884c\u6309\u805a\u7c7b\u53f6\u5e8f\u6392\u5217\uff0c\u5217\u4fdd\u7559\u539f\u59cb\u6837\u672c\u987a\u5e8f\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-fig2_heatmap_rowZ.png?ssl=1\" \/><\/a><figcaption>\u539f\u59cb\u79d1\u5b66\u56fe\uff1a\u4fee\u590d\u540e\u768412\u57fa\u56e0\u00d77\u6837\u672c\u70ed\u56fe\uff0c\u884c\u6309\u805a\u7c7b\u53f6\u5e8f\u6392\u5217\uff0c\u5217\u4fdd\u7559\u539f\u59cb\u6837\u672c\u987a\u5e8f<\/figcaption><\/figure>\n<p>\u8fd9\u5f20\u56fe\u663e\u793a\u7684\u662f12\u4e2a\u975e\u6052\u5b9a\u57fa\u56e0\u7684<strong>\u884cZ-score<\/strong>\u3002\u7ea2\u8272\u8868\u793a\u8be5\u57fa\u56e0\u5728\u8fd9\u4e2a\u6837\u672c\u4e2d\u7684\u503c\u9ad8\u4e8e\u5b83\u81ea\u8eab\u76847\u6837\u672c\u5e73\u5747\u503c\uff0c\u84dd\u8272\u8868\u793a\u4f4e\u4e8e\u81ea\u8eab\u5e73\u5747\u503c\u3002\u4e0d\u80fd\u6839\u636e\u4e0d\u540c\u57fa\u56e0\u4e4b\u95f4\u8c01\u66f4\u7ea2\uff0c\u5224\u65ad\u8c01\u7684\u7edd\u5bf9\u8868\u8fbe\u91cf\u66f4\u9ad8\u3002<\/p>\n<p>\u5217\u987a\u5e8f\u56fa\u5b9a\u4e3aU1\u2014U4\u3001T1\u2014T3\uff0c\u6ca1\u6709\u4e3a\u4e86\u5c55\u793a\u5206\u7ec4\u6548\u679c\u91cd\u65b0\u805a\u7c7b\u5217\u3002\u884c\u987a\u5e8f\u6765\u81ea12\u884c\u4fee\u590d\u77e9\u9635\u7684\u6b27\u6c0f\u8ddd\u79bb\u4e0eaverage\u8fde\u63a5\u6cd5\uff1b\u56fe\u4e2d\u540c\u4e00\u884c\u7684\u989c\u8272\u6a21\u5f0f\u624d\u662f\u4e3b\u8981\u9605\u8bfb\u5bf9\u8c61\u3002<\/p>\n<p>\u4ee5 <strong>FBgn0053909<\/strong> \u4e3a\u4f8b\uff0c\u76f4\u63a5\u56de\u67e5\u8ba1\u6570\u548cZ\u503c\uff1a<\/p>\n<div class=\"ysx-table\">\n<table>\n<thead>\n<tr>\n<th>\u6837\u672c<\/th>\n<th>\u5efa\u5e93\u7c7b\u578b<\/th>\n<th style=\"text-align: right;\">\u539f\u59cb\u8ba1\u6570<\/th>\n<th style=\"text-align: right;\">\u884cZ-score<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>U1<\/td>\n<td>\u5355\u7aef<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<td style=\"text-align: right;\">-1.059<\/td>\n<\/tr>\n<tr>\n<td>U2<\/td>\n<td>\u5355\u7aef<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<td style=\"text-align: right;\">-1.059<\/td>\n<\/tr>\n<tr>\n<td>U3<\/td>\n<td>\u53cc\u7aef<\/td>\n<td style=\"text-align: right;\">181<\/td>\n<td style=\"text-align: right;\">0.888<\/td>\n<\/tr>\n<tr>\n<td>U4<\/td>\n<td>\u53cc\u7aef<\/td>\n<td style=\"text-align: right;\">165<\/td>\n<td style=\"text-align: right;\">0.736<\/td>\n<\/tr>\n<tr>\n<td>T1<\/td>\n<td>\u5355\u7aef<\/td>\n<td style=\"text-align: right;\">0<\/td>\n<td style=\"text-align: right;\">-1.059<\/td>\n<\/tr>\n<tr>\n<td>T2<\/td>\n<td>\u53cc\u7aef<\/td>\n<td style=\"text-align: right;\">117<\/td>\n<td style=\"text-align: right;\">0.552<\/td>\n<\/tr>\n<tr>\n<td>T3<\/td>\n<td>\u53cc\u7aef<\/td>\n<td style=\"text-align: right;\">270<\/td>\n<td style=\"text-align: right;\">1.000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u5b83\u5728U1\u3001U2\u3001T1\u7684\u8ba1\u6570\u662f0\uff0c\u4f46\u884cZ\u7ea6\u4e3a\u22121.059\uff1b\u8fd9\u8868\u793a\u5b83\u4f4e\u4e8e\u8be5\u57fa\u56e0\u81ea\u8eab\u7684\u6837\u672c\u5e73\u5747\u503c\u3002\u5176\u4f594\u4e2a\u6837\u672c\u7684Z\u4e3a\u6b63\u3002<strong>\u8ba1\u6570\u4e3a0\uff0c\u548c\u884cZ\u7b49\u4e8e0\uff0c\u542b\u4e49\u4e0d\u540c\u3002<\/strong><\/p>\n<p>\u8fd9\u4e00\u884c\u201c\u96f6\u4e0e\u975e\u96f6\u201d\u7684\u5206\u5e03\u4e0e\u5355\u7aef\u3001\u53cc\u7aef\u6807\u6ce8\u4e00\u81f4\uff0c\u800c\u4e14\u8de8\u8d8a\u4e86U\/T\u5206\u7ec4\u3002\u56e0\u6b64\u4e0d\u80fd\u628a\u5b83\u6982\u62ec\u6210\u5904\u7406\u7ec4\u4e0e\u672a\u5904\u7406\u7ec4\u7b80\u5355\u76f8\u53cd\u3002\u8fd9\u662f\u9700\u8981\u8fdb\u4e00\u6b65\u6838\u67e5\u7684\u5171\u73b0\u6a21\u5f0f\uff0c\u5c1a\u4e0d\u80fd\u8bc1\u660e\u5efa\u5e93\u7c7b\u578b\u9020\u6210\u4e86\u8be5\u5dee\u5f02\u3002<\/p>\n<p>\u70ed\u56fe\u4e2d\u768412\u884c\u6309logCPM\u6807\u51c6\u5dee\u9009\u51fa\uff0c\u4ec5\u7528\u4e8e\u6e05\u695a\u5c55\u793a\u7ed3\u679c\u3002\u5b83\u4eec\u4e0d\u662f\u7edf\u8ba1\u68c0\u9a8c\u9009\u51fa\u7684\u5dee\u5f02\u57fa\u56e0\uff1b\u201c\u9ad8\u53d8\u201d\u201c\u805a\u5728\u4e00\u8d77\u201d\u201c\u989c\u8272\u6709\u5dee\u522b\u201d\u4e5f\u90fd\u4e0d\u80fd\u5355\u72ec\u66ff\u4ee3\u5dee\u5f02\u8868\u8fbe\u68c0\u9a8c\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u6392\u9664\u96f6\u6807\u51c6\u5dee\u884c\u53ea\u89e3\u51b3\u4e86\u8fd9\u6b21\u8ba1\u7b97\u5b9a\u4e49\u7684\u95ee\u9898\u3002\u4f4e\u8ba1\u6570\u3001\u9ad8\u566a\u58f0\u3001\u5f02\u5e38\u6837\u672c\u3001\u5206\u7ec4\u4e0e\u5efa\u5e93\u7c7b\u578b\u7684\u5173\u7cfb\u4ecd\u9700\u5728\u6b63\u5f0f\u7814\u7a76\u4e2d\u53e6\u884c\u68c0\u67e5\uff0c\u4e0d\u80fd\u56e0\u4e3a\u70ed\u56fe\u7ec8\u4e8e\u80fd\u753b\uff0c\u5c31\u628a\u540e\u7eed\u8d28\u63a7\u8df3\u8fc7\u53bb\u3002<\/p>\n<h2>\u7ee7\u7eed\u8ffd\u95ee\uff0c\u628a\u539f\u59cb\u8ba1\u6570\u548cZ\u503c\u5206\u6e05<\/h2>\n<p>agent\u521d\u7248\u6587\u5b57\u89e3\u8bfb\u66fe\u628a\u8fd9\u884c\u7684\u96f6\u8ba1\u6570\u8bef\u5199\u6210\u96f6Z\u503c\uff1b\u4e0b\u8f7d\u7684\u77e9\u9635\u548c\u5b9e\u9645\u7ed8\u56fe\u4f7f\u7528\u7684\u662f\u6b63\u786e\u6570\u503c\u3002\u8ffd\u95ee\u4e2d\u8fd8\u51fa\u73b0\u4e86\u6ca1\u6709\u4f9d\u636e\u7684\u201c\u6ca1\u6709\u91cd\u590d\u201d\u8868\u8ff0\u3002\u6211\u4eec\u7ee7\u7eed\u8981\u6c42\u5b83\u64a4\u56de\u8fd9\u79cd\u63a8\u65ad\uff0c\u53ea\u89e3\u91ca\u80fd\u7531\u73b0\u6709\u6570\u636e\u652f\u6301\u7684\u4e24\u4ef6\u4e8b\uff1a<\/p>\n<blockquote>\n<p>\u4e0a\u4e00\u6761\u201c\u6ca1\u6709\u91cd\u590d\u201d\u7684\u8bf4\u6cd5\u6ca1\u6709\u4f9d\u636e\uff1a\u4e0d\u80fd\u4ece\u4e00\u4e2a\u57fa\u56e0\u7684\u89c2\u5bdf\u63a8\u51fa\u6837\u672c\u6ca1\u6709\u91cd\u590d\u3002\u8bf7\u53ea\u7528\u4e24\u53e5\u8bf4\u660e\uff1a\u539f\u59cb\u8ba1\u65700\u4e3a\u4ec0\u4e48\u5bf9\u5e94\u6709\u9650\u7684\u8d1fZ\u503c\uff1b\u4e3a\u4f55\u4e0e\u5efa\u5e93type\u7684\u5171\u73b0\u4e0d\u80fd\u8bc1\u660e\u56e0\u679c\u3002\u4e0d\u8981\u65b0\u589e\u6837\u672c\u8bbe\u8ba1\u63a8\u65ad\uff0c\u4e0d\u542f\u52a8\u5206\u6790\u3002<\/p>\n<\/blockquote>\n<figure class=\"ui-shot\"><a href=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-followup-question.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\u771f\u5b9e\u8ffd\u95ee\u622a\u56fe\uff1a\u8981\u6c42\u6839\u636e\u73b0\u6709\u6570\u636e\u6f84\u6e05Z\u503c\uff0c\u64a4\u56de\u65e0\u4f9d\u636e\u7684\u8bbe\u8ba1\u63a8\u65ad\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-followup-question.png?ssl=1\" \/><\/a><figcaption>\u771f\u5b9e\u8ffd\u95ee\u622a\u56fe\uff1a\u8981\u6c42\u6839\u636e\u73b0\u6709\u6570\u636e\u6f84\u6e05Z\u503c\uff0c\u64a4\u56de\u65e0\u4f9d\u636e\u7684\u8bbe\u8ba1\u63a8\u65ad<\/figcaption><\/figure>\n<figure class=\"ui-shot\"><a href=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-followup-answer.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\u4e91\u751f\u4fe1agent\u6f84\u6e05\u540e\u7684\u56de\u7b54\uff1a\u8be5\u884c\u4e0e\u5efa\u5e93\u7c7b\u578b\u7684\u5206\u5e03\u4e00\u81f4\uff0c\u4f46\u4e0d\u80fd\u4f5c\u56e0\u679c\u63a8\u65ad\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-followup-answer.png?ssl=1\" \/><\/a><figcaption>\u4e91\u751f\u4fe1agent\u6f84\u6e05\u540e\u7684\u56de\u7b54\uff1a\u8be5\u884c\u4e0e\u5efa\u5e93\u7c7b\u578b\u7684\u5206\u5e03\u4e00\u81f4\uff0c\u4f46\u4e0d\u80fd\u4f5c\u56e0\u679c\u63a8\u65ad<\/figcaption><\/figure>\n<p>\u8fd9\u4e5f\u8bf4\u660e\u4e3a\u4ec0\u4e48\u8981\u4fdd\u7559\u6837\u672c\u8868\u548c\u8ba1\u7b97\u77e9\u9635\u3002\u56fe\u91cc\u770b\u5230\u4e00\u4e2a\u6a21\u5f0f\u65f6\uff0c\u53ef\u4ee5\u7ee7\u7eed\u8ffd\u95ee\u5230\u5177\u4f53\u57fa\u56e0\u3001\u5177\u4f53\u6837\u672c\uff0c\u518d\u7528\u6570\u503c\u6838\u5bf9\u89e3\u91ca\u3002\u4e24\u79cd\u5904\u7406\u6761\u4ef6\u4e2d\u90fd\u6709\u4e24\u79cd\u5efa\u5e93\u7c7b\u578b\uff0c\u4e0d\u80fd\u4ec5\u51ed\u8fd9\u5f20\u56fe\u5ba3\u79f0\u8bbe\u8ba1\u5b8c\u5168\u6df7\u6742\uff0c\u4e5f\u4e0d\u80fd\u628a\u5171\u73b0\u76f4\u63a5\u5199\u6210\u539f\u56e0\u3002<\/p>\n<h2>R\u7528\u6237\u53ef\u4ee5\u600e\u6837\u68c0\u67e5\u81ea\u5df1\u7684\u77e9\u9635\uff1f<\/h2>\n<p>\u4e0b\u9762\u7ed9\u4e00\u4e2a\u5bf9\u5e94\u7684\u4fee\u590d\u793a\u4f8b\u3002\u4e0b\u8f7d\u5305\u7684 <code>demo_logcpm.csv<\/code> \u5305\u542b14\u884c\u00d77\u4e2a\u6837\u672c\u7684logCPM\u503c\uff0c\u8fd8\u9644\u6709\u884c\u5747\u503c\u3001\u6807\u51c6\u5dee\u548c\u7c7b\u522b\u3002\u5148\u6309 <code>samples.csv<\/code> \u53d6\u51fa7\u4e2a\u6837\u672c\u5217\uff0c\u907f\u514d\u628a\u6ce8\u91ca\u6df7\u8fdb\u6570\u503c\u77e9\u9635\uff1b<strong>\u8fd9\u4e9b\u503c\u5df2\u7ecf\u8f6c\u6362\u8fc7\uff0c\u4e0d\u8981\u518d\u53d6\u4e00\u6b21log<\/strong>\u3002<\/p>\n<pre><code class=\"language-r\">tab &lt;- read.csv(&quot;demo_logcpm.csv&quot;, row.names = 1,\r\n                check.names = FALSE)\r\nsamples &lt;- read.csv(&quot;samples.csv&quot;)\r\nmat &lt;- as.matrix(tab[, samples$sample_id, drop = FALSE])\r\nstopifnot(is.numeric(mat), ncol(mat) &gt; 1)\r\nstopifnot(all(is.finite(mat)))\r\n\r\nrow_sd &lt;- apply(mat, 1, sd)\r\nbad &lt;- !is.finite(row_sd) | row_sd == 0\r\nwrite.csv(data.frame(gene_id = rownames(mat)[bad],\r\n                    row_sd = row_sd[bad]),\r\n          &quot;excluded_from_heatmap.csv&quot;, row.names = FALSE)\r\n\r\nz &lt;- t(scale(t(mat[!bad, , drop = FALSE])))\r\nstopifnot(all(is.finite(z)))\r\npheatmap::pheatmap(z, scale = &quot;none&quot;, cluster_cols = FALSE,\r\n                   clustering_distance_rows = &quot;euclidean&quot;,\r\n                   clustering_method = &quot;average&quot;)\r\n<\/code><\/pre>\n<p><code>scale()<\/code>\u9ed8\u8ba4\u5904\u7406\u5217\uff0c\u56e0\u6b64\u8fd9\u91cc\u7528\u4e24\u6b21\u8f6c\u7f6e\u5b9e\u73b0\u9010\u57fa\u56e0\u884c\u6807\u51c6\u5316\u3002\u5df2\u7ecf\u8ba1\u7b97\u597d\u7684Z-score\u4f20\u5165pheatmap\u65f6\uff0c\u4f7f\u7528<code>scale=\"none\"<\/code>\u3002<a href=\"https:\/\/stat.ethz.ch\/R-manual\/R-devel\/library\/base\/html\/scale.html\">R\u5b98\u65b9scale\u6587\u6863<\/a> \u8fd9\u6bb5R\u4ee3\u7801\u4f9b\u8bfb\u8005\u8fc1\u79fb\u601d\u8def\uff1b\u672c\u6b21\u5b9e\u9645\u6267\u884c\u4e0e\u72ec\u7acb\u590d\u6838\u4f7f\u7528Python\uff0c\u6ca1\u6709\u58f0\u79f0\u5df2\u5728R\u4e2d\u8dd1\u8fc7\u3002<\/p>\n<p>\u6362\u6210\u81ea\u5df1\u7684\u6570\u636e\u65f6\uff0c\u53ef\u4ee5\u6309\u4e0b\u9762\u8fd9\u4e2a\u987a\u5e8f\u5b9a\u4f4d\uff0c\u800c\u4e0d\u662f\u628a\u6240\u6709\u9519\u8bef\u90fd\u5f52\u5230\u201c\u6709\u7f3a\u5931\u503c\u201d\u3002<\/p>\n<div class=\"ysx-table\">\n<table>\n<thead>\n<tr>\n<th>\u770b\u5230\u7684\u73b0\u8c61<\/th>\n<th>\u4f18\u5148\u68c0\u67e5<\/th>\n<th>\u4e0d\u5b9c\u76f4\u63a5\u91c7\u53d6\u7684\u64cd\u4f5c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u8bfb\u5165\u540e\u77e9\u9635\u53d8\u6210\u5b57\u7b26\u578b<\/td>\n<td>\u662f\u5426\u6df7\u5165\u57fa\u56e0\u63cf\u8ff0\u3001\u5206\u7ec4\u5217\u6216\u975e\u6570\u5b57\u5b57\u7b26\u4e32<\/td>\n<td>\u6574\u8868\u5f3a\u8f6c\u6570\u503c\u540e\u5ffd\u7565\u65b0\u589eNA<\/td>\n<\/tr>\n<tr>\n<td>\u539f\u59cb\u77e9\u9635\u6709\u6548\uff0c\u53d6log\u540e\u51fa\u73b0Inf<\/td>\n<td>\u662f\u5426\u5bf90\u76f4\u63a5\u53d6log\u3001\u662f\u5426\u5b58\u5728\u8d1f\u503c<\/td>\n<td>\u53ea\u4fee\u6539Inf\u7684\u989c\u8272<\/td>\n<\/tr>\n<tr>\n<td>\u539f\u59cb\u4e0elog\u77e9\u9635\u6709\u6548\uff0cZ-score\u540e\u51fa\u73b0NaN<\/td>\n<td>\u7528\u4e8e\u6807\u51c6\u5316\u7684\u884c\u6807\u51c6\u5dee\u662f\u5426\u4e3a0<\/td>\n<td>\u4e0d\u5206\u6765\u6e90\u628a\u6240\u6709NaN\u6539\u62100<\/td>\n<\/tr>\n<tr>\n<td>\u53ea\u6709\u90e8\u5206\u4f4d\u7f6e\u4e3a0<\/td>\n<td>\u6574\u884c\u662f\u5426\u4ecd\u6709\u53d8\u5316<\/td>\n<td>\u5220\u9664\u6240\u6709\u201c\u542b\u4e00\u4e2a0\u201d\u7684\u57fa\u56e0<\/td>\n<\/tr>\n<tr>\n<td>\u77e9\u9635\u6709\u6548\uff0c\u76f8\u5173\u8ddd\u79bb\u4ecd\u6709\u95ee\u9898<\/td>\n<td>\u5b9e\u9645\u53c2\u4e0e\u76f8\u5173\u6027\u8ba1\u7b97\u7684\u5411\u91cf\u662f\u5426\u6052\u5b9a<\/td>\n<td>\u8ba4\u5b9a\u901a\u8fc7\u4e00\u6b21\u6709\u9650\u503c\u68c0\u67e5\u5c31\u6c38\u8fdc\u5b89\u5168<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><code>is.na()<\/code>\u53ef\u4ee5\u8bc6\u522bNA\u548cNaN\uff0c\u4f46\u8bc6\u522b\u4e0d\u4e86\u6240\u6709Inf\uff1b\u9700\u8981\u68c0\u67e5\u8ba1\u7b97\u80fd\u5426\u7ee7\u7eed\u65f6\uff0c\u7528<code>is.finite()<\/code>\u66f4\u5b8c\u6574\u3002\u82e5\u786e\u5b9e\u5b58\u5728\u539f\u59cb\u7f3a\u5931\u503c\uff0c\u5e94\u5148\u67e5\u6765\u6e90\u4e0e\u7f3a\u5931\u673a\u5236\uff0c\u518d\u51b3\u5b9a\u540e\u7eed\u5904\u7406\uff1b\u672c\u6587\u7684\u96f6\u6807\u51c6\u5dee\u6392\u9664\u89c4\u5219\u4e0d\u662f\u901a\u7528\u7f3a\u5931\u503c\u586b\u8865\u65b9\u6848\u3002<\/p>\n<h2>\u7559\u4e0b\u80fd\u68c0\u67e5\u7684\u7ed3\u679c\uff0c\u6bd4\u53ea\u7559\u4e00\u5f20\u56fe\u66f4\u6709\u7528<\/h2>\n<figure class=\"ui-shot\"><a href=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-results-files.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\u4e91\u751f\u4fe1agent\u6210\u679c\u533a\u7684\u771f\u5b9e\u622a\u56fe\uff1a\u8bca\u65ad\u56fe\u4e0e\u4fee\u590d\u70ed\u56fe\u5747\u63d0\u4f9bPNG\u548cPDF\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-results-files.png?ssl=1\" \/><\/a><figcaption>\u4e91\u751f\u4fe1agent\u6210\u679c\u533a\u7684\u771f\u5b9e\u622a\u56fe\uff1a\u8bca\u65ad\u56fe\u4e0e\u4fee\u590d\u70ed\u56fe\u5747\u63d0\u4f9bPNG\u548cPDF<\/figcaption><\/figure>\n<p>\u6b63\u6587\u76f4\u63a5\u4f7f\u7528\u539f\u59cbPNG\uff0c\u63d0\u95ee\u3001\u68c0\u67e5\u6570\u5b57\u548c\u9519\u8bef\u4fe1\u606f\u4e5f\u5df2\u5199\u6210\u53ef\u590d\u5236\u6587\u5b57\u3002\u9700\u8981\u81ea\u5df1\u7ec3\u4e60\u65f6\uff0c\u53ef\u4ee5\u4e0b\u8f7d\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-fig1_nonfinite_stages.pdf\">\u56db\u9636\u6bb5\u975e\u6709\u9650\u503c\u8bca\u65ad\u56fePDF<\/a><\/li>\n<li><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-fig2_heatmap_rowZ.pdf\">\u4fee\u590d\u540e\u7684\u70ed\u56fePDF<\/a><\/li>\n<li><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-heatmap-na-practice.zip\">pasilla\u516c\u5f00\u6570\u636e\u3001\u9519\u8bef\u65e5\u5fd7\u3001\u7ed3\u679c\u77e9\u9635\u4e0e\u53ef\u8fd0\u884c\u4ee3\u7801ZIP<\/a><\/li>\n<\/ul>\n<p>\u5305\u4e2d\u4fdd\u7559\u5b8c\u6574\u8f93\u5165\u30012,240\u884c\u6392\u9664\u6e05\u5355\u300114\u884c\u62a5\u9519\u793a\u4f8b\u300112\u884c\u4fee\u590d\u77e9\u9635\u3001\u805a\u7c7b\u7ed3\u679c\u548c\u8f6f\u4ef6\u7248\u672c\u3002\u6211\u4eec\u53e6\u5916\u4ece\u539f\u59cb\u8ba1\u6570\u72ec\u7acb\u590d\u7b97\uff0c\u5e76\u628a\u5e73\u53f0\u4ee3\u7801\u5728\u672c\u5730\u91cd\u65b0\u8fd0\u884c\uff0c\u6838\u5bf9\u6570\u503c\u548c\u7ed3\u679c\u6587\u4ef6\u3002<\/p>\n<p>\u5982\u679c\u4f60\u4e5f\u5361\u5728\u201c\u6570\u636e\u770b\u7740\u6ca1\u95ee\u9898\uff0c\u56fe\u5c31\u662f\u51fa\u4e0d\u6765\u201d\uff0c\u53ef\u4ee5\u628a\u8868\u8fbe\u77e9\u9635\u3001\u5206\u7ec4\u8868\u548c\u5b8c\u6574\u62a5\u9519\u5e26\u5230<a href=\"https:\/\/www.biocloudservice.com\/bioagent\/login\">\u4e91\u751f\u4fe1agent<\/a>\u3002\u5148\u8ba9\u5b83\u9010\u6b65\u68c0\u67e5\u6570\u636e\uff0c\u518d\u770b\u65b9\u6848\u3001\u8fd0\u884c\u548c\u8ffd\u95ee\u7ed3\u679c\u3002\u672c\u6b21\u5c55\u793a\u7684\u91cd\u70b9\uff0c\u5c31\u662f\u628a\u4e00\u4e2a\u7b3c\u7edf\u62a5\u9519\u53d8\u6210\u6709\u68c0\u67e5\u8868\u3001\u6709\u9519\u8bef\u8bb0\u5f55\u3001\u4e5f\u6709\u53ef\u4e0b\u8f7d\u4fee\u590d\u7ed3\u679c\u7684\u5206\u6790\u8fc7\u7a0b\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u59cb\u8868\u6ca1\u6709\u7f3a\u5931\u503c\uff0c\u70ed\u56fe\u4e3a\u4ec0\u4e48\u4ecd\u7136\u62a5\u9519\uff1f\u7528pasilla\u516c\u5f00\u8ba1\u6570\u5728\u4e91\u751f\u4fe1agent\u4e2d\u6355\u83b7\u771f\u5b9e\u9519\u8bef\uff0c\u627e\u51fa2240\u4e2a\u96f6\u65b9\u5dee\u884c\uff0c\u4fee\u590d\u5e76\u91cd\u753b\u70ed\u56fe\uff0c\u9644\u64cd\u4f5c\u622a\u56fe\u3001\u9519\u8bef\u65e5\u5fd7\u3001\u539f\u59cb\u56fe\u548c\u53ef\u590d\u73b0\u4ee3\u7801\u3002<\/p>\n","protected":false},"author":1,"featured_media":78195,"comment_status":"closed","ping_status":"closed","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":[74,72],"tags":[1675,1813,116,1402,1949],"class_list":["post-78205","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-visualization","category-transcriptomics","tag-pasilla","tag-agent","tag-116","tag-1402","tag-1949"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/blog-20261127-agent-heatmap-na-cover.png?fit=1920%2C1440&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/78205","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"}],"author":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/comments?post=78205"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/78205\/revisions"}],"predecessor-version":[{"id":78206,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/78205\/revisions\/78206"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/78195"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=78205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=78205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=78205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}