{"id":72116,"date":"2026-11-17T13:34:32","date_gmt":"2026-11-17T05:34:32","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=72116"},"modified":"2026-11-17T13:34:32","modified_gmt":"2026-11-17T05:34:32","slug":"ysx-sc-practice-068-cellrank-fate-probabilities","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/ysx-sc-practice-068-cellrank-fate-probabilities\/","title":{"rendered":"\u9aa8\u9ad3\u91cc\u4e00\u7fa4\u7956\u7ec6\u80de\u66f4\u504f\u5411\u54ea\u6761\u8c31\u7cfb\uff1f\u600e\u6837\u8bfb CellRank \u7684\u547d\u8fd0\u6982\u7387\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>\u5982\u679c\u4e00\u4e2a\u9aa8\u9ad3\u7956\u7ec6\u80de\u65c1\u8fb9\u5199\u7740\u201c\u7ea2\u7cfb 0.63\u201d\uff0c\u5728\u7ec4\u4f1a\u4e0a\u4f60\u4f1a\u600e\u4e48\u89e3\u91ca\uff1f\u6709\u4eba\u4f1a\u628a\u5b83\u8bfb\u6210\u201c\u8fd9\u4e2a\u7ec6\u80de\u5df2\u7ecf\u662f\u7ea2\u7cfb\u201d\uff0c\u6709\u4eba\u4f1a\u62ff\u6574\u6279\u7956\u7ec6\u80de\u7684\u5e73\u5747\u6570\u53bb\u9884\u6d4b\u57f9\u517b\u76bf\u91cc\u80fd\u957f\u51fa\u591a\u5c11\u7ea2\u7ec6\u80de\u3002\u8981\u56de\u7b54\u8fd9\u4e24\u4e2a\u95ee\u9898\uff0c\u5148\u628a\u56fe\u4e0a\u7684\u5c0f\u6570\u8ffd\u5230\u5b83\u7684\u51fa\u751f\u5730\u3002\u5728\u8fd9\u7bc7\u7ec3\u4e60\u91cc\uff0c\u4f60\u4f1a\u4eb2\u624b\u627e\u5230\u4e00\u4e2a\u7ea2\u7cfb\u6982\u7387\u7ea6\u4e3a\u96f6\u70b9\u516d\u4e09\u7684\u6761\u7801\uff0c\u6cbf\u7740\u5b83\u6838\u5bf9\u65b9\u5411\u5148\u9a8c\u3001\u7ec8\u672b\u7ec6\u80de\u548c\u540c\u4e00\u6761\u7801\u7684\u7b2c\u4e8c\u6b21\u62df\u5408\u3002\u7b49\u8fd9\u4e9b\u4e1c\u897f\u90fd\u770b\u6e05\u695a\uff0c\u518d\u51b3\u5b9a\u7ed3\u679c\u91cc\u54ea\u4e9b\u5b57\u503c\u5f97\u5199\u8fdb\u8bba\u6587\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=\"\u9aa8\u9ad3\u5206\u53c9\u6559\u5b66\u56fe\uff0c\u5bf9\u7167\u4e24\u5957\u7ec8\u672b\u5b9a\u4e49\u548c\u4e00\u767e\u516d\u5341\u4e2a\u7956\u7ec6\u80de\u7684\u7ea2\u7cfb\u5230\u8fbe\u6982\u7387\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-068-cellrank-fate-probabilities.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-068-cellrank-fate-probabilities.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-068-cellrank-fate-probabilities.pdf\">\u4e0b\u8f7d\u56fe\u6587\u64cd\u4f5c\u624b\u518c\uff08PDF\uff09<\/a><\/p>\n<h2>\u4ece\u4e00\u9897\u7956\u7ec6\u80de\u5f00\u59cb\u8bfb<\/h2>\n<p>\u4e0b\u8f7d\u5305\u4e2d\u7684\u9aa8\u9ad3\u5206\u53c9\u662f\u6559\u5b66\u6a21\u62df\uff0c\u56db\u4e2a\u6a21\u62df\u4f9b\u8005\u5404\u6709\u4e00\u767e\u4e8c\u5341\u4e2a\u7ec6\u80de\uff0c\u6bcf\u4eba\u90fd\u53d6\u56db\u5341\u4e2a\u65e9\u671f\u3001\u56db\u5341\u4e2a\u7ea2\u7cfb\u652f\u8def\u548c\u56db\u5341\u4e2a\u9ad3\u7cfb\u652f\u8def\u7ec6\u80de\u3002\u6253\u5f00\u8f93\u5165\u8868\uff0c\u627e\u5230\u7b2c\u4e00\u4f4d\u4f9b\u8005\u7684\u7b2c\u4e00\u4e2a\u6761\u7801\u3002\u5b83\u68c0\u6d4b\u5230\u4e03\u4e2a CD34 \u5206\u5b50\uff0c\u4e00\u4e2a ALAS2 \u5206\u5b50\uff0cHBB \u548c\u4e24\u4e2a\u9ad3\u7cfb\u6807\u8bb0\u5747\u4e3a\u96f6\u3002\u4ec5\u51ed\u8fd9\u4e9b\u8ba1\u6570\uff0c\u5f88\u96be\u7ed9\u8fd9\u9897\u65e9\u671f\u7ec6\u80de\u5b89\u6392\u6210\u719f\u5f52\u5bbf\u3002\u67e5\u770b\u62df\u5408\u6982\u7387\u8868\uff0c\u540c\u4e00\u6761\u7801\u5728\u4e25\u683c\u6761\u4ef6\u4e0b\u901a\u5f80\u7ea2\u7cfb\u7684\u503c\u7ea6\u4e3a\u96f6\u70b9\u516d\u4e8c\u4e5d\uff0c\u901a\u5f80\u9ad3\u7cfb\u7684\u503c\u7ea6\u4e3a\u96f6\u70b9\u4e09\u4e03\u4e00\u3002\u4e24\u4e2a\u6570\u5b57\u5408\u8d77\u6765\u63a5\u8fd1\u4e00\uff0c\u5206\u522b\u4fdd\u7559\u4f1a\u6bd4\u7ed9\u8868\u683c\u518d\u52a0\u4e00\u5217\u201c\u7ea2\u7cfb\u7ec6\u80de\u201d\u66f4\u65b9\u4fbf\u590d\u6838\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u6b64\u523b\u770b\u8d77\u6765\u50cf\u7956\u7ec6\u80de\uff0c\u6a21\u578b\u5374\u6709\u4e00\u4e9b\u65b9\u5411\u4e0a\u7684\u504f\u597d\uff1f\u8fd9\u91cc\u7684\u56fe\u628a\u72b6\u6001\u76f8\u8fd1\u7684\u7ec6\u80de\u8fde\u63a5\u8d77\u6765\uff0c\u5148\u9a8c\u65f6\u95f4\u7ed9\u8fd9\u4e9b\u8def\u5f84\u63d0\u4f9b\u524d\u8fdb\u7684\u503e\u5411\u3002\u4ece\u8fd9\u4e2a\u6761\u7801\u51fa\u53d1\uff0c\u6cbf\u6709\u5411\u8f6c\u79fb\u8d70\uff0c\u8f83\u5bb9\u6613\u5148\u5230\u8fbe\u88ab\u6307\u5b9a\u4e3a\u7ea2\u7cfb\u7684\u90a3\u6279\u7ec8\u672b\u7ec6\u80de\u3002CellRank \u89e3\u7684\u662f\u8fd9\u5f20\u56fe\u4e0a\u7684\u5438\u6536\u6982\u7387\uff1b\u53ea\u8981\u6539\u53d8\u54ea\u4e9b\u8282\u70b9\u88ab\u8bbe\u4e3a\u7ec8\u70b9\u3001\u54ea\u4e9b\u90bb\u5c45\u5141\u8bb8\u8fde\u8fb9\u6216\u8005\u54ea\u4e00\u5934\u662f\u8f83\u665a\u72b6\u6001\uff0c\u51fa\u53d1\u6761\u7801\u7684\u7ed3\u679c\u5c31\u53ef\u80fd\u53d8\u5316\u3002\u5b9e\u9a8c\u6ca1\u6709\u8ffd\u8e2a\u5355\u9897\u7ec6\u80de\u7684\u540e\u4ee3\uff0c\u6240\u4ee5\u8fd9\u4e2a\u6570\u5b57\u8fd8\u9700\u8981\u72ec\u7acb\u7684\u8c31\u7cfb\u4fe1\u606f\u6765\u68c0\u9a8c\u3002<a href=\"https:\/\/cellrank.readthedocs.io\/en\/stable\/notebooks\/tutorials\/estimators\/700_fate_probabilities.html\">CellRank \u5b98\u65b9\u547d\u8fd0\u6982\u7387\u793a\u4f8b<\/a><\/p>\n<h2>\u5728\u540c\u4e00\u5f20\u56fe\u4e0a\u5708\u4e24\u5957\u7ec8\u672b<\/h2>\n<p>\u7ec3\u4e60\u523b\u610f\u628a\u8fde\u8fb9\u5750\u6807\u3001\u65e9\u665a\u4f9d\u636e\u548c\u7528\u4e8e\u5708\u7ec8\u672b\u7684\u6807\u8bb0\u5206\u5f00\u653e\u3002\u4e24\u5217\u51e0\u4f55\u5750\u6807\u6765\u81ea\u6a21\u62df\u5668\u63d0\u4f9b\u7684\u5206\u53c9\u72b6\u6001\uff0c\u6bcf\u4e2a\u7ec6\u80de\u9009\u53d6\u53c2\u6570\u4e3a\u4e8c\u5341\u4e8c\u7684\u8fd1\u90bb\u56fe\uff0c\u65b9\u5411\u7528\u6a21\u62df\u5668\u7ed9\u5b9a\u7684\u76f8\u5bf9\u65f6\u95f4\u3002\u4e94\u4e2a\u6807\u8bb0\u8ba1\u6570\u7528\u4e8e\u89e3\u91ca\u548c\u9009\u62e9\u7ec8\u672b\u3002\u5df2\u77e5\u6a21\u62df\u6807\u7b7e\u7528\u4e8e\u4e8b\u540e\u5206\u7ec4\uff0c\u4e0d\u4f20\u7ed9\u4f30\u8ba1\u5668\u3002\u8fd9\u79cd\u5b89\u6392\u65b9\u4fbf\u5728\u4e24\u6b21\u8bd5\u9a8c\u95f4\u628a\u53d8\u91cf\u9501\u4f4f\uff1b\u771f\u5b9e\u9aa8\u9ad3\u91cc\u7528\u8868\u8fbe\u4f30\u8ba1\u4f4e\u7ef4\u5750\u6807\uff0c\u53c8\u7528\u540c\u4e00\u7ec4\u57fa\u56e0\u9a8c\u8bc1\u8f68\u8ff9\uff0c\u5c31\u4e0d\u80fd\u7167\u642c\u8fd9\u91cc\u7684\u72ec\u7acb\u7a0b\u5ea6\u3002\u53ef\u4ee5\u6539\u7528\u53e6\u5916\u4e00\u5957\u6709\u5b9e\u9a8c\u4f9d\u636e\u7684\u6807\u8bb0\uff0c\u6216\u5728\u6784\u56fe\u65f6\u6682\u65f6\u79fb\u9664\u5f85\u9a8c\u8bc1\u6807\u8bb0\uff0c\u770b\u770b\u4e3b\u8981\u8def\u5f84\u662f\u5426\u8fd8\u5728\u3002<\/p>\n<p>\u7ed9\u7ea2\u7cfb\u7ec8\u672b\u540c\u65f6\u8981\u6c42 HBB\u3001ALAS2 \u8fbe\u5230\u4e0b\u9650\uff0cLYZ\u3001S100A8 \u5747\u4f4e\u4e8e\u4e09\u3002\u7ed9\u9ad3\u7cfb\u7ec8\u672b\u5219\u4ea4\u6362\u4e24\u5bf9\u6807\u8bb0\u3002\u4e25\u683c\u5b9a\u4e49\u8981\u6c42\u76f8\u5bf9\u65f6\u95f4\u81f3\u5c11\u96f6\u70b9\u516b\u516b\uff0c\u6b63\u6807\u8bb0\u8ba1\u6570\u81f3\u5c11\u4e03\u3002\u8f83\u5bbd\u5b9a\u4e49\u628a\u65f6\u95f4\u4e0b\u9650\u8c03\u81f3\u96f6\u70b9\u4e03\u56db\uff0c\u8ba1\u6570\u4e0b\u9650\u8c03\u81f3\u56db\uff0c\u8d1f\u6807\u8bb0\u89c4\u5219\u7ef4\u6301\u4e00\u81f4\u3002\u5148\u770b\u4e24\u5957\u5b9a\u4e49\u5404\u81ea\u5708\u4e2d\u591a\u5c11\u6761\u7801\u3001\u6765\u81ea\u54ea\u4e9b\u4f9b\u8005\uff0c\u518d\u770b\u6539\u53d8\u5708\u6cd5\u540e\u7956\u7ec6\u80de\u7684\u7ed3\u679c\u3002\u4e0b\u9762\u7684\u4ee3\u7801\u76f4\u63a5\u53d6\u81ea\u62df\u5408\u811a\u672c\uff0c\u628a\u65f6\u95f4\u548c\u5206\u5b50\u9608\u503c\u5199\u5728\u51fd\u6570\u53c2\u6570\u91cc\uff0c\u590d\u5236\u5230\u65b0\u6837\u672c\u65f6\u53ef\u4ee5\u770b\u89c1\u6bcf\u4e00\u6b21\u4fee\u6539\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 terminal_groups(t,cut,min_marker):\n    late=t.time_prior&gt;=cut\n    erythroid=t.index[late&amp;(t.HBB&gt;=min_marker)&amp;(t.ALAS2&gt;=min_marker)&amp;(t.LYZ&lt;3)&amp;(t.S100A8&lt;3)]\n    myeloid=t.index[late&amp;(t.LYZ&gt;=min_marker)&amp;(t.S100A8&gt;=min_marker)&amp;(t.HBB&lt;3)&amp;(t.ALAS2&lt;3)]\n    if not len(erythroid) or not len(myeloid):raise ValueError(&quot;Missing independently marked terminals.&quot;)\n    return {&quot;erythroid&quot;:list(erythroid),&quot;myeloid&quot;:list(myeloid)}\n<\/code><\/pre>\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:#ffebc5\">\u68c0\u67e5\u5bf9\u8c61<\/th>\n<th style=\"padding:9px;text-align:left;background:#ffebc5\">\u4e25\u683c\u5b9a\u4e49<\/th>\n<th style=\"padding:9px;text-align:left;background:#ffebc5\">\u8f83\u5bbd\u5b9a\u4e49<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u7ea2\u7cfb\u7ec8\u672b\u6761\u7801<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">32 \u4e2a<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">72 \u4e2a<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u9ad3\u7cfb\u7ec8\u672b\u6761\u7801<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">29 \u4e2a<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">57 \u4e2a<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u7528\u4e8e\u8ba1\u7b97\u7684\u6709\u5411\u56fe<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u540c\u4e00\u6279 480 \u4e2a\u7ec6\u80de<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u6cbf\u7528\u540c\u4e00\u8f6c\u79fb\u77e9\u9635<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u7528\u4e8e\u6bd4\u8f83\u7684\u7956\u7ec6\u80de<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u540c\u4e00\u6279 160 \u4e2a<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u6309\u6761\u7801\u4e00\u4e00\u914d\u5bf9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u5708\u7ec8\u672b\u65f6\u5bb9\u6613\u51fa\u73b0\u4e00\u4e2a\u8bef\u89e3\u3002\u67d0\u4e2a\u4f5c\u4e3a\u7ea2\u7cfb\u7ec8\u70b9\u7684\u7ec6\u80de\u5f97\u5230\u7ea2\u7cfb\u6982\u7387\u4e00\uff0c\u8fd9\u662f\u6c42\u89e3\u65f6\u7ed9\u51fa\u7684\u8fb9\u754c\u6761\u4ef6\u3002\u628a\u6240\u6709\u8fd9\u4e9b\u70b9\u6d82\u6210\u6700\u4eae\u7684\u8272\u5757\uff0c\u4e0d\u80fd\u518d\u62ff\u540c\u4e00\u4e2a\u8272\u5757\u8bc1\u660e\u7ea2\u7cfb\u6807\u8bb0\u6709\u9884\u6d4b\u80fd\u529b\u3002\u56fe\u4e0a\u7528\u6a59\u8272\u7a7a\u5fc3\u5708\u6807\u51fa\u4e86\u88ab\u6307\u5b9a\u7684\u7ec8\u672b\uff0c\u53ef\u4ee5\u5148\u906e\u4f4f\u5b83\u4eec\uff0c\u518d\u770b\u5c1a\u672a\u53c2\u4e0e\u5708\u5b9a\u7684\u8fc7\u6e21\u533a\u3002\u4e00\u4e2a\u4f9b\u8005\u5982\u679c\u72ec\u5360\u4e86\u4e00\u6761\u5206\u652f\u7684\u7ec8\u672b\uff0c\u6700\u597d\u628a\u8fd9\u9879\u4fe1\u606f\u76f4\u63a5\u5199\u8fdb\u56fe\u6ce8\uff0c\u5e76\u5728\u53e6\u4e00\u4e2a\u4f9b\u8005\u7684\u72ec\u7acb\u6570\u636e\u4e2d\u67e5\u770b\u76f8\u5e94\u6807\u8bb0\uff0c\u800c\u4e0d\u662f\u901a\u8fc7\u589e\u52a0\u989c\u8272\u5c42\u6b21\u6765\u52a0\u5f3a\u4fe1\u5fc3\u3002<\/p>\n<h2>\u62c6\u5f00\u4e00\u4e2a\u6982\u7387\u5c0f\u6570\u7684\u4e09\u9879\u68c0\u67e5<\/h2>\n<p>\u89e3\u538b\u540e\u5b89\u88c5\u57fa\u7840\u4f9d\u8d56\uff0c\u5148\u8fd0\u884c\u590d\u6838\u811a\u672c\u3002\u5b83\u8bfb\u5165\u5df2\u7528 CellRank \u62df\u5408\u7684\u4e24\u5957\u5b8c\u6574\u7ed3\u679c\uff0c\u6838\u5bf9\u6982\u7387\u8303\u56f4\u3001\u6bcf\u884c\u4e4b\u548c\u548c\u6761\u7801\u96c6\u5408\uff0c\u518d\u6838\u5bf9\u6bcf\u4e2a\u7ec8\u672b\u6761\u7801\u5728\u6307\u5b9a\u8c31\u7cfb\u7684\u8fb9\u754c\u503c\u3002\u62df\u5408\u7528\u7684\u7a00\u758f\u8f6c\u79fb\u77e9\u9635\u4e5f\u4e00\u5e76\u63d0\u4f9b\uff0c\u53ef\u4ee5\u68c0\u67e5\u884c\u6570\u662f\u5426\u7b49\u4e8e\u8f93\u5165\u7ec6\u80de\u6570\u3001\u6bcf\u884c\u8f6c\u79fb\u6743\u91cd\u662f\u5426\u5f52\u4e00\u3002\u82e5\u8981\u4ece\u8f93\u5165\u91cd\u65b0\u8ba1\u7b97\uff0c\u53e6\u88c5\u62df\u5408\u4f9d\u8d56\uff0c\u5728\u4e00\u4e2a\u65b0\u6587\u4ef6\u5939\u91cc\u8f93\u51fa\u7ed3\u679c\uff0c\u4fdd\u7559\u539f\u5305\u4e2d\u7684\u62df\u5408\u8868\u4f9b\u6bd4\u5bf9\u3002\u4e0b\u8f7d\u5305\u5185\u4fdd\u7559\u4e86\u5b9e\u9645\u8fd0\u884c\u65f6\u7684\u8f6f\u4ef6\u7248\u672c\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\npython -m pip install -r requirements-refit.txt\npython fit_cellrank.py example example\/fit-new\n<\/code><\/pre>\n<p>\u7b2c\u4e00\u6b21\u68c0\u67e5\u9488\u5bf9\u8868\u662f\u5426\u5b8c\u6574\u3002\u540c\u4e00\u7ec6\u80de\u5728\u6982\u7387\u8868\u4e2d\u51fa\u73b0\u4e24\u884c\uff0c\u662f\u4e24\u4e2a\u4e0d\u540c\u8bbe\u5b9a\uff1b\u5982\u679c\u4e00\u79cd\u8bbe\u5b9a\u91cc\u51fa\u73b0\u4e24\u884c\u76f8\u540c\u6761\u7801\uff0c\u811a\u672c\u4f1a\u8981\u6c42\u67e5\u660e\u539f\u56e0\u3002\u6570\u503c\u4e2d\u6709\u7a7a\u7f3a\u65f6\uff0c\u5148\u627e\u6389\u4e86\u54ea\u6279\u7ec6\u80de\u3002\u628a\u7f3a\u5931\u8865\u4e3a\u96f6\uff0c\u4f1a\u5e73\u767d\u9020\u51fa\u201c\u8fd9\u4e2a\u7ec8\u672b\u4e0d\u53ef\u8fbe\u201d\u7684\u7ed3\u8bba\u3002\u5217\u540d\u4e5f\u8981\u6309\u8c31\u7cfb\u540d\u5bf9\u9f50\uff0c\u4e0d\u80fd\u51ed\u5bfc\u51fa\u8f6f\u4ef6\u78b0\u5de7\u628a\u7ea2\u7cfb\u5217\u6392\u5728\u7b2c\u4e00\u5217\uff0c\u5c31\u9ed8\u8ba4\u7b2c\u4e8c\u4efd\u6587\u4ef6\u7684\u7b2c\u4e00\u5217\u4ecd\u662f\u7ea2\u7cfb\u3002\u72ec\u7acb\u7ec3\u4e60\u65f6\u53ef\u590d\u5236\u6570\u636e\u5e76\u6253\u4e71\u5176\u4e2d\u4e00\u4efd\u8868\u7684\u884c\uff0c\u518d\u8fd0\u884c\u4e00\u6b21\uff0c\u6309\u6807\u8bc6\u7b26\u5408\u5e76\u5f97\u5230\u7684\u7ed3\u679c\u5e94\u4e00\u81f4\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 paired_probabilities(table):\n    if table.duplicated([&quot;barcode&quot;, &quot;definition&quot;]).any():\n        raise ValueError(&quot;A barcode has duplicate probability rows&quot;)\n    paired = table.pivot(index=&quot;barcode&quot;, columns=&quot;definition&quot;, values=&quot;erythroid&quot;)\n    if set(paired) != {&quot;strict&quot;, &quot;broader&quot;} or paired.isna().any().any():\n        raise ValueError(&quot;Both named definitions must include every barcode&quot;)\n    paired[&quot;absolute_change&quot;] = (paired.broader - paired.strict).abs()\n    paired[&quot;crossed_half&quot;] = (paired.broader &gt; .5) != (paired.strict &gt; .5)\n    return paired\n<\/code><\/pre>\n<p>\u7b2c\u4e8c\u6b21\u68c0\u67e5\u9488\u5bf9\u7956\u7ec6\u80de\u7684\u5206\u5e03\u3002\u4e25\u683c\u6761\u4ef6\u4e0b\uff0c\u4e00\u767e\u516d\u5341\u9897\u7956\u7ec6\u80de\u7684\u7ea2\u7cfb\u6982\u7387\u4e2d\u4f4d\u6570\u7ea6\u4e3a\u96f6\u70b9\u4e94\u4e5d\u4e09\uff0c\u7b2c\u5341\u3001\u7b2c\u4e5d\u5341\u767e\u5206\u4f4d\u7ea6\u4e3a\u96f6\u70b9\u4e94\u56db\u4e00\u548c\u96f6\u70b9\u516d\u516d\u4e09\u3002\u8fd9\u4e24\u4e2a\u767e\u5206\u4f4d\u8bf4\u7684\u662f\u8fd9\u4e9b\u6761\u7801\u5728\u6a21\u62df\u56fe\u4e0a\u7684\u5206\u5e03\u8303\u56f4\uff0c\u4e0d\u80fd\u66ff\u4ee3\u5355\u9897\u7ec6\u80de\u6982\u7387\u7684\u7f6e\u4fe1\u533a\u95f4\u3002\u6709\u65f6\u4f5c\u8005\u628a\u96f6\u70b9\u4e94\u5f53\u6210\u786c\u7ebf\uff0c\u8fc7\u7ebf\u5c31\u5206\u7ed9\u7ea2\u7cfb\u3002\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\u5982\u6b64\u5206\u7ec4\u4f1a\u4e22\u6389\u4e0d\u5c11\u4fe1\u606f\uff0c\u8bfb\u8005\u770b\u4e0d\u5230\u4e00\u9897\u63a5\u8fd1\u5747\u5206\u7684\u7956\u7ec6\u80de\u4e0e\u4e00\u4e2a\u51e0\u4e4e\u5df2\u7ecf\u8d70\u5230\u672b\u7aef\u7684\u7ec6\u80de\u4e4b\u95f4\u9694\u7740\u591a\u8fdc\u3002\u53ef\u4ee5\u540c\u65f6\u5217\u51fa\u4e24\u5217\u6982\u7387\u548c\u6982\u7387\u71b5\uff0c\u540e\u8005\u63a5\u8fd1\u4e00\u6bd4\u7279\u65f6\u8868\u793a\u4e24\u4e2a\u5019\u9009\u65b9\u5411\u8f83\u4e3a\u5747\u8861\u3002<\/p>\n<p>\u7b2c\u4e09\u6b21\u68c0\u67e5\u9488\u5bf9\u8c01\u53d8\u4e86\u3002\u9010\u6761\u7801\u6c42\u8f83\u5bbd\u548c\u4e25\u683c\u6761\u4ef6\u4e0b\u7684\u7ea2\u7cfb\u6982\u7387\u5dee\uff0c\u4e00\u767e\u516d\u5341\u9897\u7956\u7ec6\u80de\u4e2d\u7edd\u5bf9\u5dee\u4e2d\u4f4d\u6570\u7ea6\u4e3a\u96f6\u70b9\u96f6\u96f6\u96f6\u4e09\u516b\uff0c\u6700\u5927\u7ea6\u96f6\u70b9\u96f6\u96f6\u4e00\u4e09\u516d\uff0c\u6ca1\u6709\u6761\u7801\u56e0\u4e3a\u8fd9\u4e24\u5957\u6761\u4ef6\u8d8a\u8fc7\u96f6\u70b9\u4e94\u3002\u8fd9\u91cc\u80fd\u5199\u7684\u662f\u201c\u66f4\u6362\u8fd9\u7ec4\u5408\u7406\u7684\u7ec8\u672b\u8fb9\u754c\uff0c\u65e9\u671f\u6761\u7801\u7684\u7ed3\u679c\u63a5\u8fd1\u201d\u3002\u8fd8\u6709\u53ef\u80fd\u6f0f\u6389\u7b2c\u4e09\u6761\u8def\u5f84\uff0c\u56fe\u4e5f\u53ef\u80fd\u628a\u4e24\u79cd\u5f7c\u6b64\u9760\u8fd1\u7684\u72b6\u6001\u8fde\u9519\u3002\u672c\u4f8b\u53ea\u6270\u52a8\u4e86\u7ec8\u672b\u5b9a\u4e49\uff0c\u672a\u68c0\u9a8c\u65b9\u5411\u4f9d\u636e\u3001\u8fd1\u90bb\u5927\u5c0f\u3001\u7a00\u758f\u91c7\u6837\u6216\u672a\u89c2\u5bdf\u7fa4\u4f53\u3002\u628a\u6bcf\u4e00\u79cd\u5b9e\u9645\u8bd5\u8fc7\u7684\u8bbe\u5b9a\u5199\u51fa\u6765\uff0c\u6bd4\u7ed9\u7ed3\u679c\u7b3c\u7edf\u8d34\u4e00\u4e2a\u201c\u7a33\u5b9a\u201d\u6807\u7b7e\u66f4\u51c6\u786e\u3002<\/p>\n<h2>\u6362\u6210\u81ea\u5df1\u7684\u9aa8\u9ad3\u6570\u636e<\/h2>\n<p>\u5148\u5728\u6837\u672c\u6e05\u5355\u91cc\u533a\u5206\u4f9b\u8005\u3001\u6279\u6b21\u3001\u65f6\u95f4\u548c\u91c7\u6750\u6761\u4ef6\u3002\u8bb0\u5f55\u54ea\u4e9b\u8c31\u7cfb\u5728\u5b9e\u9a8c\u8bbe\u8ba1\u4e0a\u6709\u673a\u4f1a\u88ab\u6355\u6349\uff0c\u54ea\u4e9b\u672b\u7aef\u7ec6\u80de\u53ef\u80fd\u56e0\u5206\u9009\u3001\u88c2\u7ea2\u3001\u5bcc\u96c6\u6216\u5efa\u5e93\u800c\u53d8\u5c11\u3002\u82e5\u53d6\u6750\u53ea\u8986\u76d6\u65e9\u671f\u72b6\u6001\uff0c\u5e94\u8be5\u5148\u7f29\u5c0f\u95ee\u9898\uff0c\u4f8b\u5982\u89c2\u5bdf\u65e9\u671f\u7ec6\u80de\u5728\u5df2\u6d4b\u901a\u8def\u4e4b\u95f4\u7684\u76f8\u5bf9\u503e\u5411\uff1b\u8bad\u7ec3\u4e00\u4e2a\u6a21\u578b\u4e0d\u4f1a\u81ea\u52a8\u8865\u9f50\u6210\u719f\u7fa4\u7f3a\u53e3\u3002\u63a5\u7740\u4ee5\u6bcf\u540d\u4f9b\u8005\u4e3a\u5355\u4f4d\u753b\u7ec8\u672b\u6807\u8bb0\u4e0e\u8986\u76d6\uff0c\u7ed9\u6ca1\u6709\u652f\u6301\u7684\u4f9b\u8005\u7559\u7a7a\u3002\u628a\u5404\u4f9b\u8005\u7684\u4e2d\u4f4d\u6570\u548c\u7ec6\u80de\u6570\u5e76\u6392\uff0c\u80fd\u53d1\u73b0\u4e00\u4f4d\u4f9b\u8005\u62c9\u52a8\u5168\u90e8\u7ec6\u80de\u6c47\u603b\u7684\u60c5\u5f62\u3002\u82e5\u8981\u6bd4\u8f83\u6cbb\u7597\u524d\u540e\uff0c\u5b9e\u9a8c\u91cd\u590d\u6570\u6765\u81ea\u60a3\u8005\u53ca\u914d\u5bf9\u8bbe\u8ba1\uff0c\u4e0d\u80fd\u62ff\u6bcf\u9897\u7ec6\u80de\u7684\u6982\u7387\u5f53\u4f5c\u4e00\u540d\u65b0\u53d7\u8bd5\u8005\u3002<\/p>\n<p>\u82e5\u9879\u76ee\u76ee\u7684\u662f\u627e\u5230\u540e\u7eed\u5b9e\u9a8c\u5bf9\u8c61\uff0c\u53ef\u5148\u6311\u51fa\u4e24\u79cd\u7ec8\u672b\u5b9a\u4e49\u4e2d\u6392\u5e8f\u63a5\u8fd1\u3001\u5e76\u4e14\u5728\u591a\u4e2a\u4f9b\u8005\u90fd\u51fa\u73b0\u7684\u65e9\u671f\u4e9a\u7fa4\u3002\u518d\u5bfb\u627e\u5206\u9009\u65f6\u80fd\u6d4b\u7684\u8868\u9762\u6807\u8bb0\uff0c\u91c7\u7528\u72ec\u7acb\u57f9\u517b\u3001\u514b\u9686\u8ffd\u8e2a\u6216\u65f6\u95f4\u5206\u5c42\u53d6\u6750\u68c0\u9a8c\u5176\u4e2d\u7684\u9884\u6d4b\uff0c\u5e76\u8bb0\u5f55\u54ea\u4e9b\u5728\u9884\u671f\u53e6\u4e00\u4e2a\u65b9\u5411\u7684\u7ec6\u80de\u4e5f\u5e94\u5165\u7ec4\u5145\u5f53\u5bf9\u7167\u3002\u8fd9\u6837\u7684\u8bc1\u636e\u80fd\u628a\u201c\u4e00\u5f20\u56fe\u4e0a\u7684\u5230\u8fbe\u6982\u7387\u201d\u9010\u6b65\u63a5\u5230\u201c\u53ef\u89c2\u5bdf\u7684\u540e\u4ee3\u7ec4\u6210\u201d\u4e0a\u3002\u4e0b\u8f7d\u5305\u7684\u5c0f\u77e9\u9635\u9002\u5408\u5728\u7535\u8111\u4e0a\u628a\u4e24\u79cd\u5b9a\u4e49\u6765\u56de\u91cd\u8dd1\uff1b\u82e5\u8981\u4e3a\u591a\u4e2a\u6837\u672c\u5206\u522b\u4fdd\u7559\u6574\u5f20\u7a00\u758f\u8f6c\u79fb\u56fe\u548c\u591a\u5957\u62df\u5408\uff0c\u53ef\u4ee5\u5728<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/compute-services\/\">\u4e91\u751f\u4fe1\u79d1\u7814\u670d\u52a1\u5668\u79df\u8d41<\/a>\u4e0a\u6309\u4f9b\u8005\u4fdd\u5b58\u56fe\u3001\u7ec8\u672b\u6e05\u5355\u53ca\u7248\u672c\uff0c\u518d\u9010\u6761\u7801\u6c47\u603b\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece\u540c\u4e00\u5f20\u6709\u5411\u90bb\u5c45\u56fe\u51fa\u53d1\uff0c\u7528\u4e24\u5957\u7ec8\u672b\u6807\u8bb0\u89c4\u5219\u771f\u6b63\u8fd0\u884c CellRank\uff0c\u9010\u4e2a\u6838\u5bf9\u7956\u7ec6\u80de\u6982\u7387\u3001\u672b\u7aef\u6761\u7801\u4ee5\u53ca\u6a21\u578b\u5bf9\u89c4\u5219\u53d8\u5316\u7684\u654f\u611f\u5ea6\u3002<\/p>\n","protected":false},"author":1,"featured_media":72113,"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-72116","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-068-cellrank-fate-probabilities.png?fit=1240%2C800&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72116","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=72116"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72116\/revisions"}],"predecessor-version":[{"id":73707,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72116\/revisions\/73707"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/72113"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=72116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=72116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=72116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}