{"id":71622,"date":"2026-11-17T13:34:22","date_gmt":"2026-11-17T05:34:22","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=71622"},"modified":"2026-11-17T13:34:22","modified_gmt":"2026-11-17T05:34:22","slug":"ysx-sc-practice-029-row-scaled-heatmap-color","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/ysx-sc-practice-029-row-scaled-heatmap-color\/","title":{"rendered":"\u70ed\u56fe\u4e0a\u4e24\u4e2a\u57fa\u56e0\u90fd\u662f\u6df1\u7ea2\u8272\uff0c\u80fd\u8bf4\u5b83\u4eec\u7684\u8868\u8fbe\u91cf\u4e00\u6837\u9ad8\u5417\uff1f"},"content":{"rendered":"<div style=\"max-width:820px;margin:0 auto;color:#263a47;font-size:17px;line-height:1.85;overflow-wrap:break-word\">\n<p>\u70ed\u56fe\u4e0a\u4e24\u4e2a\u57fa\u56e0\u5728 C \u7ec4\u90fd\u662f\u6df1\u7ea2\u8272\u3002\u5b9e\u9a8c\u540c\u4e8b\u6307\u7740\u8fd9\u4e24\u4e2a\u683c\u5b50\u95ee\uff0c\u662f\u5426\u53ef\u4ee5\u9009\u8868\u8fbe\u91cf\u66f4\u7a33\u5b9a\u7684\u90a3\u4e00\u4e2a\u53bb\u505a\u9a8c\u8bc1\u3002\u5148\u770b\u4e00\u773c\u56fe\u4f8b\u3002\u5982\u679c\u5b83\u6807\u7684\u662f\u9010\u57fa\u56e0\u6807\u51c6\u5206\uff0c\u4e24\u4e2a\u7ea2\u683c\u53ef\u80fd\u5bf9\u5e94\u76f8\u5dee\u56db\u5341\u500d\u7684\u539f\u59cb\u5c3a\u5ea6\u5747\u503c\u3002\u4e0b\u9762\u7528\u4e5d\u9897\u7ec6\u80de\u624b\u7b97\u8fd9\u4e2a\u4f8b\u5b50\uff0c\u628a\u540c\u4e00\u5757\u8868\u8fbe\u77e9\u9635\u753b\u6210\u4e24\u5f20\u56fe\u3002\u6bcf\u4e2a\u683c\u5b50\u90fd\u80fd\u5728\u4e0b\u8f7d\u7684\u8868\u683c\u91cc\u67e5\u5230\u539f\u59cb\u5206\u6bcd\u3001\u68c0\u51fa\u6bd4\u4f8b\u548c\u8ba1\u7b97\u987a\u5e8f\uff0c\u9009\u62e9\u9a8c\u8bc1\u57fa\u56e0\u65f6\u5c31\u6709\u6570\u503c\u53ef\u4f9d\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1240\" height=\"800\" style=\"width:100%;height:auto;display:block;border-radius:12px\" alt=\"\u4e24\u57fa\u56e0\u5728 C \u7ec4\u90fd\u6709\u76f8\u540c\u7684\u884c\u6807\u51c6\u5206\uff0c\u4f46\u5e73\u5747\u5f52\u4e00\u5316\u8868\u8fbe\u5206\u522b\u662f\u56db\u5343\u548c\u4e00\u767e\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-029-row-scaled-heatmap-color.png?resize=1240%2C800&#038;ssl=1\" \/><\/p>\n<p><a download style=\"display:inline-block;margin:3px;padding:4px 10px;border:1px solid #bad0dd;border-radius:5px\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-029-row-scaled-heatmap-color.zip\">\u4e0b\u8f7d\u5b8c\u6574\u4ee3\u7801\u3001\u793a\u4f8b\u6570\u636e\u4e0e\u53c2\u8003\u8f93\u51fa\uff08ZIP\uff09<\/a> \u00b7 <a download style=\"display:inline-block;margin:3px;padding:4px 10px;border:1px solid #bad0dd;border-radius:5px\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-029-row-scaled-heatmap-color.pdf\">\u4e0b\u8f7d\u56fe\u6587\u64cd\u4f5c\u624b\u518c\uff08PDF\uff09<\/a><\/p>\n<h2>\u5148\u7ed9\u70ed\u56fe\u7684\u6bcf\u4e2a\u683c\u5b50\u4e00\u4e2a\u5355\u4f4d<\/h2>\n<p>\u7ec3\u4e60\u7684 A\u3001B\u3001C \u4e09\u7ec4\u5206\u522b\u6709\u56db\u3001\u4e09\u3001\u4e24\u9897\u7ec6\u80de\u3002\u6bcf\u9897\u7ec6\u80de\u5728\u5b8c\u6574\u57fa\u56e0\u8868\u4e0a\u7684\u603b\u8ba1\u6570\u5747\u4e3a\u4e8c\u767e\u3002\u7a0b\u5e8f\u5148\u5c06\u6bcf\u4e2a\u57fa\u56e0\u539f\u59cb\u5206\u5b50\u6570\u9664\u4ee5\u8be5\u7ec6\u80de\u7684\u603b\u6570\uff0c\u4e58\u4ee5\u4e00\u4e07\uff0c\u5f97\u5230\u5728\u7ebf\u6027\u5c3a\u5ea6\u4e0a\u7684\u6bcf\u4e07\u5206\u5b50\u5f52\u4e00\u5316\u6570\u503c\uff0c\u518d\u7528\u7fa4\u5185\u6240\u6709\u7ec6\u80de\u6c42\u7b97\u672f\u5e73\u5747\uff0c\u5305\u62ec\u8be5\u57fa\u56e0\u672a\u68c0\u51fa\u3001\u8ba1\u6570\u4e3a\u96f6\u7684\u7ec6\u80de\u3002\u793a\u4f8b\u628a\u603b\u6570\u5b89\u6392\u5f97\u4e00\u6837\u662f\u4e3a\u4e86\u65b9\u4fbf\u7eb8\u7b14\u9a8c\u7b97\uff0c\u4ee3\u7801\u4ecd\u4ece\u6bcf\u5217\u5b8c\u6574\u8ba1\u6570\u6c42\u603b\u6570\u3002\u6362\u6210\u771f\u5b9e\u77e9\u9635\u65f6\uff0c\u6bcf\u9897\u7ec6\u80de\u6709\u81ea\u5df1\u7684\u5206\u6bcd\uff0c\u4e0d\u80fd\u53ea\u628a\u5c55\u793a\u5728\u70ed\u56fe\u91cc\u7684\u51e0\u4e2a\u6807\u8bb0\u62ff\u6765\u6c42\u603b\u91cf\u3002<\/p>\n<p>\u5c06\u538b\u7f29\u5305\u5b8c\u6574\u89e3\u538b\uff0c\u5728\u8d44\u6599\u76ee\u5f55\u8fd0\u884c\u793a\u4f8b\u3002per_cell.tsv \u4fdd\u5b58\u6bcf\u4e2a\u5c55\u793a\u57fa\u56e0\u5728\u6bcf\u4e2a\u6761\u7801\u4e0a\u7684\u5f52\u4e00\u5316\u503c\uff1bheatmap_values.tsv \u4fdd\u5b58\u6bcf\u4e2a\u201c\u57fa\u56e0\u3001\u7fa4\u201d\u7ec4\u5408\u7684\u6240\u6709\u6307\u6807\u3002\u6bd4\u5982 GENE_HIGH \u5728 C \u7ec4\u4e24\u9897\u7ec6\u80de\u4e2d\u7684\u539f\u59cb\u503c\u5206\u522b\u662f\u4e03\u5341\u4e8c\u548c\u516b\u5341\u516b\uff0c\u4e58\u4ee5\u4e94\u5341\u540e\u662f\u4e09\u5343\u516d\u767e\u548c\u56db\u5343\u56db\u767e\uff0c\u5e73\u5747\u56db\u5343\u3002GENE_LOW \u5728\u540c\u4e24\u9897\u7ec6\u80de\u4e2d\u90fd\u662f\u4e24\u4e2a\u5206\u5b50\uff0c\u5bf9\u5e94\u7684\u5f52\u4e00\u5316\u5747\u503c\u4e3a\u4e00\u767e\u3002\u5230\u8fd9\u91cc\u4e24\u8005\u76f8\u5dee\u56db\u5341\u500d\uff0c\u4e14\u4e24\u9897\u7ec6\u80de\u90fd\u68c0\u51fa\u8fd9\u4e24\u4e2a\u57fa\u56e0\u3002\u8bfb\u56fe\u65f6\u5e94\u660e\u786e\u8fd9\u4e2a\u6bd4\u8f83\u662f\u68c0\u6d4b\u5230\u7684\u76f8\u5bf9\u8f6c\u5f55\u672c\u4e30\u5ea6\uff0c\u7edd\u5bf9\u5206\u5b50\u6570\u548c\u86cb\u767d\u4e30\u5ea6\u8fd8\u53d7\u6d4b\u91cf\u65b9\u5f0f\u5f71\u54cd\u3002<\/p>\n<pre style=\"max-width:100%;overflow:auto;padding:14px;box-sizing:border-box;background:#f1f6fa;line-height:1.6;font-size:0.9em\"><code class=\"language-sh\">python -m pip install -r requirements.txt\npython run.py --input example --out results\n<\/code><\/pre>\n<h2>\u4e3a\u4ec0\u4e48\u76f8\u5dee\u56db\u5341\u500d\u5374\u6d82\u7740\u76f8\u540c\u7684\u989c\u8272<\/h2>\n<p>\u628a\u4e09\u7ec4\u5747\u503c\u6309\u884c\u6284\u4e0b\u6765\u3002GENE_HIGH \u662f\u4e00\u5343\u3001\u4e8c\u5343\u3001\u56db\u5343\uff1bGENE_LOW \u662f\u4e8c\u5341\u4e94\u3001\u4e94\u5341\u3001\u4e00\u767e\u3002\u540e\u9762\u4e00\u884c\u4e58\u4ee5\u56db\u5341\uff0c\u6070\u597d\u7b49\u4e8e\u524d\u9762\u4e00\u884c\u3002\u73b0\u5728\u5bf9\u6bcf\u884c\u5206\u522b\u6c42\u4e09\u4e2a\u7ec4\u5747\u503c\u7684\u5e73\u5747\u6570\uff0c\u62ff\u6bcf\u4e2a\u683c\u5b50\u51cf\u53bb\u884c\u5e73\u5747\uff0c\u518d\u9664\u4ee5\u8fd9\u884c\u7684\u6807\u51c6\u5dee\u3002\u8fd9\u4e2a\u64cd\u4f5c\u628a\u53d8\u5316\u91cf\u6539\u5199\u4e3a\u201c\u504f\u79bb\u672c\u57fa\u56e0\u884c\u5747\u503c\u591a\u5c11\u4e2a\u6807\u51c6\u5dee\u201d\u3002\u6b63\u6bd4\u4f8b\u62c9\u4f38\u6574\u884c\u65f6\uff0c\u5206\u5b50\u548c\u5206\u6bcd\u4e00\u8d77\u653e\u5927\uff0c\u6240\u4ee5\u4e24\u884c\u5f97\u5230\u76f8\u540c\u7684\u6807\u51c6\u5206\u3002C \u7ec4\u4e24\u4e2a\u683c\u5b50\u7ea6\u4e3a\u4e00\u70b9\u4e09\u4e09\u516d\uff0cA \u7ec4\u7ea6\u8d1f\u4e00\u70b9\u96f6\u516d\u4e5d\u3002\u8fd9\u79cd\u989c\u8272\u544a\u8bc9\u4f60\u4e24\u4e2a\u57fa\u56e0\u7684\u76f8\u5bf9\u53d8\u5316\u5f62\u72b6\u76f8\u540c\uff0c\u539f\u6765\u7684\u91cf\u7ea7\u9700\u8981\u4ece\u53e6\u4e00\u5f20\u56fe\u8bfb\u53d6\u3002<\/p>\n<pre style=\"max-width:100%;overflow:auto;padding:14px;box-sizing:border-box;background:#f1f6fa;line-height:1.6;font-size:0.9em\"><code class=\"language-python\">def row_zscore(means):\n    dev = np.std(means, axis=1, ddof=0)\n    z = np.full(means.shape, np.nan, dtype=float)\n    variable = dev &gt; 1e-12\n    z[variable] = (means[variable] - means[variable].mean(axis=1, keepdims=True)) \/ dev[variable, None]\n    return z\n<\/code><\/pre>\n<p>\u8fd9\u91cc\u7528\u4e09\u4e2a\u7fa4\u5747\u503c\u7684\u603b\u4f53\u6807\u51c6\u5dee\uff0c\u5373\u65b9\u5dee\u5206\u6bcd\u53d6\u4e09\u3002\u8bb8\u591a\u5de5\u5177\u7684\u6807\u51c6\u5316\u9ed8\u8ba4\u53e3\u5f84\u4e0d\u540c\u3002\u4f8b\u5982\u5728 R \u91cc\u5bf9\u5df2\u7ecf\u4e2d\u5fc3\u5316\u7684\u6570\u503c\u4f7f\u7528\u901a\u5e38\u7684 scale \u7f29\u653e\u65f6\uff0c\u5e38\u7528\u6837\u672c\u6807\u51c6\u5dee\uff1b\u8981\u6309\u884c\u7f29\u653e\u5e38\u5e38\u8fd8\u9700\u8981\u8f6c\u7f6e\u3002\u5373\u4fbf\u8f93\u5165\u5b8c\u5168\u76f8\u540c\uff0c\u5f97\u5230\u7684\u5c0f\u6570\u4e5f\u53ef\u80fd\u7a0d\u6709\u5dee\u522b\u3002\u8fd8\u8981\u786e\u8ba4\u6807\u51c6\u5316\u662f\u5728\u6240\u6709\u7ec6\u80de\u4e0a\u5148\u505a\uff0c\u8fd8\u662f\u5148\u7b97\u7fa4\u5e73\u5747\u518d\u8de8\u7fa4\u505a\u3002\u5982\u679c\u5148\u6309\u6240\u6709\u7ec6\u80de\u7b97\uff0c\u7ec6\u80de\u6570\u591a\u7684\u7fa4\u4f1a\u5728\u5747\u503c\u548c\u65b9\u5dee\u4e0a\u6709\u66f4\u5927\u6743\u91cd\u3002\u672c\u4f8b\u5148\u5e73\u5747\u518d\u6cbf\u7fa4\u6807\u51c6\u5316\uff0c\u4e09\u7ec4\u65e0\u8bba\u5305\u542b\u51e0\u9897\u7ec6\u80de\u90fd\u5bf9\u884c\u6807\u51c6\u5dee\u5404\u8d21\u732e\u4e00\u4e2a\u503c\u3002<a href=\"https:\/\/stat.ethz.ch\/R-manual\/R-devel\/library\/base\/html\/scale.html\">R \u7684\u4e2d\u5fc3\u5316\u4e0e\u7f29\u653e\u5b9a\u4e49<\/a><\/p>\n<div style=\"overflow:auto\">\n<table style=\"width:100%;border-collapse:collapse\">\n<thead>\n<tr>\n<th style=\"padding:9px;text-align:left;background:#d9f4e5\">\u8bfb\u5230\u7684\u683c\u5b50<\/th>\n<th style=\"padding:9px;text-align:left;background:#d9f4e5\">\u7fa4\u5e73\u5747\u5f52\u4e00\u5316\u503c<\/th>\n<th style=\"padding:9px;text-align:left;background:#d9f4e5\">\u884c\u6807\u51c6\u5206<\/th>\n<th style=\"padding:9px;text-align:left;background:#d9f4e5\">\u8fd8\u9700\u770b\u4ec0\u4e48<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">C \u7ec4 GENE_HIGH<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">4,000<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">1.336<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u4e24\u9897\u7ec6\u80de\u5404\u81ea\u7684\u503c\u53ca\u68c0\u51fa\u60c5\u51b5<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">C \u7ec4 GENE_LOW<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">100<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">1.336<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u540c\u4e00\u79cd\u5355\u4f4d\u4e0b\uff0c\u4e24\u884c\u91cf\u7ea7\u4e0d\u540c<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u4e09\u7ec4 FLAT<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u6bcf\u7ec4\u90fd\u662f 150<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u7f3a\u5931<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u7a33\u5b9a\u8868\u8fbe\u5bfc\u81f4\u6807\u51c6\u5dee\u4e3a\u96f6<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">B \u7ec4 SPARSE<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">133.3<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">1.414<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u4e09\u9897\u4e2d\u53ea\u6709\u4e00\u9897\u68c0\u51fa<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>\u68c0\u51fa\u7387\u548c\u8272\u6807\u5404\u80fd\u56de\u7b54\u4ec0\u4e48\u95ee\u9898<\/h2>\n<p>\u5148\u770b FLAT\u3002\u5b83\u5728\u4e09\u4e2a\u7ec4\u90fd\u5e73\u5747\u4e00\u767e\u4e94\u5341\uff0c\u884c\u6807\u51c6\u5dee\u4e3a\u96f6\uff0c\u7167\u516c\u5f0f\u9664\u6cd5\u65e0\u6cd5\u5b8c\u6210\u3002\u56e0\u6b64\u56fe\u4e2d\u7528\u7070\u8272\u5e76\u6807\u7f3a\u5931\uff0c\u5de6\u8fb9\u7684\u7ebf\u6027\u5747\u503c\u56fe\u4ecd\u4fdd\u7559\u4e00\u767e\u4e94\u5341\u3002\u6ca1\u6709\u5728\u6807\u51c6\u5206\u56fe\u7740\u8272\uff0c\u4e0e\u57fa\u56e0\u5728\u6240\u6709\u7ec6\u80de\u6ca1\u6709\u8868\u8fbe\u662f\u4e24\u56de\u4e8b\u3002\u518d\u770b SPARSE\u3002B \u7ec4\u7684\u4e09\u9897\u91cc\u53ea\u6709\u7b2c\u4e00\u9897\u6709\u516b\u4e2a\u539f\u59cb\u5206\u5b50\uff0c\u5f52\u4e00\u5316\u540e\u56db\u767e\uff0c\u53e6\u5916\u4e24\u9897\u4e3a\u96f6\u3002\u4e09\u9897\u4e00\u8d77\u5e73\u5747\u53ea\u6709\u7ea6\u4e00\u767e\u4e09\u5341\u4e09\uff0c\u4f46\u8de8\u7ec4\u4e09\u4e2a\u5747\u503c\u4e00\u6bd4\u8f83\uff0cB \u5c31\u662f\u8fd9\u4e00\u884c\u6700\u7ea2\u7684\u683c\u5b50\u3002\u82e5\u636e\u6b64\u58f0\u79f0 B \u7ec4\u5927\u90e8\u5206\u7ec6\u80de\u90fd\u8868\u8fbe\uff0c\u9ad8\u5ea6\u96c6\u4e2d\u7684\u5355\u4e2a\u6761\u7801\u4f1a\u88ab\u9690\u53bb\u3002\u628a\u6bcf\u683c\u7684\u5e73\u5747\u548c\u68c0\u51fa\u6bd4\u4f8b\u4e00\u8d77\u4ea4\u4ed8\uff0c\u53ef\u4ee5\u907f\u514d\u8fd9\u79cd\u89e3\u8bfb\u3002<\/p>\n<pre style=\"max-width:100%;overflow:auto;padding:14px;box-sizing:border-box;background:#f1f6fa;line-height:1.6;font-size:0.9em\"><code class=\"language-python\">def group_means(linear, label, groups):\n    selected = [label == g for g in groups]\n    if not all(mask.any() for mask in selected):\n        raise ValueError(&quot;A requested group has zero cells; a missing group cannot be assigned zero expression.&quot;)\n    return np.column_stack([linear[:, mask].mean(axis=1) for mask in selected])\n<\/code><\/pre>\n<p>\u8bfb\u8005\u53ef\u4ee5\u7528\u4e00\u6bb5\u5f88\u77ed\u7684\u81ea\u68c0\u64cd\u4f5c\u627e\u51fa\u8fd9\u4e2a\u6761\u7801\uff1a\u5728 per_cell.tsv \u5148\u7b5b\u9009 SPARSE\uff0c\u518d\u7b5b B\uff0c\u6309\u5f52\u4e00\u5316\u503c\u6392\u5e8f\u3002\u56de\u5230\u539f\u59cb\u8ba1\u6570\u627e\u90a3\u9897\u7ec6\u80de\u7684\u6d4b\u5e8f\u6df1\u5ea6\uff0c\u6838\u5bf9\u5b83\u662f\u4e0d\u662f\u5f02\u5e38\u9ad8\u7684\u4e2a\u4f53\u3002\u793a\u4f8b\u4e2d\u7ec6\u80de\u6df1\u5ea6\u76f8\u540c\uff0c\u5dee\u5f02\u6765\u81ea\u6709\u65e0\u8ba1\u6570\uff1b\u771f\u5b9e\u6570\u636e\u4e2d\u6280\u672f\u6355\u83b7\u6548\u7387\u548c\u4f4e\u8868\u8fbe\u7684\u968f\u673a\u68c0\u51fa\u4f1a\u5f71\u54cd\u96f6\u7684\u6bd4\u4f8b\u3002\u7279\u522b\u662f\u4e00\u4e2a\u7ec4\u53ea\u6709\u4e24\u4e09\u9897\u65f6\uff0c\u591a\u4e00\u9897\u6216\u5c11\u4e00\u9897\u90fd\u4f1a\u660e\u663e\u6539\u53d8\u989c\u8272\u3002\u4e00\u4e2a\u6574\u9f50\u9c9c\u8273\u7684\u56fe\u683c\uff0c\u53ef\u80fd\u53ea\u57fa\u4e8e\u4e00\u9897\u7ec6\u80de\uff0c\u56e0\u6b64\u56fe\u6ce8\u6216\u9644\u8868\u8981\u660e\u793a\u6bcf\u4e2a\u7ec4\u7684\u5b9e\u9645\u5206\u6bcd\u3002<\/p>\n<h2>\u5148\u53d6\u5e73\u5747\uff0c\u8fd8\u662f\u5148\u53d6\u5bf9\u6570<\/h2>\n<p>\u8f93\u51fa\u8868\u8fd8\u6709\u4e24\u5217\u540d\u5b57\u76f8\u4f3c\u7684\u6570\u636e\u3002log1p_mean \u662f\u5148\u5728\u7ebf\u6027\u5c3a\u5ea6\u4e0a\u6c42\u5747\u503c\uff0c\u518d\u5bf9\u5747\u503c\u52a0\u4e00\u53d6\u81ea\u7136\u5bf9\u6570\uff1bmean_log1p \u5219\u7ed9\u6bcf\u9897\u7ec6\u80de\u7684\u5f52\u4e00\u5316\u6570\u503c\u5206\u522b\u52a0\u4e00\u53d6\u5bf9\u6570\uff0c\u518d\u6c42\u7fa4\u5e73\u5747\u3002\u62ff\u7a00\u758f\u57fa\u56e0\u7684 B \u7ec4\u4e3e\u4f8b\uff0c\u7b2c\u4e00\u79cd\u7ed3\u679c\u7ea6\u56db\u70b9\u4e5d\u96f6\uff0c\u7b2c\u4e8c\u79cd\u7ea6\u4e00\u70b9\u4e5d\u4e5d\u516b\u3002\u540c\u4e00\u7ec4\u3001\u540c\u4e00\u4e2a\u57fa\u56e0\uff0c\u5dee\u522b\u6765\u81ea\u6781\u9ad8\u5355\u7ec6\u80de\u7684\u6570\u503c\u5728\u6c42\u5e73\u5747\u4e4b\u524d\u8fd8\u662f\u4e4b\u540e\u53d7\u5230\u5bf9\u6570\u538b\u7f29\u3002\u5982\u679c\u57fa\u56e0\u5728\u6bcf\u9897\u7ec6\u80de\u7684\u503c\u90fd\u4e00\u6837\uff0c\u8fd9\u4e24\u79cd\u6b21\u5e8f\u4f1a\u78b0\u5de7\u5f97\u5230\u540c\u4e00\u4e2a\u7ed3\u679c\uff0c\u4ec5\u51ed\u5e73\u5766\u57fa\u56e0\u6d4b\u8bd5\u65e0\u6cd5\u533a\u5206\u5b83\u4eec\u3002\u9009\u4e00\u4e2a\u542b\u96f6\u53c8\u6709\u9633\u6027\u7684\u683c\u5b50\u624b\u7b97\uff0c\u66f4\u5bb9\u6613\u4e86\u89e3\u8f6f\u4ef6\u771f\u6b63\u5c55\u793a\u4e86\u4ec0\u4e48\u3002<\/p>\n<p>Seurat \u7684 AverageExpression \u5728\u5bf9\u5b58\u653e\u5bf9\u6570\u5f52\u4e00\u5316\u6570\u636e\u7684 data \u5c42\u8fdb\u884c\u5206\u7ec4\u5e73\u5747\u65f6\uff0c\u4f1a\u5148\u8fd8\u539f\u5230\u7ebf\u6027\u5c3a\u5ea6\u5904\u7406\u3002\u82e5\u4f60\u5bfc\u51fa\u7684\u662f\u5df2\u7ecf\u7f29\u653e\u7684\u77e9\u9635\u3001\u5df2\u7ecf\u6c42\u8fc7\u7fa4\u5747\u503c\u7684\u8868\uff0c\u6216\u8005\u5176\u4ed6\u8f6f\u4ef6\u7684\u81ea\u5b9a\u4e49\u56fe\u5c42\uff0c\u5c31\u8981\u6838\u5bf9\u5177\u4f53\u7684\u6570\u636e\u5c42\u3001\u5bf9\u6570\u7684\u5e95\u4ee5\u53ca\u662f\u5426\u53c8\u8fdb\u884c\u663e\u793a\u53d8\u6362\u3002\u5bf9\u7740\u56fe\u53ea\u770b\u5230\u201c\u5e73\u5747\u8868\u8fbe\u201d\u56db\u4e2a\u5b57\uff0c\u65e0\u6cd5\u5012\u63a8\u51fa\u4ee5\u4e0a\u6b65\u9aa4\u3002\u5df2\u7ecf\u5b58\u4e0b\u7ebf\u6027\u5747\u503c\u7684\u9879\u76ee\u53ef\u4ee5\u53e6\u7528\u5bf9\u6570\u8272\u6807\u6539\u5584\u8bfb\u56fe\uff0c\u4f46\u5e94\u5728\u8272\u6761\u4e0a\u5199\u660e\u5355\u4f4d\u6216\u53d8\u6362\uff0c\u907f\u514d\u7ed9\u76f8\u540c\u540d\u79f0\u7684\u6570\u5b57\u8d4b\u4e88\u4e24\u79cd\u542b\u4e49\u3002<a href=\"https:\/\/satijalab.org\/seurat\/reference\/averageexpression\">Seurat \u7684\u5206\u7ec4\u5e73\u5747\u8868\u8fbe\u8bf4\u660e<\/a><\/p>\n<p>\u6709\u591a\u4f4d\u60a3\u8005\u65f6\uff0c\u8fd8\u80fd\u6bd4\u8f83\u4e24\u79cd\u805a\u5408\u53e3\u5f84\u3002\u5c06\u540c\u4e00\u7ec4\u7684\u6240\u6709\u7ec6\u80de\u653e\u5728\u4e00\u8d77\uff0c\u7ec6\u80de\u591a\u7684\u60a3\u8005\u81ea\u7136\u5360\u66f4\u5927\u6743\u91cd\uff1b\u5148\u9010\u60a3\u8005\u6c42\u7ec4\u5185\u5747\u503c\uff0c\u518d\u628a\u60a3\u8005\u7b49\u6743\u5e73\u5747\uff0c\u56de\u7b54\u7684\u662f\u5178\u578b\u60a3\u8005\u7684\u60c5\u51b5\u3002\u4e24\u5f20\u8868\u90fd\u53ef\u4ee5\u505a\u6210\u9010\u884c\u6807\u51c6\u5316\u70ed\u56fe\uff0c\u989c\u8272\u672c\u8eab\u65e0\u6cd5\u544a\u8bc9\u8bfb\u8005\u7528\u4e86\u54ea\u4e00\u79cd\uff0c\u6240\u4ee5\u5e94\u628a\u4f9b\u8005\u5c42\u7ea7\u548c\u6bcf\u4f4d\u60a3\u8005\u7684\u7ec6\u80de\u6570\u4e00\u5e76\u4fdd\u5b58\u3002<\/p>\n<h2>\u4f55\u65f6\u5207\u6362\u8272\u6807\uff0c\u600e\u6837\u628a\u7ed3\u679c\u4ea4\u7ed9\u540c\u4e8b<\/h2>\n<p>\u5982\u679c\u95ee\u9898\u662f\u4ece\u4e00\u7ec4\u5019\u9009\u4e2d\u627e\u201c\u54ea\u4e2a\u57fa\u56e0\u5728 C \u7684\u89c2\u6d4b\u5e73\u5747\u66f4\u9ad8\u201d\uff0c\u5e94\u4f7f\u7528\u76f8\u540c\u5f52\u4e00\u5316\u53e3\u5f84\u548c\u5171\u540c\u8272\u6807\u7684\u7ebf\u6027\u5747\u503c\u6216\u6ce8\u660e\u53d8\u6362\u7684\u6570\u503c\u8868\u3002\u82e5\u95ee\u9898\u662f\u201c\u54ea\u4e2a\u57fa\u56e0\u5728\u540c\u4e00\u5957\u6837\u672c\u4e2d\u76f8\u5bf9\u81ea\u8eab\u66f4\u504f\u5411 C \u7ec4\u201d\uff0c\u6309\u884c\u6807\u51c6\u5316\u7684\u56fe\u53ef\u4ee5\u7a81\u51fa\u5c0f\u5e45\u4f46\u4e00\u81f4\u7684\u6a21\u5f0f\u3002\u4e24\u79cd\u56fe\u5e76\u6392\u653e\uff0c\u518d\u8865\u4e0a\u68c0\u51fa\u7387\uff0c\u5c31\u80fd\u533a\u5206\u9ad8\u4e30\u5ea6\u4e14\u5e7f\u6cdb\u68c0\u51fa\u7684\u6807\u8bb0\u4e0e\u4ec5\u5c11\u6570\u6761\u7801\u62ac\u9ad8\u7684\u5019\u9009\u3002\u771f\u5b9e\u6837\u672c\u4e2d\uff0c\u4e0d\u540c\u57fa\u56e0\u7684\u6355\u83b7\u6548\u7387\u3001\u8f6c\u5f55\u672c\u7279\u6027\u7b49\u4e5f\u4f1a\u5f71\u54cd\u89c2\u5bdf\u5230\u7684\u4e30\u5ea6\u6bd4\u4f8b\uff0c\u9009\u56db\u5341\u500d\u5dee\u7684\u5019\u9009\u53bb\u505a\u5b9e\u9a8c\u65f6\uff0c\u4ecd\u9700\u7ed3\u5408\u5f15\u7269\u3001\u7ec4\u7ec7\u5b9a\u4f4d\u6216\u86cb\u767d\u5c42\u8bc1\u636e\u3002<\/p>\n<p>\u518d\u505a\u4e00\u4e2a\u4f1a\u5f71\u54cd\u62a5\u544a\u7684\u7ec3\u4e60\u3002\u590d\u5236\u8f93\u5165\u76ee\u5f55\uff0c\u628a\u8981\u5c55\u793a\u7684\u7ec4\u7531\u4e09\u7ec4\u6539\u6210 A \u548c C\uff0c\u4fdd\u7559\u540c\u4e00\u5957\u8ba1\u6570\u3002\u4e24\u7ec4\u7684\u7ebf\u6027\u5747\u503c\u539f\u6837\u4fdd\u5b58\uff0c\u884c\u6807\u51c6\u5206\u5374\u4f1a\u6539\u53d8\uff0c\u56e0\u4e3a\u884c\u5747\u503c\u548c\u6807\u51c6\u5dee\u4f7f\u7528\u7684\u53c2\u8003\u96c6\u5408\u53d8\u4e86\u3002\u82e5\u628a\u4e00\u5f20\u5168\u961f\u5217\u6807\u51c6\u5316\u70ed\u56fe\u548c\u4e00\u5f20\u4ec5\u75c5\u4f8b\u7684\u70ed\u56fe\u62fc\u63a5\uff0c\u8981\u660e\u786e\u5b83\u4eec\u662f\u5426\u5171\u4eab\u5c3a\u5ea6\uff0c\u7279\u522b\u662f\u56fe\u4f8b\u90fd\u622a\u5728\u6b63\u8d1f\u4e8c\u65f6\u3002\u6700\u540e\u628a\u7fa4\u540d\u3001\u57fa\u56e0\u7f16\u53f7\u3001\u5355\u4f4d\u3001\u53d6\u5bf9\u6570\u987a\u5e8f\u3001\u8272\u6807\u622a\u65ad\u548c\u6837\u672c\u7ec6\u80de\u6570\u5199\u5165\u9644\u8868\uff0c\u8bfb\u8005\u4fbf\u80fd\u4ece\u56fe\u683c\u627e\u5230\u539f\u59cb\u6570\u91cf\u3002\u9700\u8981\u5728\u591a\u961f\u5217\u53cd\u590d\u5bfc\u51fa\u5927\u8868\u8fbe\u8868\u65f6\uff0c\u53ef\u4ee5\u5148\u7528\u5c0f\u5757\u77e9\u9635\u6d4b\u5cf0\u503c\u5185\u5b58\uff0c\u518d\u51b3\u5b9a\u662f\u5426\u4f7f\u7528<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/compute-services\/\">\u4e91\u751f\u4fe1\u79d1\u7814\u670d\u52a1\u5668\u79df\u8d41<\/a>\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u7528\u540c\u4e00\u7ec4\u539f\u59cb\u8ba1\u6570\u7ed8\u5236\u4e24\u5f20\u70ed\u56fe\uff0c\u9010\u683c\u6838\u5bf9\u7fa4\u5e73\u5747\u8868\u8fbe\u3001\u57fa\u56e0\u5185\u6807\u51c6\u5316\u548c\u68c0\u51fa\u6bd4\u4f8b\uff0c\u8bfb\u61c2\u4e24\u5757\u540c\u8272\u65b9\u683c\u5230\u5e95\u4ee3\u8868\u4ec0\u4e48\u3002<\/p>\n","protected":false},"author":1,"featured_media":71619,"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":[71],"tags":[],"class_list":["post-71622","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-single-cell"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-029-row-scaled-heatmap-color.png?fit=1240%2C800&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/71622","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=71622"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/71622\/revisions"}],"predecessor-version":[{"id":73672,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/71622\/revisions\/73672"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/71619"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=71622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=71622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=71622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}