{"id":72079,"date":"2026-11-17T13:34:32","date_gmt":"2026-11-17T05:34:32","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=72079"},"modified":"2026-11-17T13:34:32","modified_gmt":"2026-11-17T05:34:32","slug":"ysx-sc-practice-063-cnmf-epithelial-programs","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/ysx-sc-practice-063-cnmf-epithelial-programs\/","title":{"rendered":"\u80bf\u7624\u4e0a\u76ae\u7ec6\u80de\u91cc\u6709\u54ea\u4e9b\u6210\u5957\u53d8\u5316\u7684\u57fa\u56e0\uff1f\u7528 cNMF \u62c6\u5f00\u8868\u8fbe\u7a0b\u5e8f"},"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>\u4e00\u4e2a\u80bf\u7624\u4e0a\u76ae\u7ec6\u80de\u53ef\u4ee5\u540c\u65f6\u8868\u8fbe\u89d2\u86cb\u767d\u3001\u5468\u671f\u57fa\u56e0\u548c\u5e72\u6270\u7d20\u54cd\u5e94\u57fa\u56e0\u3002\u805a\u7c7b\u56fe\u5374\u901a\u5e38\u8981\u6c42\u5b83\u53ea\u80fd\u51fa\u73b0\u5728\u4e00\u4e2a\u7c07\u91cc\u3002\u82e5\u95ee\u9898\u662f\u201c\u54ea\u4e9b\u57fa\u56e0\u6210\u5957\u53d8\u5316\uff0c\u6bcf\u9897\u7ec6\u80de\u5404\u7528\u4e86\u591a\u5c11\u201d\uff0c\u53ef\u4ee5\u6362\u4e00\u79cd\u8868\u8fbe\u65b9\u5f0f\uff1a\u4fdd\u7559\u4e0a\u76ae\u5927\u7c7b\uff0c\u5141\u8bb8\u540c\u4e00\u4e2a\u6761\u7801\u7531\u51e0\u5957\u7a0b\u5e8f\u5171\u540c\u7ec4\u6210\u3002\u672c\u7bc7\u7528\u4e00\u4efd\u5df2\u77e5\u7ec4\u6210\u7684\u6a21\u62df\u80bf\u7624\u4e0a\u76ae\u77e9\u9635\u5b9e\u9645\u8fd0\u884c cNMF\uff0c\u6bd4\u8f83\u4e09\u4e2a\u5019\u9009\u7a0b\u5e8f\u6570\u3002\u7ed3\u679c\u91cc\u6700\u503c\u5f97\u4e00\u8d77\u770b\u7684\u4e24\u5217\uff0c\u662f\u589e\u52a0\u4e00\u4e2a\u7a0b\u5e8f\u540e\u8bef\u5dee\u964d\u4e86\u591a\u5c11\uff0c\u4ee5\u53ca\u8fd9\u4e2a\u65b0\u589e\u7a0b\u5e8f\u7684\u524d\u51e0\u4e2a\u57fa\u56e0\u7a76\u7adf\u662f\u4ec0\u4e48\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=\"K \u4ece 2 \u81f3 4 \u65f6\u91cd\u5efa\u8bef\u5dee\u4e0b\u964d\uff0c\u7b2c\u56db\u4e2a\u5206\u91cf\u7684\u524d\u516b\u9879\u90fd\u4e3a\u6a21\u62df\u80cc\u666f\u57fa\u56e0\uff0cK=3 \u7684\u4e09\u4e2a\u7a0b\u5e8f\u8de8\u4f9b\u8005\u91cd\u590d\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-063-cnmf-epithelial-programs.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-063-cnmf-epithelial-programs.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-063-cnmf-epithelial-programs.pdf\">\u4e0b\u8f7d\u56fe\u6587\u64cd\u4f5c\u624b\u518c\uff08PDF\uff09<\/a><\/p>\n<h2>\u5148\u786e\u8ba4\u8fdb\u5165\u6a21\u578b\u7684\u7ec6\u80de\u548c\u6570\u503c<\/h2>\n<p>\u6570\u636e\u542b\u56db\u4f4d\u6a21\u62df\u4f9b\u8005\uff0c\u6bcf\u4eba\u4e5d\u5341\u9897\u4e0a\u76ae\u7ec6\u80de\uff0c\u5171\u4e09\u767e\u516d\u5341\u9897\u3002\u6bcf\u9897\u90fd\u6df7\u5408\u4e0a\u76ae\u76f8\u5173\u3001\u7ec6\u80de\u5468\u671f\u548c\u5e72\u6270\u7d20\u54cd\u5e94\u4e09\u79cd\u7a0b\u5e8f\uff0c\u5bf9\u5e94\u4e0d\u540c\u7684\u8f7d\u8377\u57fa\u56e0\uff1b\u8fd8\u4fdd\u7559\u4e86\u516d\u5341\u4e2a\u6a21\u62df\u80cc\u666f\u57fa\u56e0\u3002\u603b\u8ba1\u516b\u5341\u56db\u4e2a RNA \u7279\u5f81\u3002\u9644\u8868\u8bb0\u5f55\u751f\u6210\u6bcf\u9897\u7ec6\u80de\u65f6\u7684\u4e09\u4e2a\u6bd4\u4f8b\uff0c\u53ea\u5728\u6700\u540e\u6838\u9a8c\u65f6\u4f7f\u7528\u3002\u62df\u5408\u811a\u672c\u53ea\u8bfb\u53d6\u57fa\u56e0\u8ba1\u6570\uff0c\u4e0d\u8bfb\u4f9b\u8005\u6216\u751f\u6210\u6bd4\u4f8b\u3002\u8fd9\u6837\u6700\u540e\u6062\u590d\u51fa\u4e09\u5957\u7a0b\u5e8f\u5e76\u4e0e\u5df2\u77e5\u6743\u91cd\u4e00\u81f4\u65f6\uff0c\u8bfb\u8005\u624d\u80fd\u533a\u5206\u201c\u6a21\u578b\u4ece\u8868\u8fbe\u4e2d\u5b66\u5230\u4e86\u7ec4\u5408\u201d\u4e0e\u201c\u6211\u4eec\u4e8b\u5148\u628a\u7b54\u6848\u4ea4\u7ed9\u4e86\u7b97\u6cd5\u201d\u3002<\/p>\n<p>\u81ea\u5df1\u7684\u9879\u76ee\u9700\u8981\u5148\u786e\u8ba4\u4e0a\u76ae\u8c31\u7cfb\uff0c\u4fdd\u5b58\u4f9b\u8005\u3001\u7ec4\u7ec7\u6765\u6e90\u3001\u75c5\u7406\u548c\u57fa\u672c\u8d28\u63a7\u4fe1\u606f\u3002\u6df7\u5165\u7684\u9ad8\u8ba1\u6570\u53cc\u7ec6\u80de\u53ef\u80fd\u628a\u4e24\u79cd\u8c31\u7cfb\u5408\u6210\u4e00\u4e2a\u5f3a\u7a0b\u5e8f\uff0c\u80bf\u7624\u4e0a\u76ae\u4e2d\u7684\u771f\u5b9e\u72b6\u6001\u5dee\u5f02\u4e5f\u53ef\u80fd\u4e0e\u60a3\u8005\u7279\u5f02\u6027\u62f7\u8d1d\u6570\u53ca\u5236\u5907\u5e94\u6fc0\u6709\u5173\u3002\u539f\u59cb\u975e\u8d1f\u8ba1\u6570\u9002\u5408\u4f5c\u4e3a\u8fd9\u4e00\u6d41\u7a0b\u7684\u8d77\u70b9\uff0c\u4e0d\u80fd\u628a\u542b\u8d1f\u503c\u7684\u6309\u57fa\u56e0\u4e2d\u5fc3\u5316\u77e9\u9635\u5f53\u4f5c\u8ba1\u6570\u9001\u8fdb\u975e\u8d1f\u5206\u89e3\u3002\u6a21\u578b\u8f93\u51fa\u4e24\u7c7b\u91cf\uff1a\u4e00\u7c7b\u662f\u6bcf\u4e2a\u7a0b\u5e8f\u5728\u4e0d\u540c\u57fa\u56e0\u4e0a\u7684\u7ec4\u6210\uff0c\u53e6\u4e00\u7c7b\u662f\u6bcf\u4e2a\u6761\u7801\u4f7f\u7528\u8fd9\u4e9b\u7a0b\u5e8f\u7684\u7a0b\u5ea6\u3002\u524d\u8005\u9002\u5408\u7ed9\u7a0b\u5e8f\u547d\u540d\uff0c\u540e\u8005\u7528\u6765\u67e5\u770b\u8fd9\u79cd\u6d3b\u52a8\u5728\u54ea\u91cc\u51fa\u73b0\u3002<a href=\"https:\/\/pmc.ncbi.nlm.nih.gov\/articles\/PMC6639075\/\">Kotliar \u7b49\u7684 cNMF \u539f\u59cb\u8bba\u6587<\/a><\/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# \u9700\u8981\u4ece\u5934\u62df\u5408\u65f6\uff0c\u5728\u5355\u72ec\u7684 Python 3.12 \u73af\u5883\u5b89\u88c5\u6a21\u578b\u4f9d\u8d56\npython -m pip install -r model-requirements.txt\npython fit_cnmf.py example example\/fit\n<\/code><\/pre>\n<h2>\u6539\u4e00\u4e2a K\uff0c\u4e3a\u4ec0\u4e48\u8fd8\u5f97\u91cd\u590d\u5341\u51e0\u6b21<\/h2>\n<p>\u975e\u8d1f\u77e9\u9635\u5206\u89e3\u4ece\u4e0d\u540c\u968f\u673a\u521d\u503c\u51fa\u53d1\uff0c\u53ef\u80fd\u5728\u76f8\u540c\u7a0b\u5e8f\u6570\u4e0b\u5f97\u5230\u4e0d\u540c\u7684\u7ec4\u5408\u3002\u8fd9\u91cc\u5206\u522b\u8bd5\u4e8c\u3001\u4e09\u3001\u56db\u4e2a\u7a0b\u5e8f\uff0c\u6bcf\u4e2a\u5019\u9009\u6570\u505a\u5341\u4e8c\u6b21\u521d\u59cb\u5316\uff0c\u603b\u8ba1\u4e09\u5341\u516d\u6b21\u521d\u59cb\u5206\u89e3\u3002\u56fa\u5b9a\u968f\u673a\u79cd\u5b50\uff0c\u7528\u56db\u5341\u4e2a\u9ad8\u53d8\u7279\u5f81\u8fdb\u884c\u5206\u89e3\uff0c\u6700\u591a\u8fed\u4ee3\u4e8c\u5343\u8f6e\u3002\u4e4b\u540e\u6309\u5019\u9009\u7a0b\u5e8f\u6570\u6536\u96c6\u5408\u5e76\u5404\u6b21\u7ed3\u679c\uff0c\u67e5\u770b\u76f8\u8fd1\u7a0b\u5e8f\u662f\u5426\u5728\u91cd\u590d\u8fd0\u884c\u4e2d\u805a\u5728\u4e00\u8d77\uff0c\u518d\u505a\u5171\u8bc6\u3002\u9009\u62e9\u7528\u591a\u5c11\u6b21\u91cd\u590d\u4e0e\u53ef\u627f\u62c5\u7684\u8ba1\u7b97\u91cf\u3001\u6570\u636e\u590d\u6742\u5ea6\u6709\u5173\uff0c\u5341\u4e8c\u6b21\u662f\u968f\u6587\u6f14\u7ec3\u7684\u8bbe\u7f6e\uff0c\u4e0d\u80fd\u89c6\u4f5c\u5927\u578b\u80bf\u7624\u7814\u7a76\u5df2\u7ecf\u5145\u5206\u8bc4\u4f30\u7a33\u5b9a\u6027\u7684\u4fdd\u8bc1\u3002<a href=\"https:\/\/github.com\/dylkot\/cNMF\">\u5b98\u65b9\u4ee3\u7801\u53ca\u5b8c\u6574\u6d41\u7a0b<\/a><\/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 fit_all(h5ad,workspace):\n    model=cNMF(output_dir=str(workspace),name=&quot;epithelial&quot;)\n    model.prepare(counts_fn=str(h5ad),components=[2,3,4],n_iter=12,seed=63,num_highvar_genes=40,max_NMF_iter=2000)\n    model.factorize(worker_i=0,total_workers=1)\n    model.combine()\n    return model\n<\/code><\/pre>\n<p>\u4e0b\u8f7d\u5305\u4fdd\u7559\u4e86\u6bcf\u4e2a\u5019\u9009\u6570\u7684\u7a0b\u5e8f\u548c\u4f7f\u7528\u5ea6\uff0c\u800c\u4e0d\u53ea\u7559\u4e0b\u6700\u540e\u6311\u4e2d\u7684\u4e09\u7a0b\u5e8f\u7ed3\u679c\u3002\u8fd9\u6837\u53ef\u4ee5\u4ece\u6570\u5b57\u68c0\u9a8c\u4e24\u4e2a\u7ade\u4e89\u89e3\u91ca\uff1a\u5982\u679c\u7a0b\u5e8f\u6570\u592a\u5c11\uff0c\u539f\u672c\u4e0d\u540c\u7684\u8868\u8fbe\u6d3b\u52a8\u4f1a\u88ab\u5408\u5e76\uff1b\u8bbe\u5f97\u8fc7\u591a\u65f6\uff0c\u4e00\u4e2a\u6210\u5206\u53ef\u80fd\u53ea\u5438\u6536\u96f6\u788e\u80cc\u666f\uff0c\u6216\u8005\u5c06\u540c\u4e00\u4e2a\u53ef\u91cd\u590d\u7a0b\u5e8f\u62c6\u4e3a\u51e0\u4e2a\u76f8\u4f3c\u53d8\u4f53\u3002\u521d\u6b21\u5c1d\u8bd5\u65f6\u53ef\u4ee5\u53ea\u6539\u53d8\u4e00\u9879\u53c2\u6570\uff0c\u56fa\u5b9a\u62df\u5408\u4eba\u7fa4\u3001\u9ad8\u53d8\u7279\u5f81\u9009\u62e9\u3001\u5f52\u4e00\u5316\u548c\u5bc6\u5ea6\u9608\u503c\uff0c\u518d\u770b\u7a0b\u5e8f\u6570\u7684\u4f5c\u7528\u3002\u591a\u9879\u4e00\u8d77\u53d8\u5316\u540e\uff0c\u4ec5\u51ed\u67d0\u5f20\u70ed\u56fe\u201c\u66f4\u5e72\u51c0\u201d\u5f88\u96be\u8ffd\u5230\u539f\u56e0\u3002<\/p>\n<h2>\u4e09\u884c\u6570\u5b57\u4e0d\u9700\u8981\u81ea\u52a8\u6295\u7968<\/h2>\n<p>\u4e24\u4e2a\u7a0b\u5e8f\u65f6\uff0c\u91cd\u590d\u62df\u5408\u7684\u8f6e\u5ed3\u7a33\u5b9a\u6027\u7ea6\u4e3a\u96f6\u70b9\u4e5d\u4e5d\u4e5d\u516b\uff0c\u91cd\u5efa\u8bef\u5dee\u7ea6\u4e5d\u5343\u96f6\u4e8c\u5341\u4e94\u3002\u589e\u52a0\u4e3a\u4e09\u4e2a\uff0c\u7a33\u5b9a\u6027\u4ecd\u63a5\u8fd1\u4e00\uff0c\u8bef\u5dee\u964d\u5230\u7ea6\u4e94\u5343\u96f6\u4e03\u5341\u516d\u3002\u518d\u52a0\u5230\u56db\u4e2a\uff0c\u8bef\u5dee\u8fd8\u4f1a\u964d\u5230\u7ea6\u56db\u5343\u4e03\u767e\u4e8c\u5341\u56db\uff0c\u7a33\u5b9a\u6027\u5374\u964d\u5230\u7ea6\u96f6\u70b9\u4e03\u516b\u3002\u53ea\u6709\u4e24\u79cd\u7a0b\u5e8f\u4e5f\u53ef\u4ee5\u975e\u5e38\u7a33\u5b9a\u5730\u5c06\u4e09\u79cd\u771f\u5b9e\u53d8\u5316\u6324\u8fdb\u8f83\u5c11\u7684\u683c\u5b50\u3002\u76f8\u53cd\uff0c\u8bef\u5dee\u8d8a\u5c0f\u5e76\u4e0d\u5fc5\u7136\u610f\u5473\u7740\u591a\u51fa\u6765\u7684\u4e00\u7ec4\u5bb9\u6613\u89e3\u91ca\uff0c\u589e\u52a0\u81ea\u7531\u5ea6\u672c\u6765\u5c31\u5e38\u80fd\u6539\u5584\u5bf9\u539f\u59cb\u77e9\u9635\u7684\u62df\u5408\u3002\u628a\u8fd9\u4e09\u884c\u653e\u5728\u4e00\u8d77\uff0c\u624d\u80fd\u770b\u5230\u54ea\u4e2a\u989d\u5916\u7a0b\u5e8f\u5e26\u6765\u7684\u6539\u8fdb\u660e\u663e\u3001\u54ea\u4e2a\u5e26\u6765\u7684\u56de\u62a5\u8f83\u5c0f\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:#ffebc5\">\u7a0b\u5e8f\u6570<\/th>\n<th style=\"text-align: right;\">\u7a33\u5b9a\u6027\uff0c\u8f6e\u5ed3\u7cfb\u6570<\/th>\n<th style=\"text-align: right;\">\u91cd\u5efa\u8bef\u5dee\u7ea6\u6570<\/th>\n<th style=\"padding:9px;text-align:left;background:#ffebc5\">\u7ee7\u7eed\u68c0\u67e5\u7684\u5185\u5bb9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">2<\/td>\n<td style=\"text-align: right;\">0.9998<\/td>\n<td style=\"text-align: right;\">9,025<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u662f\u5426\u628a\u4e0d\u540c\u6d3b\u52a8\u5408\u5728\u4e00\u8d77<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">3<\/td>\n<td style=\"text-align: right;\">1.0000<\/td>\n<td style=\"text-align: right;\">5,076<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u4e09\u7ec4\u7684\u6210\u5458\u4e0e\u4f9b\u8005\u4f7f\u7528\u5ea6<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">4<\/td>\n<td style=\"text-align: right;\">0.7797<\/td>\n<td style=\"text-align: right;\">4,724<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u7b2c\u56db\u7ec4\u662f\u5426\u6709\u53ef\u91cd\u590d\u7684\u72ec\u7acb\u6210\u5458<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u8fd9\u91cc\u62a5\u544a\u7684\u662f\u672c\u6b21\u8fd0\u884c\u7684\u91cd\u5efa\u6307\u6807\uff0c\u5176\u7edd\u5bf9\u91cf\u7ea7\u4f9d\u8d56\u6570\u636e\u89c4\u6a21\u3001\u7279\u5f81\u548c\u5b9e\u73b0\u3002\u62ff\u53e6\u4e00\u7bc7\u7814\u7a76\u4e0d\u540c\u77e9\u9635\u7684\u8bef\u5dee\u6765\u8bbe\u7edf\u4e00\u9608\u503c\u6ca1\u6709\u610f\u4e49\u3002\u66f4\u5b9e\u7528\u7684\u662f\u5728\u540c\u4e00\u4e2a\u8f93\u5165\u4e0a\u6bd4\u8f83\u76f8\u90bb\u5019\u9009\u6570\uff0c\u518d\u56de\u539f\u59cb\u8ba1\u6570\u548c\u4f9b\u8005\u4fe1\u606f\u68c0\u9a8c\u3002\u82e5\u4e24\u4e2a\u5019\u9009\u6570\u90fd\u7ed9\u51fa\u6e05\u6670\u3001\u8de8\u4f9b\u8005\u91cd\u590d\u4f46\u5206\u8fa8\u7387\u4e0d\u540c\u7684\u7a0b\u5e8f\uff0c\u62a5\u544a\u4e00\u79cd\u4e3b\u65b9\u6848\u548c\u4e00\u79cd\u5907\u9009\u89e3\u91ca\u4e5f\u5408\u7406\uff1b\u4ec5\u51ed\u7b2c\u4e09\u4f4d\u5c0f\u6570\u9009\u62e9\u4e00\u4e2a\u201c\u552f\u4e00\u6b63\u786e\u201d\u7684\u7a0b\u5e8f\u6570\u4f1a\u63a9\u76d6\u4e0d\u786e\u5b9a\u6027\u3002<\/p>\n<h2>\u600e\u6837\u7ed9\u5206\u91cf\u91cd\u65b0\u53d6\u4e00\u4e2a\u80fd\u590d\u6838\u7684\u540d\u5b57<\/h2>\n<p>\u4e09\u7a0b\u5e8f\u7ed3\u679c\u7684\u7b2c\u4e00\u5217\uff0c\u524d\u516b\u4e2a\u57fa\u56e0\u90fd\u5c5e\u4e8e\u9884\u8bbe\u7684\u5468\u671f\u9762\u677f\uff0c\u5305\u62ec CDK1\u3001BIRC5\u3001CENPF \u548c PCNA\uff1b\u7b2c\u4e8c\u5217\u524d\u516b\u4e2a\u5bf9\u5e94\u4e0a\u76ae\uff0c\u7b2c\u4e09\u5217\u524d\u516b\u4e2a\u5bf9\u5e94\u5e72\u6270\u7d20\u3002\u7528\u5404\u81ea\u524d\u516b\u9879\u4e0e\u4e09\u5957\u9884\u8bbe\u9762\u677f\u7684\u4ea4\u96c6\u5927\u5c0f\u505a\u4e00\u5bf9\u4e00\u5339\u914d\uff0c\u518d\u5bf9\u7167\u5404\u4e2a\u57fa\u56e0\u7684\u5177\u4f53\u6392\u540d\u3002\u7a0b\u5e8f\u7f16\u53f7\u662f\u8fd9\u6b21\u62df\u5408\u7684\u8f93\u51fa\u987a\u5e8f\uff0c\u6362\u968f\u673a\u79cd\u5b50\u3001\u8f6f\u4ef6\u6216\u8ba1\u7b97\u5e93\u540e\u7f16\u53f7\u53ef\u80fd\u4e92\u6362\u3002\u4e0e\u53e6\u4e00\u961f\u5217\u5bf9\u6bd4\u65f6\uff0c\u5e94\u6309\u57fa\u56e0\u8c31\u6216\u6a21\u578b\u6295\u5f71\u6765\u5339\u914d\uff0c\u4e0d\u80fd\u56e0\u4e3a\u4e24\u4e2a\u6587\u4ef6\u90fd\u51fa\u73b0\u201c\u7b2c\u4e09\u5217\u201d\u5c31\u8ba4\u4f5c\u540c\u4e00\u7a0b\u5e8f\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 match_by_markers(top,known):\n    columns=list(top[0]);labels=list(known)\n    scores={(col,label):len(set(r[col] for r in top[:8])&amp;known[label]) for col in columns for label in labels}\n    assignment=max(itertools.permutations(labels),key=lambda a:sum(scores[col,label] for col,label in zip(columns,a)))\n    return {col:(label,scores[col,label]) for col,label in zip(columns,assignment)}\n<\/code><\/pre>\n<p>\u770b\u7b2c\u56db\u4e2a\u5206\u91cf\u4f1a\u66f4\u660e\u767d\u4e3a\u4ec0\u4e48\u8981\u68c0\u67e5\u540d\u5b57\u3002\u56db\u7a0b\u5e8f\u6a21\u578b\u91cc\u524d\u4e09\u5217\u4f9d\u7136\u5404\u81ea\u627e\u56de\u516b\u9879\u9884\u8bbe\u6807\u8bb0\uff0c\u65b0\u589e\u7684\u7b2c\u56db\u5217\u524d\u516b\u9879\u5168\u662f\u751f\u6210\u5668\u4e2d\u660e\u793a\u7684\u80cc\u666f\u57fa\u56e0\u3002\u5bf9\u8fd9\u4efd\u6709\u771f\u503c\u7684\u7ec3\u4e60\uff0c\u4f18\u5148\u89e3\u91ca\u4e09\u7a0b\u5e8f\u6709\u5145\u5206\u7684\u6570\u636e\u4f9d\u636e\u3002\u771f\u5b9e\u80bf\u7624\u91cc\u770b\u4e0d\u61c2\u7684\u57fa\u56e0\u4e0d\u4e00\u5b9a\u662f\u566a\u58f0\uff0c\u5176\u4e2d\u53ef\u80fd\u5305\u542b\u672a\u77e5\u8c03\u63a7\uff0c\u56e0\u6b64\u4e0d\u80fd\u628a\u201c\u6ca1\u6709\u51fa\u73b0\u5728\u6211\u9884\u8bbe\u7684\u9762\u677f\u201d\u81ea\u52a8\u5f53\u4f5c\u5220\u9664\u7406\u7531\uff1b\u53ef\u4ee5\u68c0\u67e5\u6210\u5458\u76f8\u5173\u6027\u3001\u6280\u672f\u534f\u53d8\u91cf\u3001\u5176\u4ed6\u60a3\u8005\u53ca\u72ec\u7acb\u961f\u5217\u662f\u5426\u518d\u73b0\uff0c\u518d\u51b3\u5b9a\u662f\u4f5c\u4e3a\u5019\u9009\u8fd8\u662f\u6682\u7f13\u547d\u540d\u3002<\/p>\n<h2>\u7ed9\u6bcf\u4f4d\u4f9b\u8005\u7559\u4e00\u5f20\u4f7f\u7528\u5ea6\u8868<\/h2>\n<p>\u628a\u6bcf\u9897\u5728\u4e09\u4e2a\u5206\u91cf\u4e0a\u7684\u4f7f\u7528\u5ea6\u6309\u884c\u5f52\u4e00\u5316\uff0c\u4e09\u9879\u4e4b\u548c\u4e3a\u4e00\u3002\u5b83\u4eec\u63cf\u8ff0\u8be5\u7ec6\u80de\u5728\u5f53\u524d\u6a21\u578b\u4e0b\u7684\u76f8\u5bf9\u4f7f\u7528\uff0c\u4e0d\u7b49\u4e8e\u56fa\u5b9a\u65f6\u95f4\u5185\u8868\u8fbe\u7a0b\u5e8f\u542f\u52a8\u7684\u6982\u7387\u3002\u8bfb\u8005\u53ef\u4ee5\u6309\u7ec6\u80de\u753b\u8fde\u7eed\u4f7f\u7528\u5ea6\uff0c\u4e5f\u53ef\u4ee5\u4e3a\u4e86\u67e5\u770b\u8986\u76d6\uff0c\u53e6\u5916\u6570\u6bcf\u4f4d\u4f9b\u8005\u4e2d\u54ea\u7ec4\u662f\u6700\u5927\u5206\u91cf\u3002\u5468\u671f\u7a0b\u5e8f\u5728\u56db\u4f4d\u4f9b\u8005\u5404\u6709\u4e09\u5341\u3001\u4e09\u5341\u4e8c\u3001\u4e09\u5341\u3001\u4e09\u5341\u4e8c\u9897\u5c45\u9996\uff0c\u5e72\u6270\u7d20\u7a0b\u5e8f\u5404\u6709\u4e8c\u5341\u4e5d\u3001\u4e09\u5341\u3001\u4e8c\u5341\u516b\u3001\u4e8c\u5341\u4e03\u9897\u5c45\u9996\u3002\u4f7f\u7528\u6700\u9ad8\u5217\u4f5c\u6807\u7b7e\u4f1a\u4e22\u6389\u5176\u4f59\u4e24\u5217\u7684\u8fde\u7eed\u4fe1\u606f\uff0c\u4ea4\u4ed8\u65f6\u8981\u628a\u539f\u59cb\u4f7f\u7528\u77e9\u9635\u4e00\u9053\u4fdd\u7559\u3002<\/p>\n<p>\u6700\u540e\u5c06\u4f30\u8ba1\u4f7f\u7528\u5ea6\u4e0e\u751f\u6210\u65f6\u7559\u51fa\u7684\u771f\u503c\u505a\u79e9\u76f8\u5173\uff0c\u5468\u671f\u7ea6\u96f6\u70b9\u4e5d\u4e09\u4e00\u3001\u4e0a\u76ae\u7ea6\u96f6\u70b9\u4e5d\u4e8c\u56db\u3001\u5e72\u6270\u7d20\u7ea6\u96f6\u70b9\u4e5d\u56db\u4e00\u3002\u8fd9\u9879\u8bc1\u636e\u53ea\u5728\u672c\u4f8b\u6210\u7acb\uff0c\u56e0\u4e3a\u6a21\u62df\u8005\u638c\u63e1\u771f\u503c\uff1b\u771f\u5b9e\u961f\u5217\u53ef\u4ee5\u6539\u7528\u72ec\u7acb\u9a8c\u8bc1\u6807\u8bb0\u3001\u7ec4\u7ec7\u533a\u57df\u6216\u6270\u52a8\u8bfb\u51fa\u3002\u82e5\u67d0\u7a0b\u5e8f\u51e0\u4e4e\u53ea\u6765\u81ea\u4e00\u4f4d\u60a3\u8005\uff0c\u8fd8\u5e94\u8003\u8651\u8fd9\u4e00\u60a3\u8005\u7684\u62f7\u8d1d\u6570\u3001\u6587\u5e93\u6df1\u5ea6\u548c\u6837\u672c\u5904\u7406\uff0c\u5fc5\u8981\u65f6\u7559\u51fa\u8be5\u60a3\u8005\u91cd\u505a\u6574\u4e2a\u5206\u89e3\uff0c\u518d\u6309\u8c31\u5339\u914d\u5176\u4f59\u7a0b\u5e8f\u3002\u5bf9\u6bcf\u4e2a\u65b0\u540d\u5b57\u4ea4\u4ed8\u4e00\u5f20\u57fa\u56e0\u8868\u3001\u4e00\u5217\u6761\u7801\u4f7f\u7528\u5ea6\u548c\u4e00\u4efd\u4f9b\u8005\u8986\u76d6\uff0c\u6bd4\u628a\u6574\u5f20\u56fe\u7b3c\u7edf\u53eb\u201c\u65b0\u4e9a\u7fa4\u56fe\u8c31\u201d\u66f4\u5bb9\u6613\u9a8c\u8bc1\u3002<\/p>\n<p>\u5c0f\u578b\u793a\u4f8b\u5728\u4e2a\u4eba\u7535\u8111\u5c31\u80fd\u590d\u6838\u3002\u628a\u76f8\u540c\u7684\u591a\u4e2a\u7a0b\u5e8f\u6570\u548c\u591a\u6b21\u521d\u59cb\u5316\u6269\u5c55\u5230\u5b8c\u6574\u80bf\u7624\u56fe\u8c31\u65f6\uff0c\u53ef\u4ee5\u5c06\u4f5c\u4e1a\u548c\u539f\u59cb\u8ba1\u6570\u8fc1\u81f3<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/compute-services\/\">\u4e91\u751f\u4fe1\u79d1\u7814\u670d\u52a1\u5668\u79df\u8d41<\/a>\uff0c\u5206\u522b\u4fdd\u5b58\u6bcf\u8f6e\u5206\u89e3\u4e0e\u5171\u8bc6\u7ed3\u679c\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u628a\u4e00\u4e2a\u4e0a\u76ae\u7ec6\u80de\u5f53\u6210\u591a\u79cd\u8868\u8fbe\u7a0b\u5e8f\u7684\u7ec4\u5408\uff0c\u5728\u4e09\u79cd K \u4e0b\u5404\u505a\u5341\u4e8c\u6b21\u771f\u5b9e cNMF \u62df\u5408\uff0c\u901a\u8fc7\u7a33\u5b9a\u6027\u3001\u91cd\u5efa\u8bef\u5dee\u3001\u6807\u8bb0\u548c\u9010\u4f9b\u8005\u4f7f\u7528\u5ea6\u5224\u65ad\u5e94\u89e3\u91ca\u54ea\u4e9b\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"author":1,"featured_media":72076,"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-72079","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-063-cnmf-epithelial-programs.png?fit=1240%2C800&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72079","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=72079"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72079\/revisions"}],"predecessor-version":[{"id":73702,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72079\/revisions\/73702"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/72076"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=72079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=72079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=72079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}