{"id":72383,"date":"2026-11-17T13:34:39","date_gmt":"2026-11-17T05:34:39","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=72383"},"modified":"2026-11-17T13:34:39","modified_gmt":"2026-11-17T05:34:39","slug":"ysx-sc-practice-094-frozen-marker-external-cohort","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/ysx-sc-practice-094-frozen-marker-external-cohort\/","title":{"rendered":"\u70ed\u56fe\u91cc\u201c\u6700\u6f02\u4eae\u201d\u7684 marker\uff0c\u6362\u4e00\u6279\u60a3\u8005\u8fd8\u80fd\u8bc6\u522b\u540c\u4e00\u79cd\u7ec6\u80de\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>\u67d0\u4e2a marker \u5728\u53d1\u73b0\u961f\u5217\u7684\u70ed\u56fe\u91cc\u51e0\u4e4e\u53ea\u628a\u4e00\u7fa4\u7ec6\u80de\u67d3\u4eae\u3002\u628a\u5b83\u5199\u8fdb\u8bba\u6587\u524d\uff0c\u4e0d\u59a8\u6362\u4e00\u6279\u4ece\u672a\u53c2\u4e0e\u7b5b\u9009\u7684\u7ec6\u80de\uff0c\u95ee\u4e00\u4e2a\u5f88\u5177\u4f53\u7684\u95ee\u9898\uff1a\u5982\u679c\u53ea\u6839\u636e\u8fd9\u4e2a\u57fa\u56e0\uff0c\u7a76\u7adf\u8ba4\u5bf9\u51e0\u9897\uff0c\u8bef\u8ba4\u6210\u5b83\u7684\u53c8\u662f\u8c01\uff1f\u672c\u7bc7\u62ff\u4e24\u4efd\u516c\u5f00\u7684\u5916\u5468\u8840\u6570\u636e\u505a\u4e00\u6b21\u771f\u6b63\u7684\u8de8\u5b9e\u9a8c\u590d\u6838\u3002\u6211\u4eec\u5728\u516b\u4f4d\u4f9b\u8005\u4e2d\u9009\u62e9\u57fa\u56e0\u548c\u9608\u503c\uff0c\u5148\u628a\u89c4\u5219\u5199\u6210\u53ef\u67e5\u770b\u7684\u5c0f\u6587\u4ef6\uff0c\u518d\u6253\u5f00\u53e6\u4e00\u4efd\u5b9e\u9a8c\u3002\u6700\u540e\u6709\u4e09\u767e\u4e8c\u5341\u9897\u76ee\u6807\u7ec6\u80de\u88ab\u8ba4\u51fa\uff0c\u4e5f\u6709\u4e5d\u5341\u4e03\u9897\u5176\u4ed6\u7ec6\u80de\u88ab\u753b\u8fdb\u9633\u6027\uff0c\u5176\u4e2d\u54ea\u4e00\u7c7b\u5360\u5f97\u6700\u591a\uff0c\u8bfb\u8005\u53ef\u4ee5\u4eb2\u624b\u67e5\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=\"\u70ed\u56fe\u6700\u6f02\u4eae\u7684\u6807\u8bb0\uff0c\u6362\u961f\u5217\u8fd8\u8ba4\u5f97\u5417\uff1f\uff0c\u5148\u51bb\u7ed3\u9608\u503c\uff0c\u518d\u62c6\u5f00\u770b\u8bef\u6807\u30028 \u4f4d\u4f9b\u8005\u6bd4\u8f83 6 \u4e2a\u57fa\u56e0\u548c 3 \u4e2a\u9608\u503c\uff1bCD79A \u81f3\u5c11 1 \u4e2a\u539f\u59cb UMI \u5373\u6807\u9633\u6027\uff1b342 \u4e2a\u53c2\u8003 B \u7ec6\u80de\u4e2d\u8ba4\u51fa 320 \u4e2a\uff0c\u53e6\u6709 97 \u4e2a\u8bef\u6807\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-094-frozen-marker-external-cohort.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-094-frozen-marker-external-cohort.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-094-frozen-marker-external-cohort.pdf\">\u4e0b\u8f7d\u56fe\u6587\u64cd\u4f5c\u624b\u518c\uff08PDF\uff09<\/a><\/p>\n<h2>\u4e24\u6279\u6765\u81ea\u4e0d\u540c\u5b9e\u9a8c\u7684\u6761\u7801\uff0c\u5148\u628a\u89d2\u8272\u5206\u6e05<\/h2>\n<p>\u53d1\u73b0\u961f\u5217\u53d6\u81ea Kang \u7b49\u4eba\u7684\u5916\u5468\u8840\u7814\u7a76\uff0c\u4ec5\u4fdd\u7559\u5bf9\u7167\u6761\u4ef6\u7684\u4e00\u4e07\u4e8c\u5343\u4e09\u767e\u4e00\u5341\u4e94\u4e2a\u6761\u7801\uff0c\u542b\u516b\u540d\u4f9b\u8005\u3002\u72ec\u7acb\u590d\u6838\u53d6\u7528\u5341\u500d\u57fa\u56e0\u7ec4 PBMC3K\uff0c\u6309 Scanpy \u516c\u5f00\u5206\u6790\u5bf9\u8c61\u7684\u7ec6\u80de\u540d\u5355\u4e0e\u6807\u7b7e\uff0c\u4ece\u539f\u59cb\u8ba1\u6570\u77e9\u9635\u63a5\u56de\u4e8c\u5343\u516d\u767e\u4e09\u5341\u516b\u9897\u6761\u7801\u3002\u4e24\u4efd\u539f\u59cb\u6570\u636e\u5e76\u975e\u628a\u540c\u4e00\u4efd\u5b9e\u9a8c\u968f\u673a\u5207\u6210\u4e24\u534a\u3002\u7b2c\u4e8c\u4efd\u5b9e\u9a8c\u5c5e\u4e8e\u53e6\u4e00\u6765\u6e90\u7684\u4e00\u4e2a\u4f9b\u8005\uff0c\u6240\u4ee5\u6211\u4eec\u80fd\u591f\u95ee\u89c4\u5219\u80fd\u5426\u8f6c\u79fb\u5230\u8fd9\u4e2a\u5b9e\u9a8c\uff0c\u5374\u4e0d\u80fd\u636e\u6b64\u5ba3\u79f0\u5df2\u7ecf\u8bc1\u660e\u5b83\u53ef\u4ee5\u8986\u76d6\u6240\u6709\u60a3\u8005\u3002\u540d\u5b57\u76f8\u540c\u7684\u77ed\u6761\u7801\u51fa\u73b0\u5728\u4e0d\u540c\u6587\u5e93\u4e5f\u53ef\u80fd\u7eaf\u5c5e\u5de7\u5408\uff0c\u5408\u5e76\u8868\u683c\u65f6\u5fc5\u987b\u4fdd\u7559\u6765\u6e90\u5b57\u6bb5\u3002<a href=\"https:\/\/doi.org\/10.1038\/nbt.4042\">\u53d1\u73b0\u961f\u5217\u539f\u7814\u7a76<\/a> \u00b7 <a href=\"https:\/\/scanpy.readthedocs.io\/en\/stable\/tutorials\/basics\/clustering-2017.html\">\u5916\u90e8\u6570\u636e\u5904\u7406\u6d41\u7a0b<\/a><\/p>\n<p>\u4efb\u52a1\u9650\u5b9a\u4e3a\u8bc6\u522b\u4f5c\u8005\u6807\u6ce8\u7684 B \u7ec6\u80de\u3002\u53d1\u73b0\u9636\u6bb5\u5217\u51fa\u516d\u4e2a\u5019\u9009\uff0c\u5305\u62ec\u7ecf\u5178 B \u7cfb\u6807\u8bb0\uff0c\u4e5f\u5305\u62ec\u53ef\u80fd\u5728\u5176\u4ed6\u6297\u539f\u5448\u9012\u7ec6\u80de\u4e2d\u51fa\u73b0\u7684\u57fa\u56e0\u3002\u6bcf\u4e2a\u5019\u9009\u5206\u522b\u5c1d\u8bd5\u81f3\u5c11\u4e00\u4e2a\u3001\u4e24\u4e2a\u6216\u4e09\u4e2a\u539f\u59cb\u5206\u5b50\uff0c\u5171\u5341\u516b\u6761\u89c4\u5219\u3002\u7528\u539f\u59cb\u5206\u5b50\u9608\u503c\u662f\u4e3a\u4e86\u8ba9\u5224\u65ad\u4e00\u773c\u53ef\u67e5\uff0c\u4e5f\u610f\u5473\u7740\u6df1\u5ea6\u5dee\u5f02\u4f1a\u76f4\u63a5\u5f71\u54cd\u8fc1\u79fb\u8868\u73b0\u3002\u6362\u6210\u5f52\u4e00\u8868\u8fbe\u3001\u86cb\u767d\u8bfb\u6570\u6216\u591a\u57fa\u56e0\u89c4\u5219\u4e5f\u662f\u5408\u7406\u8bbe\u8ba1\uff0c\u4f46\u5fc5\u987b\u5728\u6253\u5f00\u5916\u90e8\u6807\u7b7e\u4ee5\u524d\u786e\u5b9a\u6d4b\u91cf\u53e3\u5f84\u3002\u628a\u6574\u56fe\u989c\u8272\u6700\u6df1\u7684\u90a3\u4e2a\u57fa\u56e0\u4e34\u65f6\u6311\u51fa\u6765\uff0c\u518d\u7528\u540c\u4e00\u5e45\u56fe\u8bf4\u660e\u5b83\u6700\u51c6\u786e\uff0c\u5c5e\u4e8e\u5728\u8bad\u7ec3\u6750\u6599\u91cc\u590d\u8ff0\u9009\u62e9\u4f9d\u636e\u3002<\/p>\n<h2>\u4e3a\u4ec0\u4e48\u6309\u4f9b\u8005\u5206\u522b\u8ba1\u7b97\u518d\u53d6\u5e73\u5747<\/h2>\n<p>\u7ed9\u5b9a\u4e00\u6761\u89c4\u5219\uff0c\u5148\u5728\u6bcf\u4e2a\u4f9b\u8005\u5185\u586b\u56db\u4e2a\u6570\u3002\u53c2\u8003 B \u7ec6\u80de\u4e2d\u6709\u591a\u5c11\u88ab\u8ba4\u51fa\u3001\u591a\u5c11\u88ab\u6f0f\u6389\uff1b\u5176\u4ed6\u7c7b\u578b\u4e2d\u6709\u591a\u5c11\u88ab\u8bef\u8ba4\u3001\u591a\u5c11\u88ab\u6b63\u786e\u6392\u9664\u3002\u7075\u654f\u5ea6\u662f\u4ece\u53c2\u8003 B \u7ec6\u80de\u51fa\u53d1\u7684\u547d\u4e2d\u6bd4\u4f8b\uff0c\u7279\u5f02\u5ea6\u5219\u4ece\u5176\u4ed6\u7ec6\u80de\u51fa\u53d1\u3002\u6211\u4eec\u5bf9\u8fd9\u4e24\u9879\u53d6\u5747\u503c\uff0c\u518d\u5bf9\u516b\u4f4d\u4f9b\u8005\u7b49\u6743\u5e73\u5747\uff0c\u5f97\u51fa\u53d1\u73b0\u9636\u6bb5\u7684\u6392\u5e8f\u3002\u8fd9\u6837\u4e00\u4e2a\u6d4b\u5230\u51e0\u5343\u9897\u7ec6\u80de\u7684\u4f9b\u8005\u4e0d\u80fd\u4ec5\u51ed\u7ec6\u80de\u6570\u628a\u53ea\u6709\u51e0\u767e\u9897\u7684\u4f9b\u8005\u6df9\u6ca1\u3002\u82e5\u67d0\u4e2a\u4f9b\u8005\u6839\u672c\u6ca1\u6709\u53c2\u8003 B \u7ec6\u80de\uff0c\u7075\u654f\u5ea6\u65e0\u6cd5\u4f30\u8ba1\uff0c\u5e94\u5728\u8ba1\u7b97\u548c\u62a5\u544a\u4e2d\u8bf4\u660e\uff0c\u4e0d\u80fd\u56e0\u4e3a\u7f3a\u76ee\u6807\u7fa4\u628a\u7075\u654f\u5ea6\u586b\u6210\u96f6\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 choose_rule(discovery):\n    rows=[]\n    genes=[&quot;MS4A1&quot;,&quot;CD79A&quot;,&quot;CD79B&quot;,&quot;CD74&quot;,&quot;HLA-DRA&quot;,&quot;CD37&quot;]\n    for g in genes:\n        for threshold in [1,2,3]:\n            per=[score(z,g,threshold)[&quot;balanced_accuracy&quot;] for _,z in discovery.groupby(&quot;donor&quot;)]\n            rows.append((g,threshold,np.nanmean(per)))\n    ranked=pd.DataFrame(rows,columns=[&quot;gene&quot;,&quot;threshold_raw_umi&quot;,&quot;mean_donor_balanced_accuracy&quot;]).sort_values([&quot;mean_donor_balanced_accuracy&quot;,&quot;gene&quot;,&quot;threshold_raw_umi&quot;],ascending=[False,True,True])\n    return ranked\n<\/code><\/pre>\n<p>\u6309\u8fd9\u5957\u9884\u5148\u89c4\u5b9a\u7684\u76ee\u6807\uff0c\u80dc\u51fa\u7684\u662f CD79A \u81f3\u5c11\u4e00\u4e2a\u539f\u59cb\u5206\u5b50\u3002\u811a\u672c\u5148\u628a\u57fa\u56e0\u540d\u3001\u6bd4\u8f83\u7b26\u53f7\u7684\u542b\u4e49\u548c\u9608\u503c\u5199\u8fdb\u51bb\u7ed3\u89c4\u5219\uff0c\u7136\u540e\u624d\u8bfb\u53d6\u5916\u90e8\u8868\u3002\u53d1\u73b0\u961f\u5217\u4e2d\u5408\u8ba1\u6709\u4e00\u5343\u4e09\u767e\u4e00\u5341\u516d\u9897\u53c2\u8003 B \u7ec6\u80de\uff0c\u8ba4\u51fa\u4e00\u5343\u96f6\u4e00\u5341\u516d\u9897\uff0c\u6f0f\u6389\u4e09\u767e\u9897\uff1b\u5176\u4ed6\u4e00\u4e07\u96f6\u4e5d\u767e\u4e5d\u5341\u4e5d\u9897\u91cc\u8bef\u6807\u4e00\u767e\u4e09\u5341\u4e03\u9897\u3002\u6309\u4f9b\u8005\u770b\uff0c\u76ee\u6807\u547d\u4e2d\u7387\u7ea6\u4ece\u516d\u6210\u4e94\u5230\u516b\u6210\u56db\u3002\u8bfb\u8005\u53ef\u4ee5\u518d\u770b\u6bcf\u5217\u7684\u7edd\u5bf9\u7ec6\u80de\u6570\uff0c\u4e00\u4f4d\u4f9b\u8005\u53ea\u6709\u51e0\u5341\u9897\u76ee\u6807\u65f6\uff0c\u51e0\u9897\u8fb9\u754c\u7ec6\u80de\u5c31\u80fd\u4f7f\u6bd4\u4f8b\u660e\u663e\u6539\u53d8\u3002\u53d1\u73b0\u961f\u5217\u7684\u6f02\u4eae\u5e73\u5747\u503c\u5e76\u6ca1\u6709\u62b9\u53bb\u8fd9\u4e9b\u5dee\u5f02\u3002<\/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\">\u89c2\u5bdf\u8303\u56f4<\/th>\n<th style=\"padding:9px;text-align:left;background:#d9f4e5\">\u771f\u9633\u6027<\/th>\n<th style=\"padding:9px;text-align:left;background:#d9f4e5\">\u6f0f\u6807<\/th>\n<th style=\"padding:9px;text-align:left;background:#d9f4e5\">\u8bef\u6807<\/th>\n<th style=\"padding:9px;text-align:left;background:#d9f4e5\">\u6b63\u786e\u6392\u9664<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u53d1\u73b0\u961f\u5217\uff0c8 \u4f4d\u4f9b\u8005<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">1,016<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">300<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">137<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">10,862<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u72ec\u7acb PBMC3K\uff0c1 \u4f4d\u4f9b\u8005<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">320<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">22<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">97<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">2,199<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>\u5230\u72ec\u7acb\u961f\u5217\uff0c\u5148\u770b\u539f\u6570\u518d\u770b\u767e\u5206\u6bd4<\/h2>\n<p>\u51bb\u7ed3\u89c4\u5219\u5728\u4e09\u767e\u56db\u5341\u4e8c\u9897\u5916\u90e8\u53c2\u8003 B \u7ec6\u80de\u4e2d\u8ba4\u51fa\u4e09\u767e\u4e8c\u5341\u9897\uff0c\u7075\u654f\u5ea6\u7ea6\u4e5d\u6210\u56db\uff1b\u5728\u4e24\u5343\u4e8c\u767e\u4e5d\u5341\u516d\u9897\u53c2\u8003\u975e B \u7ec6\u80de\u4e2d\uff0c\u4e5d\u5341\u4e03\u9897\u8fbe\u5230\u540c\u4e00\u4e2a\u9608\u503c\uff0c\u7279\u5f02\u5ea6\u7ea6\u4e5d\u6210\u516d\u3002\u5916\u90e8\u7075\u654f\u5ea6\u7adf\u9ad8\u4e8e\u53d1\u73b0\u961f\u5217\uff0c\u8fd9\u5e76\u4e0d\u6784\u6210\u7b97\u6cd5\u53d8\u597d\u7684\u8bc1\u636e\u3002\u4e0d\u540c\u53c2\u8003\u6807\u6ce8\u3001\u5efa\u5e93\u6df1\u5ea6\u3001\u6837\u672c\u6784\u6210\u548c\u4e2a\u4f53\u751f\u7269\u5b66\u90fd\u53ef\u80fd\u8ba9\u8fd9\u4e00\u6b21\u8bc6\u522b\u66f4\u5bb9\u6613\u3002\u5148\u6bd4\u8f83\u9633\u6027\u4e0e\u6f0f\u6807 B \u7ec6\u80de\u7684\u5168\u5e93\u6df1\u5ea6\uff0c\u518d\u6309\u57fa\u56e0\u539f\u8ba1\u6570\u5206\u522b\u753b\u5206\u5e03\uff0c\u6bd4\u7b80\u5355\u5730\u628a\u4e24\u4e2a\u767e\u5206\u6bd4\u4f5c\u4f18\u52a3\u6392\u540d\u66f4\u6709\u610f\u4e49\u3002\u82e5\u5b9e\u9645\u5e94\u7528\u6700\u6015\u6f0f\u6807\u8fd8\u662f\u6700\u6015\u8bef\u6807\uff0c\u4e5f\u8981\u7ed3\u5408\u5e94\u7528\u76ee\u7684\u6765\u8bfb\u6df7\u6dc6\u8868\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<p>\u53ea\u770b\u8bef\u6807\u603b\u6570\u8fd8\u4e0d\u591f\u3002\u5916\u90e8 CD4 T \u53c2\u8003\u7ec4\u7684\u4e00\u5343\u4e00\u767e\u56db\u5341\u56db\u9897\u91cc\uff0c\u4e94\u5341\u4e94\u9897\u88ab\u89c4\u5219\u6807\u4e3a B\uff0c\u662f\u8bef\u6807\u7edd\u5bf9\u6570\u6700\u5927\u7684\u6765\u6e90\u3002\u6811\u7a81\u7ec6\u80de\u4e2d\u516d\u9897\u88ab\u8bef\u6807\uff0c\u6570\u5b57\u5f88\u5c0f\uff0c\u53ef\u8be5\u53c2\u8003\u7c7b\u578b\u603b\u5171\u53ea\u6709\u4e09\u5341\u4e03\u9897\uff0c\u6bd4\u4f8b\u7ea6\u4e3a\u767e\u5206\u4e4b\u5341\u516d\u3002\u82e5\u4e0b\u4e00\u6b65\u8981\u5728\u6297\u539f\u5448\u9012\u7ec6\u80de\u9644\u8fd1\u5bfb\u627e\u7a00\u6709 B \u4e9a\u7fa4\uff0c\u540e\u4e00\u9879\u66f4\u503c\u5f97\u8ffd\u67e5\u3002\u6253\u5f00\u9010\u6761\u7801\u6587\u4ef6\uff0c\u67e5\u8fd9\u4e9b\u7ec6\u80de\u662f\u4e0d\u662f\u53ea\u6709\u4e00\u4e2a CD79A \u5206\u5b50\uff0c\u5176\u4ed6 B \u7cfb\u6807\u8bb0\u80fd\u5426\u652f\u6301\u539f\u89c4\u5219\uff0cT \u7cfb\u6216\u9ad3\u7cfb\u6807\u8bb0\u53c8\u662f\u4ec0\u4e48\u6837\u3002\u5355\u4e2a\u9633\u6027\u53ef\u80fd\u4e0e\u8868\u8fbe\u3001\u73af\u5883\u5206\u5b50\u3001\u53cc\u7ec6\u80de\u6216\u539f\u53c2\u8003\u6807\u6ce8\u8fb9\u754c\u90fd\u6709\u5173\u7cfb\uff0c\u4e0d\u80fd\u4ece\u4e00\u5217\u6570\u503c\u4e2d\u66ff\u5b83\u51b3\u5b9a\u539f\u56e0\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 score(tab,gene,threshold):\n    ref=tab.label.eq(&quot;B cells&quot;);pred=tab[gene]&gt;=threshold\n    tp=int((ref&amp;pred).sum());tn=int((~ref&amp;~pred).sum());fp=int((~ref&amp;pred).sum());fn=int((ref&amp;~pred).sum())\n    sensitivity=tp\/(tp+fn) if tp+fn else np.nan;specificity=tn\/(tn+fp) if tn+fp else np.nan\n    return {&quot;tp&quot;:tp,&quot;tn&quot;:tn,&quot;fp&quot;:fp,&quot;fn&quot;:fn,&quot;sensitivity&quot;:sensitivity,&quot;specificity&quot;:specificity,&quot;balanced_accuracy&quot;:(sensitivity+specificity)\/2}\n<\/code><\/pre>\n<h2>\u4e00\u6b21\u5916\u90e8\u590d\u6838\uff0c\u5e94\u8be5\u600e\u6837\u8fdb\u5165\u56fe\u6ce8<\/h2>\n<p>\u53ef\u628a\u56fe\u6ce8\u5199\u5f97\u8db3\u591f\u5177\u4f53\uff0c\u8bf4\u660e\u5728\u54ea\u4e2a\u53d1\u73b0\u961f\u5217\u8bc4\u4f30\u8fc7\u54ea\u4e9b\u5019\u9009\uff0c\u91c7\u7528\u6309\u4f9b\u8005\u7b49\u6743\u7684\u76ee\u6807\u51fd\u6570\uff0c\u51bb\u7ed3\u4e86\u54ea\u4e2a\u57fa\u56e0\u53ca\u9608\u503c\uff0c\u7136\u540e\u5217\u51fa\u5916\u90e8\u961f\u5217\u7684\u56db\u4e2a\u6574\u6570\u3002\u4e0b\u4e00\u6b21\u82e5\u60f3\u628a\u89c4\u5219\u63d0\u9ad8\u5230\u4e24\u4e2a\u5206\u5b50\uff0c\u5e94\u628a\u5b83\u8bb0\u4f5c\u65b0\u7684\u5019\u9009\u7248\u672c\uff0c\u53e6\u627e\u672a\u53c2\u4e0e\u4fee\u6539\u7684\u6837\u672c\u518d\u9a8c\u8bc1\u3002\u53cd\u590d\u7528\u540c\u4e00\u4efd\u5916\u90e8\u961f\u5217\u8c03\u9608\u503c\uff0c\u6700\u7ec8\u5f97\u5230\u7684\u662f\u5229\u7528\u4e86\u5916\u90e8\u4fe1\u606f\u7684\u66f4\u65b0\u6a21\u578b\uff0c\u6b64\u65f6\u539f\u5916\u90e8\u6307\u6807\u4e0d\u80fd\u7ee7\u7eed\u5f53\u4f5c\u4e00\u6b21\u76f2\u6cd5\u590d\u6838\u7684\u6027\u80fd\u3002\u82e5\u53ef\u7528\u961f\u5217\u6709\u9650\uff0c\u53ef\u4ee5\u4fdd\u7559\u4f9b\u8005\u6574\u7ec4\u5212\u5206\u505a\u521d\u6b65\u68c0\u9a8c\uff0c\u4f46\u53d1\u73b0\u3001\u8c03\u6574\u3001\u6700\u7ec8\u9a8c\u8bc1\u7684\u540d\u5355\u4ecd\u8981\u5199\u6e05\u3002<\/p>\n<p>\u5bf9\u4e8e\u771f\u6b63\u7684\u65b0\u6807\u8bb0\uff0c\u4e5f\u53ef\u4ee5\u5148\u51bb\u7ed3\u4e00\u4e2a\u7b80\u6d01\u7ec4\u5408\u3002\u6bd4\u5982\u5148\u8981\u6c42\u67d0\u8c31\u7cfb\u5728\u6837\u672c\u4e2d\u5b58\u5728\uff0c\u518d\u5728\u540c\u7cfb\u7ec6\u80de\u5185\u68c0\u67e5\u65b0\u57fa\u56e0\u80fd\u5426\u533a\u5206\u76ee\u6807\u72b6\u6001\uff0c\u5e76\u5206\u522b\u7edf\u8ba1\u6700\u5bb9\u6613\u6df7\u6dc6\u7684\u76f8\u90bb\u7c7b\u578b\u3002\u53c2\u8003\u6807\u7b7e\u82e5\u672c\u6765\u5c31\u7531\u8be5\u6807\u8bb0\u6216\u76f8\u8fd1\u57fa\u56e0\u5b9a\u4e49\uff0c\u5f97\u5230\u9ad8\u6027\u80fd\u53ef\u80fd\u90e8\u5206\u53cd\u6620\u540c\u4e00\u8bc1\u636e\u88ab\u91cd\u590d\u4f7f\u7528\uff0c\u5e94\u53e6\u7528\u72ec\u7acb\u86cb\u767d\u3001\u7ec4\u7ec7\u4f4d\u7f6e\u6216\u5b9e\u9a8c\u8bb0\u5f55\u8865\u8bc1\u3002\u5c24\u5176\u4e0d\u540c\u89e3\u5256\u4f4d\u7f6e\u7684\u9634\u6027\u6837\u672c\u4e0d\u80fd\u76f4\u63a5\u66ff\u4ee3\u76ee\u6807\u7ec4\u7ec7\u5185\u7684\u76f8\u90bb\u7ec6\u80de\u3002\u8fdb\u5165\u9a8c\u8bc1\u9636\u6bb5\u524d\uff0c\u9884\u5148\u7ea6\u5b9a\u8fc7\u4f4e\u7684\u7075\u654f\u5ea6\u6216\u7279\u5f02\u5ea6\u4f1a\u5982\u4f55\u5f71\u54cd\u7ed3\u8bba\uff0c\u907f\u514d\u770b\u89c1\u5916\u90e8\u7ed3\u679c\u540e\u53ea\u6311\u597d\u770b\u7684\u90a3\u9879\u5c55\u793a\u3002<\/p>\n<p>\u4e5f\u53ef\u4ee5\u628a\u539f\u59cb\u9a8c\u8bc1\u8868\u6309\u6df1\u5ea6\u5206\u5c42\uff0c\u4f46\u5e94\u5148\u56fa\u5b9a\u540c\u4e00\u6761\u89c4\u5219\u3002\u5206\u522b\u5217\u4f4e\u3001\u4e2d\u3001\u9ad8\u6df1\u5ea6\u4e2d\u76ee\u6807\u4e0e\u975e\u76ee\u6807\u7684\u4e2a\u6570\uff0c\u518d\u770b\u6f0f\u6807\u662f\u4e0d\u662f\u4e3b\u8981\u51fa\u73b0\u5728\u8f83\u6d45\u7684\u4e00\u6863\u3002\u82e5\u67d0\u4e00\u6863\u76ee\u6807\u7ec6\u80de\u5b9e\u5728\u592a\u5c11\uff0c\u76f4\u63a5\u62a5\u544a\u6574\u6570\uff0c\u5e76\u8bf4\u660e\u8be5\u6863\u4f30\u8ba1\u7cbe\u5ea6\u6709\u9650\u3002\u628a\u6df1\u5ea6\u5206\u5c42\u4f5c\u4e3a\u8bef\u5dee\u8bca\u65ad\uff0c\u4e0e\u5728\u6bcf\u4e00\u6863\u4e34\u65f6\u6539\u9608\u503c\u5b8c\u5168\u4e0d\u540c\u3002\u524d\u8005\u80fd\u5e2e\u6211\u4eec\u89e3\u91ca\u51bb\u7ed3\u89c4\u5219\u7684\u5f31\u70b9\uff0c\u540e\u8005\u9700\u8981\u4ece\u5934\u5f53\u4f5c\u4e00\u6761\u65b0\u7684\u590d\u5408\u89c4\u5219\u8bc4\u4f30\u3002<\/p>\n<p>\u628a\u5206\u6790\u4ea4\u7ed9\u53e6\u4e00\u4f4d\u540c\u4e8b\u65f6\uff0c\u53ef\u4ee5\u53ea\u8ba9\u4ed6\u5148\u8bfb\u51bb\u7ed3\u89c4\u5219\u4e0e\u5916\u90e8\u539f\u8868\uff0c\u5728\u624b\u7b97\u5341\u4e2a\u968f\u673a\u6761\u7801\u540e\u518d\u6253\u5f00\u53c2\u8003\u8f93\u51fa\u3002\u770b\u770b\u4ed6\u80fd\u5426\u91cd\u5efa\u540c\u4e00\u4e2a\u771f\u9633\u6027\u6570\uff0c\u80fd\u5426\u4ece\u4e5d\u5341\u4e03\u9897\u91cc\u627e\u5230\u6307\u5b9a\u7684\u53c2\u8003\u7c7b\u578b\u3002\u5982\u679c\u8fd9\u4e00\u6b65\u987a\u7545\uff0c\u5c31\u8bf4\u660e\u5bf9\u7167\u6570\u636e\u3001\u57fa\u56e0\u547d\u540d\u548c\u9608\u503c\u5df2\u7ecf\u6e05\u695a\u5230\u53ef\u4ee5\u79fb\u4ea4\u3002\u8981\u6269\u5927\u5230\u591a\u4e2d\u5fc3\u3001\u66f4\u591a\u5019\u9009\u57fa\u56e0\u4e0e\u4f9b\u8005\u91cd\u7b97\u65f6\uff0c\u518d\u6309\u77e9\u9635\u4f53\u91cf\u4e0e\u4ea4\u53c9\u9a8c\u8bc1\u7684\u8fd0\u884c\u6b21\u6570\u9009\u62e9<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>\u5728\u516b\u4f4d Kang \u4f9b\u8005\u4e2d\u9009\u62e9 B \u7ec6\u80de\u6807\u8bb0\u4e0e\u539f\u59cb UMI \u9608\u503c\uff0c\u5148\u5199\u51fa\u51bb\u7ed3\u89c4\u5219\uff0c\u518d\u6253\u5f00\u72ec\u7acb PBMC3K \u6570\u636e\u6838\u9a8c\u8bef\u6807\u3002<\/p>\n","protected":false},"author":1,"featured_media":72380,"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-72383","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-094-frozen-marker-external-cohort.png?fit=1240%2C800&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72383","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=72383"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72383\/revisions"}],"predecessor-version":[{"id":73732,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72383\/revisions\/73732"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/72380"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=72383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=72383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=72383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}