{"id":71681,"date":"2026-11-17T13:34:24","date_gmt":"2026-11-17T05:34:24","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=71681"},"modified":"2026-11-17T13:34:24","modified_gmt":"2026-11-17T05:34:24","slug":"ysx-sc-practice-034-tenx-smartseq2-detection","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/ysx-sc-practice-034-tenx-smartseq2-detection\/","title":{"rendered":"\u540c\u4e00\u79cd\u7ec6\u80de\u5728 10x \u548c Smart-seq2 \u91cc\u68c0\u51fa\u7387\u5dee\u5f88\u591a\uff0c\u4e24\u6279\u6570\u636e\u600e\u4e48\u6bd4\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>\u540c\u4e00\u79cd T \u7ec6\u80de\uff0c\u4e00\u4e2a\u4f4e\u8868\u8fbe\u6807\u8bb0\u5728 10x \u91cc\u53ea\u89c1\u4e8e\u516d\u9897\u7ec6\u80de\uff0c\u5728 Smart-seq2 \u91cc\u5374\u89c1\u4e8e\u4e8c\u5341\u4e8c\u9897\u3002\u4e24\u8fb9\u78b0\u5de7\u5404\u6709\u4e09\u5341\u516d\u9897 T \u7ec6\u80de\uff0c\u5dee\u5f02\u662f\u4e0d\u662f\u6280\u672f\u5e73\u53f0\u9020\u6210\u7684\uff1f\u5148\u522b\u628a\u4e24\u5f20\u8868\u8fbe\u77e9\u9635\u76f4\u63a5\u62fc\u8d77\u6765\u6c42\u500d\u6570\u3002\u5e94\u8be5\u5148\u786e\u8ba4\u4e24\u7aef\u5230\u5e95\u5728\u6570\u4ec0\u4e48\uff0c\u54ea\u4e9b\u57fa\u56e0\u786e\u5b9e\u6d4b\u5f97\u5230\uff0c\u6bd4\u8f83\u7684\u7ec6\u80de\u662f\u5426\u6765\u81ea\u76f8\u540c\u60a3\u8005\u548c\u53ef\u6bd4\u7684\u7c7b\u578b\u3002\u4e0b\u9762\u4ece\u4e24\u4efd\u72ec\u7acb\u7684\u8ba1\u6570\u77e9\u9635\u51fa\u53d1\uff0c\u628a\u6df1\u5ea6\u3001\u68c0\u51fa\u6bd4\u4f8b\u548c\u6807\u8bb0\u6392\u5e8f\u5206\u522b\u7b97\u7ed9\u4f60\u770b\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=\"\u5171\u540c\u57fa\u56e0\u5728\u914d\u5bf9\u4f9b\u8005 T \u7ec6\u80de\u4e2d\u7684\u4e24\u4e2a\u5e73\u53f0\u68c0\u51fa\u7387\u4e0e\u5404\u81ea\u5185\u90e8\u6807\u8bb0\u6392\u540d\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-034-tenx-smartseq2-detection.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-034-tenx-smartseq2-detection.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-034-tenx-smartseq2-detection.pdf\">\u4e0b\u8f7d\u56fe\u6587\u64cd\u4f5c\u624b\u518c\uff08PDF\uff09<\/a><\/p>\n<h2>\u4ece\u6570\u636e\u4ea4\u4ed8\u8868\u533a\u5206\u8bfb\u6bb5\u4e0e\u5206\u5b50<\/h2>\n<p>\u5728\u5e38\u89c1\u7684\u5341\u500d\u6db2\u6ef4\u57fa\u56e0\u8868\u8fbe\u6d41\u7a0b\u4e2d\uff0c\u7ec6\u80de\u6761\u7801\u7528\u4e8e\u5f52\u5c5e\u7ec6\u80de\uff0c\u552f\u4e00\u5206\u5b50\u6807\u8bc6\u53c2\u4e0e\u53bb\u91cd\uff0c\u5f97\u5230\u6309\u57fa\u56e0\u548c\u6761\u7801\u6c47\u603b\u7684\u5206\u5b50\u8ba1\u6570\u3002\u7ecf\u5178\u7684\u5168\u957f Smart-seq2 \u65b9\u6848\u901a\u5e38\u6ca1\u6709\u8fd9\u79cd\u552f\u4e00\u5206\u5b50\u6807\u8bc6\uff0c\u6309\u57fa\u56e0\u6c47\u603b\u7684\u8bfb\u6bb5\u6216\u7247\u6bb5\u8ba1\u6570\u53cd\u6620\u7684\u662f\u53e6\u4e00\u79cd\u8ba1\u6570\u5355\u4f4d\u3002\u591a\u4e2a\u8bfb\u6bb5\u53ef\u80fd\u6e90\u4e8e\u540c\u4e00\u4e2a\u6269\u589e\u7684\u6a21\u677f\u3002\u4e0d\u8981\u56e0\u4e3a\u4e24\u4e2a\u77e9\u9635\u90fd\u7528\u6574\u6570\u5b58\u50a8\uff0c\u5c31\u76f4\u63a5\u628a\u51e0\u5341\u4e2a\u8bfb\u6bb5\u9664\u4ee5\u51e0\u4e2a UMI \u89e3\u91ca\u6210\u5206\u5b50\u8868\u8fbe\u500d\u6570\u3002\u5982\u679c\u4ea4\u4ed8\u7269\u672c\u8eab\u662f\u8f6c\u5f55\u672c\u4e30\u5ea6\u4f30\u8ba1\u3001\u957f\u5ea6\u6821\u6b63\u540e\u7684\u6570\u503c\u6216\u5df2\u7ecf\u53d6\u5bf9\u6570\u7684\u77e9\u9635\uff0c\u5fc5\u987b\u56de\u5934\u67e5\u770b\u5b9e\u9645\u5b9a\u91cf\u65b9\u6cd5\u548c\u6587\u4ef6\u5355\u4f4d\u3002<a href=\"https:\/\/www.10xgenomics.com\/support\/software\/cell-ranger\/latest\/algorithms-overview\/cr-gex-algorithm\">10x \u7684\u57fa\u56e0\u8868\u8fbe\u8ba1\u6570\u8bf4\u660e<\/a> <a href=\"https:\/\/pubmed.ncbi.nlm.nih.gov\/24385147\/\">Smart-seq2 \u539f\u59cb\u534f\u8bae<\/a><\/p>\n<p>\u8d44\u6599\u5305\u7279\u610f\u5728 assays.tsv \u91cc\u9010\u5e73\u53f0\u6807\u51fa\u8ba1\u6570\u53e3\u5f84\uff0c\u5e76\u628a\u4e24\u5957\u77e9\u9635\u653e\u5728\u4e0d\u540c\u76ee\u5f55\u3002\u5143\u6570\u636e\u91cc\u53e6\u6709\u6bcf\u9897\u7ec6\u80de\u7684\u6bd4\u5bf9\u8bfb\u6bb5\u6570\uff0c\u4fdd\u7559\u4e0e\u77e9\u9635\u5217\u603b\u548c\u4e0d\u540c\u7684\u540d\u5b57\u3002\u4e24\u7ec4\u7ec6\u80de\u5206\u522b\u6765\u81ea\u540c\u4e09\u4f4d\u6a21\u62df\u4f9b\u8005\uff0c\u6bcf\u4e2a\u5e73\u53f0\u5404\u6709\u4e03\u5341\u4e8c\u9897\u7ec6\u80de\uff0c\u5747\u7531\u4e09\u5341\u516d\u9897 T \u548c\u4e09\u5341\u516d\u9897 B \u7ec4\u6210\u3002\u6bcf\u4f4d\u4f9b\u8005\u5728\u6bcf\u79cd\u5e73\u53f0\u3001\u6bcf\u4e2a\u5927\u7c7b\u5404\u8d21\u732e\u5341\u4e8c\u9897\u3002\u8fd9\u662f\u540c\u6765\u6e90\u6750\u6599\u7684\u914d\u5bf9\u6bd4\u8f83\uff0c\u4e24\u4e2a\u5e73\u53f0\u4e0a\u6761\u7801\u5404\u81ea\u72ec\u7acb\uff0c\u4e0d\u80fd\u8bf4\u628a\u540c\u4e00\u9897\u6d3b\u7ec6\u80de\u6d4b\u4e86\u4e24\u6b21\u3002\u4f8b\u4e2d\u7684\u6df1\u5ea6\u3001\u8ba1\u6570\u548c\u4f4e\u8868\u8fbe\u6807\u8bb0\u90fd\u662f\u6559\u5b66\u6a21\u62df\uff0c\u8bfb\u8005\u53ef\u7528\u5b83\u6838\u5bf9\u7edf\u8ba1\u53e3\u5f84\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>\u5148\u67e5\u5171\u540c\u57fa\u56e0\uff0c\u518d\u67e5\u5171\u540c\u7ec6\u80de\u5927\u7c7b<\/h2>\n<p>\u6253\u5f00 feature_coverage.tsv\u3002\u4e24\u8fb9\u5404\u6709\u4e09\u5341\u516b\u4e2a\u57fa\u56e0\uff0c\u4ea4\u96c6\u53ea\u6709\u4e09\u5341\u4e03\u4e2a\u3002X_ONLY \u53ea\u5b58\u5728\u4e8e\u6db2\u6ef4\u77e9\u9635\u7684\u7279\u5f81\u76ee\u5f55\uff0cPLATE_ONLY \u53ea\u5b58\u5728\u4e8e\u5e73\u677f\u77e9\u9635\u3002\u5982\u679c\u628a\u53d6\u5e76\u96c6\u540e\u8865\u7684\u96f6\u4e00\u5f8b\u79f0\u4f5c\u201c\u8be5\u5e73\u53f0\u672a\u68c0\u51fa\u8868\u8fbe\u201d\uff0c\u5c31\u4f1a\u628a\u6839\u672c\u6ca1\u6709\u8fd9\u4e2a\u7279\u5f81\u548c\u6709\u7279\u5f81\u4f46\u6240\u6709\u7ec6\u80de\u90fd\u6d4b\u5230\u96f6\u6df7\u6210\u4e00\u7c7b\u3002\u5b9e\u9645\u9879\u76ee\u8fd8\u8981\u6838\u5bf9\u57fa\u56e0\u7ec4\u7248\u672c\u3001\u53c2\u8003\u6ce8\u91ca\u3001\u7b26\u53f7\u548c\u7a33\u5b9a\u7f16\u53f7\u7684\u5173\u7cfb\u3002\u6709\u7684\u77e9\u9635\u5728\u5bfc\u51fa\u65f6\u5df2\u7ecf\u8fc7\u6ee4\u5168\u96f6\u884c\uff0c\u539f\u59cb\u53c2\u8003\u4e2d\u662f\u5426\u5305\u542b\u4e00\u4e2a\u7279\u5f81\uff0c\u9700\u8981\u989d\u5916\u67e5\u5f53\u65f6\u7684\u7279\u5f81\u76ee\u5f55\u624d\u80fd\u786e\u5b9a\u3002<\/p>\n<p>\u968f\u540e\u6838\u5bf9\u5171\u540c\u5927\u7c7b\u3002\u8fd9\u91cc\u6bd4\u8f83\u7684\u662f\u540c\u4e00\u4f9b\u8005\u7684 T \u5bf9 T\u3001B \u5bf9 B\u3002\u82e5\u4e00\u8fb9\u628a\u6240\u6709\u9ad3\u7cfb\u5408\u4e3a\u4e00\u4e2a\u7fa4\uff0c\u53e6\u4e00\u8fb9\u5c06\u5355\u6838\u7ec6\u80de\u548c\u6811\u7a81\u7ec6\u80de\u5206\u5f00\uff0c\u4e0d\u5e94\u76f4\u63a5\u6309\u540d\u5b57\u62fc\u3002\u5148\u5ba1\u67e5\u539f\u59cb\u6807\u8bb0\u548c\u6ce8\u91ca\u5c42\u7ea7\uff0c\u9009\u62e9\u4e24\u8fb9\u90fd\u6709\u8bc1\u636e\u652f\u6301\u7684\u7c97\u7c92\u5ea6\u7c7b\u522b\u3002\u5373\u4fbf\u4e24\u4e2a\u6570\u636e\u96c6\u90fd\u5199\u7740 T \u7ec6\u80de\uff0c\u91cc\u9762\u7684\u521d\u59cb\u6837\u548c\u6548\u5e94\u6837\u6bd4\u4f8b\u4e5f\u53ef\u80fd\u4e0d\u540c\uff0c\u4f4e\u8868\u8fbe\u6807\u8bb0\u7684\u68c0\u51fa\u7387\u56e0\u6b64\u4f1a\u6539\u53d8\u3002\u53ef\u4ee5\u5148\u7528\u7c97\u7c7b\u505a\u7b2c\u4e00\u8f6e\uff0c\u518d\u5728\u53cc\u65b9\u6709\u8db3\u591f\u7ec6\u80de\u548c\u660e\u786e\u6807\u8bb0\u65f6\u6838\u5bf9\u5185\u90e8\u7ec4\u6210\u3002\u67d0\u4f4d\u4f9b\u8005\u5728\u4e00\u4fa7\u7f3a\u5c11\u76f8\u5e94\u5927\u7c7b\uff0c\u8bb0\u5f55\u4e3a\u4e0d\u53ef\u6bd4\u8f83\uff0c\u4e0d\u8865\u9020\u96f6\u6bd4\u4f8b\u3002<\/p>\n<h2>\u7528\u540c\u4e00\u5206\u6bcd\u8ffd\u5230\u4f4e\u8868\u8fbe\u57fa\u56e0\u7684\u5404\u4f4d\u60a3\u8005<\/h2>\n<p>\u6211\u4eec\u628a\u4e00\u4e2a\u57fa\u56e0\u5728\u67d0\u9897\u7ec6\u80de\u7684\u539f\u59cb\u8ba1\u6570\u5927\u4e8e\u96f6\u5b9a\u4e49\u4e3a\u68c0\u51fa\u3002\u76ee\u6807\u7c7b\u522b\u4e2d\u68c0\u51fa\u6761\u7801\u6570\u9664\u4ee5\u8be5\u7c7b\u522b\u7684\u5168\u90e8\u53ef\u7528\u6761\u7801\u6570\uff0c\u5f97\u5230\u89c2\u6d4b\u6bd4\u4f8b\u3002\u8fd9\u6837\u505a\u53ef\u4ee5\u8ba9\u4e24\u7aef\u4f7f\u7528\u5b8c\u5168\u76f8\u540c\u7684\u4e8b\u4ef6\u5b9a\u4e49\uff0c\u4f46\u201c\u89c2\u6d4b\u5230\u4e86\u81f3\u5c11\u4e00\u6b21\u201d\u4ecd\u4f1a\u53d7\u6df1\u5ea6\u3001\u5efa\u5e93\u7b56\u7565\u3001\u6bd4\u5bf9\u548c\u8fc7\u6ee4\u89c4\u5219\u5f71\u54cd\u3002\u770b detections.tsv \u7684 T \u884c\uff0c\u4e24\u8fb9\u7684 LOW_MARK \u5206\u522b\u4e3a\u516d\u9664\u4ee5\u4e09\u5341\u516d\u3001\u4e8c\u5341\u4e8c\u9664\u4ee5\u4e09\u5341\u516d\uff0c\u5373\u7ea6\u767e\u5206\u4e4b\u5341\u4e03\u548c\u767e\u5206\u4e4b\u516d\u5341\u4e00\u3002B \u7ec6\u80de\u7684\u540c\u4e00\u6559\u5b66\u6807\u8bb0\u5219\u5206\u522b\u662f\u4e09\u9664\u4ee5\u4e09\u5341\u516d\u548c\u4e03\u9664\u4ee5\u4e09\u5341\u516d\u3002\u628a\u4e24\u7c7b\u5168\u90e8\u5408\u5e76\u4f1a\u628a\u4e24\u79cd\u4e0d\u540c\u7684\u7ec6\u80de\u80cc\u666f\u5e73\u5747\u5728\u4e00\u8d77\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 detection(counts, selected):\n    if not selected.any():return np.full(counts.shape[0],np.nan)\n    return np.asarray((counts[:,selected]&gt;0).sum(axis=1)).ravel()\/selected.sum()\n<\/code><\/pre>\n<p>\u63a5\u4e0b\u6765\u6253\u5f00 paired_detection.tsv\uff0c\u56fa\u5b9a T \u548c LOW_MARK\u3002\u4e09\u4f4d\u4f9b\u8005\u7684\u201c\u5e73\u677f\u51cf\u6db2\u6ef4\u201d\u5dee\u5206\u522b\u4e3a\u5341\u4e8c\u5206\u4e4b\u4e94\u3001\u5341\u4e8c\u5206\u4e4b\u4e94\u3001\u5341\u4e8c\u5206\u4e4b\u516d\uff0c\u65b9\u5411\u76f8\u540c\u3002\u6bcf\u4e2a\u5dee\u90fd\u4fdd\u7559\u4e86\u4e24\u4fa7\u5341\u4e8c\u9897\u7684\u5206\u6bcd\uff0c\u53ef\u56de\u539f\u59cb\u8f93\u5165\u518d\u6570\u4e00\u6b21\u3002\u8fd9\u6837\u7684\u6309\u4f9b\u8005\u914d\u5bf9\uff0c\u6bd4\u76f4\u63a5\u628a\u4e03\u5341\u4e8c\u4e2a\u7ec6\u80de\u5f53\u72ec\u7acb\u91cd\u590d\u8ba1\u7b97\u4e00\u4e2a\u7cbe\u786e\u5230\u5c0f\u6570\u70b9\u540e\u56db\u4f4d\u7684\u663e\u8457\u6027\u66f4\u7b26\u5408\u53d6\u6837\u8bbe\u8ba1\u3002\u5b83\u4ecd\u7136\u4e0d\u80fd\u628a\u5dee\u5f02\u552f\u4e00\u5f52\u7ed9\u5e73\u53f0\u6027\u80fd\uff0c\u56e0\u4e3a\u5728\u771f\u5b9e\u7814\u7a76\u91cc\u6837\u672c\u5904\u7406\u3001\u7ec6\u80de\u5206\u9009\u3001\u5b58\u6d3b\u60c5\u51b5\u3001\u8bfb\u6df1\u7b49\u4e5f\u53ef\u80fd\u4e0e\u5e73\u53f0\u4e00\u8d77\u53d8\u5316\u3002<a href=\"https:\/\/pmc.ncbi.nlm.nih.gov\/articles\/PMC7289686\/\">Ding \u7b49\u5bf9\u591a\u79cd\u5355\u7ec6\u80de\u548c\u5355\u6838\u6d4b\u5e8f\u65b9\u6cd5\u7684\u914d\u5bf9\u57fa\u51c6\u7814\u7a76<\/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\">\u89c2\u5bdf\u91cf<\/th>\n<th style=\"padding:9px;text-align:left;background:#d9f4e5\">\u5728\u7ec3\u4e60\u4e2d\u600e\u6837\u53d6\u51fa<\/th>\n<th style=\"padding:9px;text-align:left;background:#d9f4e5\">\u89e3\u91ca\u65f6\u4fdd\u7559\u7684\u8fb9\u754c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u539f\u751f\u77e9\u9635\u603b\u91cf<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">cell_depths.tsv \u7684 native_total \u4e0e native_unit<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u6db2\u6ef4\u7aef\u4e3a UMI\uff0c\u5e73\u677f\u7aef\u4e3a\u57fa\u56e0\u8bfb\u6bb5<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u6bd4\u5bf9\u8bfb\u6bb5<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u6bcf\u9897\u7ec6\u80de\u5355\u5217 aligned_reads<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u4f9d\u8d56\u6bd4\u5bf9\u53e3\u5f84\uff0c\u4e0e\u539f\u751f\u8ba1\u6570\u4e0d\u662f\u540c\u4e00\u5206\u6bcd<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u76ee\u6807\u57fa\u56e0\u68c0\u51fa\u7387<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u5728\u540c\u4f9b\u8005\u3001\u540c\u5927\u7c7b\u91cc\u6570\u9633\u6027\u6761\u7801<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u62a5\u544a\u9633\u6027\u6570\u3001\u603b\u6570\u4e0e\u6df1\u5ea6<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u6807\u8bb0\u6392\u5e8f<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u6bcf\u79cd\u5e73\u53f0\u5185\u90e8\u7b97 T \u76f8\u5bf9 B \u7684\u6548\u5e94<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u518d\u8de8\u5e73\u53f0\u6838\u5bf9\u65b9\u5411\u548c\u540d\u6b21<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>\u4e3a\u4ec0\u4e48\u8fd8\u8981\u8bfb\u6df1\u5ea6\u8868\u548c\u539f\u59cb\u8ba1\u6570<\/h2>\n<p>\u5728 cell_depths.tsv \u4e2d\u7b5b\u9009\u540c\u4e00\u4f9b\u8005\u540c\u4e00\u5927\u7c7b\uff0c\u6bd4\u8f83\u6bcf\u9897\u7ec6\u80de\u6d4b\u5230\u7684\u5171\u540c\u57fa\u56e0\u6570\u548c\u6bd4\u5bf9\u8bfb\u6bb5\u6570\uff0c\u518d\u7528\u539f\u751f\u5355\u4f4d\u770b\u5404\u5e73\u53f0\u5404\u81ea\u7684\u6587\u5e93\u5927\u5c0f\u3002\u82e5\u5176\u4e2d\u4e00\u8fb9\u7684\u7ec6\u80de\u666e\u904d\u8bfb\u5f97\u66f4\u6df1\uff0c\u989d\u5916\u68c0\u51fa\u7684\u4f4e\u8868\u8fbe\u57fa\u56e0\u53ef\u80fd\u53d7\u89c2\u5bdf\u673a\u4f1a\u589e\u52a0\u5f71\u54cd\u3002\u82e5\u5e0c\u671b\u6bd4\u8f83\u56fa\u5b9a\u8bfb\u6df1\u4e0b\u7684\u654f\u611f\u6027\uff0c\u5e94\u5728\u4e0a\u6e38\u540c\u4e00\u8bfb\u6bb5\u53e3\u5f84\u4e0b\u62bd\u6837\u5e76\u91cd\u65b0\u8ba1\u6570\uff0c\u4fdd\u7559\u8f6f\u4ef6\u7248\u672c\u3001\u8bfb\u6bb5\u5206\u914d\u548c\u53bb\u91cd\u7b56\u7565\u3002\u628a\u4e00\u8fb9\u7684\u5206\u5b50\u8ba1\u6570\u548c\u53e6\u4e00\u8fb9\u7684\u8bfb\u6bb5\u8ba1\u6570\u5404\u62bd\u5230\u4e00\u6837\u7684\u603b\u6574\u6570\uff0c\u4e0d\u80fd\u4fdd\u8bc1\u4e24\u8fb9\u7ecf\u5386\u4e86\u76f8\u540c\u7684\u6d4b\u5e8f\u6295\u5165\u3002\u6ca1\u6709\u539f\u59cb\u8bfb\u6bb5\u65f6\u4e5f\u53ef\u4ee5\u505a\u63cf\u8ff0\u6027\u5206\u5c42\u6bd4\u8f83\uff0c\u628a\u7f3a\u5c11\u7684\u4e0a\u6e38\u6570\u636e\u548c\u5df2\u6709\u8bc1\u636e\u8bf4\u6e05\u695a\u3002<\/p>\n<p>\u8fd8\u6709\u4e00\u4e2a\u5e38\u88ab\u5ffd\u7565\u7684\u7ec6\u8282\u3002\u67d0\u4e2a\u9ad8\u8868\u8fbe\u57fa\u56e0\u5360\u636e\u8f83\u5927\u6bd4\u4f8b\u65f6\uff0c\u6bcf\u4e07\u5f52\u4e00\u5316\u4f1a\u5f71\u54cd\u540c\u4e00\u7ec6\u80de\u5185\u5176\u4ed6\u57fa\u56e0\u7684\u76f8\u5bf9\u91cf\u3002\u8bfb\u6bb5\u6570\u636e\u8fd8\u53ef\u80fd\u53d7\u8f6c\u5f55\u672c\u957f\u5ea6\u548c\u6269\u589e\u5dee\u5f02\u5f71\u54cd\u3002\u5373\u4f7f\u628a\u4e24\u4e2a\u5e73\u53f0\u90fd\u6362\u6210\u540c\u6837\u540d\u4e3a\u201c\u6bcf\u4e07\u201d\u7684\u6570\u503c\uff0c\u4e5f\u53ea\u80fd\u8868\u660e\u505a\u4e86\u76f8\u540c\u5f62\u5f0f\u7684\u7f29\u653e\uff0c\u539f\u8f6f\u4ef6\u548c\u6280\u672f\u4ea7\u751f\u7684\u5355\u4f4d\u5e76\u672a\u56e0\u6b64\u7b49\u4ef7\u3002\u8bfb\u8005\u82e5\u8981\u6311\u4e00\u4e2a\u9002\u5408\u8de8\u5e73\u53f0\u7ec6\u80de\u6ce8\u91ca\u7684\u6807\u8bb0\uff0c\u901a\u5e38\u66f4\u5173\u5fc3\u5b83\u80fd\u5426\u5728\u53cc\u65b9\u7684\u76ee\u6807\u8c31\u7cfb\u5185\u89c1\u5230\uff0c\u5e76\u5728\u540c\u5e73\u53f0\u7684\u5176\u4ed6\u8c31\u7cfb\u4e2d\u76f8\u5bf9\u8f83\u4f4e\uff0c\u800c\u975e\u4e24\u4e2a\u77e9\u9635\u7684\u7edd\u5bf9\u5747\u503c\u662f\u5426\u5b8c\u5168\u4e00\u81f4\u3002<\/p>\n<p>\u82e5\u5e73\u677f\u6d4b\u5e8f\u63d0\u4f9b\u4e86\u7a7a\u5b54\u6216\u52a0\u6837\u5bf9\u7167\uff0c\u8fd8\u53ef\u4ee5\u68c0\u67e5\u67d0\u4e2a\u4f4e\u4e30\u5ea6\u57fa\u56e0\u7684\u96f6\u661f\u8bfb\u6bb5\u662f\u5426\u4e5f\u51fa\u73b0\u5728\u8fd9\u4e9b\u5b54\u4e2d\uff1b\u6db2\u6ef4\u5b9e\u9a8c\u5219\u5e94\u56de\u770b\u76f8\u5e94\u7684\u7a7a\u6db2\u6ef4\u6216\u80cc\u666f\u4fe1\u53f7\u3002\u4e24\u7c7b\u5bf9\u7167\u6765\u6e90\u4e0d\u540c\uff0c\u9002\u5408\u7528\u6765\u5404\u81ea\u6392\u67e5\u5fae\u5f31\u68c0\u51fa\u7684\u53ef\u4fe1\u5ea6\u3002\u628a\u8fd9\u7c7b\u590d\u6838\u8bb0\u5f55\u548c\u6570\u636e\u4e2d\u7684\u9633\u6027\u6761\u7801\u4e00\u8d77\u4fdd\u5b58\uff0c\u6709\u52a9\u4e8e\u51b3\u5b9a\u662f\u5426\u503c\u5f97\u505a\u66f4\u6df1\u5165\u7684\u8de8\u5e73\u53f0\u9a8c\u8bc1\u3002<\/p>\n<h2>\u5148\u5728\u6bcf\u4e2a\u5e73\u53f0\u5185\u90e8\u6392\u6807\u8bb0\uff0c\u518d\u505a\u4ea4\u53c9\u6838\u5bf9<\/h2>\n<p>rank_markers \u51fd\u6570\u5148\u7528\u8be5\u5e73\u53f0\u6bcf\u9897\u7ec6\u80de\u5b8c\u6574\u77e9\u9635\u7684\u5217\u603b\u91cf\u5f52\u4e00\u5316\uff0c\u5bf9 T \u548c B \u5206\u522b\u6c42\u5e73\u5747\u5e76\u52a0\u4e00\u4e2a\u5355\u4f4d\uff0c\u518d\u8ba1\u7b97\u5bf9\u6570\u6bd4\uff0c\u53ea\u5bf9\u53cc\u65b9\u5171\u540c\u57fa\u56e0\u6392\u540d\u3002\u5f52\u4e00\u5316\u7684\u5206\u6bcd\u5305\u542b\u672c\u5e73\u53f0\u72ec\u6709\u7684\u57fa\u56e0\uff0c\u907f\u514d\u4e3a\u4e86\u6392\u4e00\u5f20\u4ea4\u96c6\u540d\u5355\uff0c\u53cd\u8fc7\u6765\u6539\u53d8\u539f\u6765\u6bcf\u4e2a\u7ec6\u80de\u7684\u8ba1\u6570\u53e3\u5f84\u3002\u7ec3\u4e60\u7684\u4e24\u4e2a\u5e73\u53f0\u5206\u522b\u8ba1\u7b97\u4ee5\u540e\uff0c\u524d\u4e09\u540d\u90fd\u4f9d\u6b21\u4e3a CD3D\u3001TRAC\u3001IL7R\u3002\u5355\u4e2a\u4f4e\u8868\u8fbe\u57fa\u56e0\u7684\u68c0\u51fa\u5dee\u522b\u5f88\u5927\u548c\u4e00\u5957\u4e3b\u8981\u8c31\u7cfb\u6807\u8bb0\u4fdd\u6301\u76f8\u540c\u65b9\u5411\uff0c\u53ef\u4ee5\u51fa\u73b0\u5728\u540c\u4e00\u7ec4\u6570\u636e\u91cc\uff1b\u524d\u8005\u63d0\u793a\u5bf9\u6d4b\u91cf\u6761\u4ef6\u654f\u611f\uff0c\u540e\u8005\u63d0\u4f9b\u6838\u5bf9\u6ce8\u91ca\u7684\u7ebf\u7d22\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 rank_markers(counts, depth, case, reference, gene_ids):\n    if not case.any() or not reference.any():return []\n    norm=counts.multiply(10000\/depth).tocsr()\n    mean_a=np.asarray(norm[:,case].mean(axis=1)).ravel()\n    mean_b=np.asarray(norm[:,reference].mean(axis=1)).ravel()\n    effect=np.log2((mean_a+1)\/(mean_b+1))\n    order=sorted(range(len(effect)),key=lambda j:(-effect[j],gene_ids[j]))\n    return [(rank,gene_ids[j],float(effect[j])) for rank,j in enumerate(order,1)]\n<\/code><\/pre>\n<p>\u81ea\u5df1\u505a\u4e00\u6b21\u53cd\u67e5\u3002\u6253\u5f00\u67d0\u4f4d\u4f9b\u8005\u5355\u72ec\u7684 marker_ranks.tsv \u884c\uff0c\u4e0d\u770b\u5168\u4f53\u7684\u540d\u6b21\uff0c\u5148\u627e\u5230\u524d\u4e09\u540d\u5728\u4e24\u4fa7\u5404\u6392\u5728\u54ea\u91cc\uff0c\u518d\u628a\u5176\u4e2d\u4e00\u4e2a\u57fa\u56e0\u7684\u68c0\u51fa\u6bd4\u4f8b\u548c\u4e24\u79cd\u539f\u5355\u4f4d\u603b\u91cf\u5e76\u6392\u3002\u82e5\u4e24\u4e2a\u5e73\u53f0\u7684\u4e3b\u6807\u8bb0\u65b9\u5411\u90fd\u53d8\u4e86\uff0c\u5e94\u4f18\u5148\u6838\u5bf9\u7ec6\u80de\u540d\u662f\u5426\u6620\u5c04\u5230\u540c\u4e00\u5927\u7c7b\uff0c\u662f\u5426\u6709\u5e73\u53f0\u72ec\u6709\u7684\u4e9a\u7fa4\u6bd4\u4f8b\u3001\u7279\u5f81\u9884\u8fc7\u6ee4\u6216\u6df7\u6dc6\u6837\u672c\u3002\u82e5\u53ea\u6709\u63a5\u8fd1\u68c0\u51fa\u4e0b\u9650\u7684\u57fa\u56e0\u53d1\u751f\u53d8\u5316\uff0c\u4fdd\u7559\u9010\u4f9b\u8005\u56fe\u4f5c\u4e3a\u6280\u672f\u6761\u4ef6\u654f\u611f\u7684\u8bc1\u636e\u3002\u8fd9\u6837\u5408\u4f5c\u8005\u53ef\u4ee5\u636e\u5b9e\u533a\u5206\u201c\u8fd9\u6b21\u6d4b\u91cf\u91cc\u66f4\u5e38\u89c1\u201d\u548c\u201c\u8fd9\u7c7b\u7ec6\u80de\u4e00\u5b9a\u8868\u8fbe\u66f4\u591a\u201d\u3002\u9700\u8981\u5728\u591a\u6279\u6587\u5e93\u4e0a\u505a\u8bfb\u6bb5\u62bd\u6837\u548c\u91cd\u8ba1\u6570\u65f6\uff0c\u518d\u6309\u7167\u5b9e\u6d4b\u7684\u5355\u6279\u8017\u65f6\u4e0e\u5b58\u50a8\u5b89\u6392<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>\u62ff\u4e24\u4efd\u4e0d\u540c\u8ba1\u6570\u5355\u4f4d\u7684\u8868\u8fbe\u77e9\u9635\uff0c\u53ea\u5728\u5171\u540c\u57fa\u56e0\u3001\u76f8\u540c\u4f9b\u8005\u548c\u53ef\u4fe1\u7ec6\u80de\u5927\u7c7b\u4e2d\u6838\u5bf9\u8bfb\u6df1\u3001\u68c0\u6d4b\u6bd4\u4f8b\u548c\u5e73\u53f0\u5185\u90e8\u7684\u6807\u8bb0\u6392\u5e8f\u3002<\/p>\n","protected":false},"author":1,"featured_media":71678,"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-71681","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-034-tenx-smartseq2-detection.png?fit=1240%2C800&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/71681","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=71681"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/71681\/revisions"}],"predecessor-version":[{"id":73675,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/71681\/revisions\/73675"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/71678"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=71681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=71681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=71681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}