{"id":68278,"date":"2026-12-01T09:18:19","date_gmt":"2026-12-01T01:18:19","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=68278"},"modified":"2026-12-01T09:18:19","modified_gmt":"2026-12-01T01:18:19","slug":"%e7%bb%86%e8%83%9e%e4%b8%80%e4%b8%aa%e6%b2%a1%e6%8d%a2%ef%bc%8c%e4%b8%ba%e4%bb%80%e4%b9%88-liana-%e7%9a%84%e9%80%9a%e4%bf%a1%e5%80%99%e9%80%89%e6%b6%88%e5%a4%b1%e4%ba%86%ef%bc%9f%e4%b8%80%e6%ac%a1","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/%e7%bb%86%e8%83%9e%e4%b8%80%e4%b8%aa%e6%b2%a1%e6%8d%a2%ef%bc%8c%e4%b8%ba%e4%bb%80%e4%b9%88-liana-%e7%9a%84%e9%80%9a%e4%bf%a1%e5%80%99%e9%80%89%e6%b6%88%e5%a4%b1%e4%ba%86%ef%bc%9f%e4%b8%80%e6%ac%a1\/","title":{"rendered":"\u7ec6\u80de\u4e00\u4e2a\u6ca1\u6362\uff0c\u4e3a\u4ec0\u4e48 LIANA+ \u7684\u901a\u4fe1\u5019\u9009\u6d88\u5931\u4e86\uff1f\u4e00\u6b21\u53ea\u6539\u5206\u7ec4\u7684\u5b9e\u8dd1"},"content":{"rendered":"<div id=\"articleContent\" style=\"max-width:860px;min-width:0;margin:auto;font-size:17px;line-height:1.85;\">\n<p>\u6709\u65f6\u628a\u4e00\u4e2a\u7ec6\u80de\u5927\u7c7b\u7ec6\u5206\u4ee5\u540e\uff0c\u914d\u4f53\u4e0e\u53d7\u4f53\u5019\u9009\u540d\u5355\u4f1a\u53d8\u957f\u3002\u5408\u4f5c\u8005\u5f88\u53ef\u80fd\u5148\u60f3\u5230\u751f\u7269\u5b66\u89e3\u91ca\uff1a\u627e\u5230\u4e86\u4ee5\u524d\u6ca1\u6ce8\u610f\u5230\u7684\u53d1\u9001\u7ec6\u80de\u3002\u8fd8\u6709\u4e00\u79cd\u66f4\u7b80\u5355\u7684\u53ef\u80fd\uff1a\u8868\u8fbe\u914d\u4f53\u7684\u7ec6\u80de\u672c\u6765\u5c31\u5728\uff0c\u53ea\u662f\u88ab\u653e\u5728\u4e00\u4e2a\u5f88\u5927\u7684\u7ec4\u91cc\uff0c\u6ca1\u8fbe\u5230\u68c0\u51fa\u6bd4\u4f8b\u95e8\u69db\u3002\u8981\u5206\u6e05\u8fd9\u4e24\u79cd\u89e3\u91ca\uff0c\u6700\u7701\u529b\u7684\u5b9e\u9a8c\u662f\u56fa\u5b9a\u8868\u8fbe\u77e9\u9635\uff0c\u5355\u72ec\u6539\u53d8\u5206\u7ec4\uff0c\u8ffd\u8e2a\u540c\u4e00\u5bf9\u914d\u4f53\u548c\u53d7\u4f53\u7a76\u7adf\u5728\u54ea\u4e00\u6b65\u6d88\u5931\u3002<\/p>\n<p>LIANA+ \u80fd\u5728\u7edf\u4e00\u7684\u6846\u67b6\u4e2d\u8c03\u7528\u591a\u79cd\u7ec6\u80de\u901a\u4fe1\u63a8\u65ad\u65b9\u6cd5\uff0c\u4f7f\u7528\u914d\u4f53\u4e0e\u53d7\u4f53\u77e5\u8bc6\u3001\u7ec6\u80de\u5206\u7ec4\u548c\u8868\u8fbe\u6570\u636e\u7ed9\u5019\u9009\u4e92\u4f5c\u6392\u5e8f\u3002\u8fd9\u6b21\u6211\u4eec\u5b9e\u9645\u8c03\u7528\u4e86\u5b83\u7684\u6392\u540d\u805a\u5408\u63a5\u53e3\u3002\u4e3a\u4e86\u8ba9\u6bcf\u4e2a\u53d8\u5316\u90fd\u80fd\u8ffd\u6eaf\u5230\u5177\u4f53\u7ec6\u80de\uff0c\u8f93\u5165\u91c7\u7528\u4eba\u5de5\u6784\u9020\u7684\u8ba1\u6570\uff0c\u4e0d\u501f\u7528\u75c5\u4eba\u6837\u672c\u3002\u4e0b\u6587\u7684 L1\u3001R1 \u662f\u6559\u5b66\u7528\u7279\u5f81\u540d\uff0c\u4e09\u4e2a\u5019\u9009\u914d\u5bf9\u4e5f\u662f\u663e\u5f0f\u6307\u5b9a\u7684\u3002\u8fd9\u4e2a\u5b9e\u9a8c\u68c0\u9a8c\u8f6f\u4ef6\u5982\u4f55\u5904\u7406\u5206\u7ec4\u548c\u8fc7\u6ee4\uff0c\u5e76\u4e0d\u9a8c\u8bc1\u8fd9\u4e09\u4e2a\u914d\u5bf9\u5728\u4efb\u4f55\u7269\u79cd\u91cc\u771f\u5b9e\u5b58\u5728\u3002<a href=\"https:\/\/github.com\/scverse\/liana\">LIANA+ \u5b98\u65b9\u4ed3\u5e93<\/a> \u00b7 <a href=\"https:\/\/liana.readthedocs.io\/en\/stable\/tutorials\/notebooks\/basic_usage.html\">\u5b98\u65b9\u6392\u540d\u4e0e\u7b5b\u9009\u6559\u7a0b<\/a><\/p>\n<h2 style=\"margin-top:30px;color:#183850;\">\u4e09\u8f6e\u5206\u6790\u53ea\u52a8\u4e24\u9879\u8bbe\u7f6e<\/h2>\n<p>\u5408\u6210\u6570\u636e\u5171\u6709\u4e00\u767e\u4e2a\u7ec6\u80de\u548c\u516b\u4e2a\u7279\u5f81\u3002\u7532\u3001\u4e59\u3001\u4e19\u5404\u6709\u4e8c\u5341\u4e2a\u7ec6\u80de\uff0c\u4e01\u6709\u56db\u5341\u4e2a\u3002\u6211\u4eec\u8ba9\u7532\u4e2d\u6bcf\u4e2a\u7ec6\u80de\u90fd\u80fd\u68c0\u51fa L1\uff0c\u5e76\u4e14\u8ba9\u5176\u4ed6\u4e09\u4e2a\u7fa4\u7684 L1 \u5168\u90e8\u4e3a\u96f6\uff1b\u4e59\u7fa4\u7684 R1 \u6709\u660e\u786e\u8868\u8fbe\u3002\u5176\u4f59\u7279\u5f81\u63d0\u4f9b\u53e6\u5916\u4e24\u5bf9\u5019\u9009\u548c\u80cc\u666f\u3002\u6bcf\u9897\u7ec6\u80de\u5148\u6309\u603b\u8ba1\u6570\u5f52\u4e00\u5230\u4e00\u4e07\uff0c\u518d\u505a\u81ea\u7136\u5bf9\u6570\u7684\u4e00\u52a0\u53d8\u6362\uff0c\u4e09\u8f6e\u5206\u6790\u5171\u4eab\u5b8c\u5168\u76f8\u540c\u7684\u77e9\u9635\u3002\u7ed9\u7a0b\u5e8f\u6307\u5b9a\u5019\u9009\u540d\u5355\u540e\uff0c\u662f\u5426\u4fdd\u7559 L1 \u5230 R1 \u5c31\u53ef\u4ee5\u4e0e\u8f93\u5165\u4e2d\u53ef\u624b\u7b97\u7684\u6bd4\u4f8b\u5bf9\u7167\u3002<\/p>\n<p>\u7b2c\u4e00\u8f6e\u6309\u539f\u59cb\u56db\u7fa4\u8dd1\uff0c\u7ed9\u5b9a\u56db\u6210\u7684\u8868\u8fbe\u6bd4\u4f8b\u95e8\u69db\u3002\u7b2c\u4e8c\u8f6e\u53ea\u5408\u5e76\u7532\u548c\u4e01\uff0c\u5f62\u6210\u516d\u5341\u9897\u7ec6\u80de\u7684\u53d1\u9001\u7fa4\uff0c\u63a5\u6536\u7fa4\u4e59\u5b8c\u5168\u4e0d\u52a8\u3002\u7b2c\u4e09\u8f6e\u5ef6\u7528\u5408\u5e76\u540e\u7684\u5206\u7ec4\uff0c\u53ea\u628a\u6bd4\u4f8b\u95e8\u69db\u964d\u4e3a\u4e09\u6210\u3002\u6bcf\u8f6e\u5747\u7528\u540c\u4e00\u4efd\u5019\u9009\u5217\u8868\uff0c\u56fa\u5b9a\u79cd\u5b50\u548c\u7f6e\u6362\u6b21\u6570\u3002\u82e5\u6539\u53d8\u5206\u7ec4\u7684\u540c\u65f6\u53c8\u6362\u4e86\u6570\u636e\u5e93\u3001\u8868\u8fbe\u5c42\u548c\u57fa\u56e0\u7b5b\u9009\uff0c\u518d\u770b\u5230\u5019\u9009\u6d88\u5931\uff0c\u5c31\u5f88\u96be\u533a\u5206\u662f\u54ea\u4e00\u9879\u9020\u6210\u7684\u3002<\/p>\n<h2 style=\"margin-top:30px;color:#183850;\">\u5148\u68c0\u67e5\u8fd9\u4e00\u884c\u5b58\u5728\uff0c\u518d\u770b\u5b83\u6392\u7b2c\u51e0<\/h2>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1080\" height=\"860\" class=\"wp-image-68277\" style=\"width:100%;height:auto;\" alt=\"\u4e09\u8f6e\u5408\u6210\u6570\u636e\u5b9e\u8dd1\u7684 L1 \u68c0\u51fa\u6bd4\u4f8b\u548c\u95e8\u69db\u3002\u7532\u7fa4\u5355\u72ec\u5206\u6790\u3001\u4e0e\u4e01\u5408\u5e76\u3001\u518d\u653e\u5bbd\u95e8\u69db\u65f6\uff0c\u5bf9\u4e59\u7fa4\u7684 L1 \u5230 R1 \u5019\u9009\u662f\u5426\u4fdd\u7559\u76f4\u63a5\u53d6\u81ea\u7a0b\u5e8f\u8f93\u51fa\u3002\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/repo500-039-scverse-liana.png?resize=1080%2C860&#038;ssl=1\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/repo500-039-scverse-liana.png?w=1080&amp;ssl=1 1080w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/repo500-039-scverse-liana.png?resize=300%2C239&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/repo500-039-scverse-liana.png?resize=1024%2C815&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/repo500-039-scverse-liana.png?resize=768%2C612&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/repo500-039-scverse-liana.png?resize=600%2C478&amp;ssl=1 600w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<div style=\"max-width:100%;overflow-x:auto;\">\n<table style=\"min-width:525px;width:100%;border-collapse:collapse;\">\n<thead>\n<tr>\n<th style=\"padding:9px;text-align:left;background:#dcf2ff;color:#103d59;white-space:normal;\">\u53d1\u9001\u7fa4\u5230\u4e59<\/th>\n<th style=\"text-align: right;\">\u8868\u8fbe\u95e8\u69db<\/th>\n<th style=\"text-align: right;\">\u68c0\u51fa L1<\/th>\n<th style=\"text-align: right;\">\u7ed3\u679c\u603b\u884c\u6570<\/th>\n<th style=\"text-align: right;\">\u8be5\u914d\u5bf9\u7684\u5f3a\u5ea6\u6392\u540d\u503c<\/th>\n<th style=\"text-align: right;\">\u7279\u5f02\u6027\u6392\u540d\u503c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:9px;border:1px solid #d1e6f0;vertical-align:top;white-space:normal;overflow-wrap:anywhere;\">\u7532\u5230\u4e59<\/td>\n<td style=\"text-align: right;\">40%<\/td>\n<td style=\"text-align: right;\">20\/20<\/td>\n<td style=\"text-align: right;\">36<\/td>\n<td style=\"text-align: right;\">6.43e-05<\/td>\n<td style=\"text-align: right;\">0.00033579<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;border:1px solid #d1e6f0;vertical-align:top;white-space:normal;overflow-wrap:anywhere;\">\u7532\uff0b\u4e01\u5230\u4e59<\/td>\n<td style=\"text-align: right;\">40%<\/td>\n<td style=\"text-align: right;\">20\/60<\/td>\n<td style=\"text-align: right;\">18<\/td>\n<td style=\"text-align: right;\">\u672a\u5165\u8868<\/td>\n<td style=\"text-align: right;\">\u672a\u5165\u8868<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;border:1px solid #d1e6f0;vertical-align:top;white-space:normal;overflow-wrap:anywhere;\">\u7532\uff0b\u4e01\u5230\u4e59<\/td>\n<td style=\"text-align: right;\">30%<\/td>\n<td style=\"text-align: right;\">20\/60<\/td>\n<td style=\"text-align: right;\">21<\/td>\n<td style=\"text-align: right;\">1<\/td>\n<td style=\"text-align: right;\">0.00032908<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u7b2c\u4e09\u8f6e\u5019\u9009\u91cd\u65b0\u5165\u8868\uff0c\u5176\u5f3a\u5ea6\u6392\u540d\u503c\u4e3a\u4e00\uff0c\u800c\u7279\u5f02\u6027\u6392\u540d\u503c\u7ea6\u4e3a\u96f6\u70b9\u96f6\u96f6\u96f6\u4e09\u4e09\u3002\u653e\u5bbd\u95e8\u69db\u6062\u590d\u7684\u662f\u5165\u8868\u8d44\u683c\uff0c\u4e24\u5217\u6392\u540d\u4ecd\u5404\u81ea\u56de\u7b54\u4e0d\u540c\u7684\u95ee\u9898\u3002\u8fd0\u884c\u73af\u5883\u4e3a Python 3.12.14\u3001LIANA+ 2.1.1\uff0c\u4f7f\u7528\u4e00\u767e\u6b21\u7f6e\u6362\uff0c\u4e0d\u4f5c\u8017\u65f6\u6216\u8d44\u6e90\u6027\u80fd\u6bd4\u8f83\u3002<\/p>\n<p>\u6ce8\u610f\u7b2c\u4e8c\u884c\u7684\u7a7a\u7f3a\u3002\u6570\u636e\u91cc\u6ca1\u6709\u5c11\u4e00\u9897\u7532\u7ec6\u80de\uff0c\u7532\u7ec6\u80de\u4e5f\u6ca1\u6709\u964d\u4f4e L1 \u8868\u8fbe\u3002\u6539\u53d8\u7684\u662f\u8ba1\u7b97\u53d1\u9001\u7fa4\u68c0\u51fa\u6bd4\u4f8b\u65f6\u4f7f\u7528\u7684\u5206\u6bcd\u3002\u5408\u5e76\u540e\uff0c\u4e8c\u5341\u9897\u9633\u6027\u7ec6\u80de\u88ab\u653e\u8fdb\u516d\u5341\u9897\u7ec6\u80de\u7684\u7ec4\u91cc\uff0c\u6bd4\u4f8b\u7ea6\u4e3a\u4e09\u5206\u4e4b\u4e00\u3002\u5b83\u4f4e\u4e8e\u56db\u6210\uff0c\u53c8\u9ad8\u4e8e\u4e09\u6210\u3002\u63a5\u6536\u65b9\u7684\u8f93\u5165\u6ca1\u6709\u6539\u53d8\uff0c\u540c\u4e00\u4e2a\u5019\u9009\u4fbf\u53ef\u4ee5\u5148\u4ece\u7ed3\u679c\u8868\u4e2d\u6d88\u5931\uff0c\u518d\u56de\u5230\u8868\u4e2d\u3002\u6b64\u5904\u5e94\u8be5\u8bb0\u4f5c\u201c\u672a\u901a\u8fc7\u8fd9\u8f6e\u7b5b\u9009\u201d\uff0c\u4e0d\u80fd\u8865\u6210\u6a21\u578b\u7ed9\u5b83\u6253\u4e86\u96f6\u5206\uff0c\u66f4\u4e0d\u80fd\u8bf4\u901a\u4fe1\u5df2\u88ab\u6291\u5236\u3002<\/p>\n<p>\u7ed3\u679c\u8868\u8fd8\u5305\u542b\u4e24\u79cd\u6c47\u603b\u6392\u540d\u3002\u5f3a\u5ea6\u76f8\u5173\u6392\u540d\u4fa7\u91cd\u5f53\u524d\u53d1\u9001\u4e0e\u63a5\u6536\u7ec4\u5408\u63d0\u4f9b\u4e86\u591a\u5c11\u8868\u8fbe\u4fe1\u53f7\uff1b\u7279\u5f02\u6027\u76f8\u5173\u6392\u540d\u4fa7\u91cd\u8fd9\u5bf9\u4fe1\u53f7\u76f8\u5bf9\u4e8e\u5176\u4ed6\u7fa4\u7ec4\u5408\u662f\u5426\u7a81\u51fa\u3002\u5b98\u65b9\u805a\u5408\u7ed3\u679c\u4e2d\u76f8\u5e94\u6392\u540d\u503c\u8d8a\u5c0f\u8d8a\u9760\u524d\u3002\u4e00\u4e2a\u914d\u4f53\u5982\u679c\u5728\u591a\u6570\u7fa4\u4e2d\u90fd\u8868\u8fbe\u5f97\u5f88\u9ad8\uff0c\u6709\u53ef\u80fd\u5728\u5f3a\u5ea6\u4e0a\u7a81\u51fa\uff0c\u5374\u4e0d\u7279\u522b\u6307\u5411\u67d0\u4e00\u7c7b\u53d1\u9001\u7ec6\u80de\u3002\u5173\u6ce8\u7b5b\u9009\u540e\u7684\u7279\u5f02\u6027\u4e0e\u5173\u6ce8\u53ef\u89c2\u6d4b\u7684\u8868\u8fbe\u5f3a\u5ea6\uff0c\u9700\u8981\u8bfb\u4e0d\u540c\u5217\u3002\u4e24\u5217\u90fd\u4e0d\u662f\u5728\u5355\u4f4d\u65f6\u95f4\u5185\u5b9e\u6d4b\u5230\u7684\u5206\u5b50\u901a\u91cf\uff0c\u4e5f\u4e0d\u80fd\u7528\u4e00\u4e2a\u6392\u540d\u503c\u58f0\u79f0\u6709\u591a\u5c11\u6982\u7387\u53d1\u751f\u4e86\u7ed3\u5408\u3002<a href=\"https:\/\/liana.readthedocs.io\/en\/stable\/tutorials\/notebooks\/basic_usage.html\">\u65b9\u6cd5\u6307\u6807\u4e0e\u805a\u5408\u8bf4\u660e<\/a><\/p>\n<h2 style=\"margin-top:30px;color:#183850;\">\u8fd9\u6b21\u5b9e\u8dd1\u5f97\u5230\u7684\u4e09\u4e2a\u7ecf\u9a8c<\/h2>\n<p>\u7b2c\u4e00\uff0c\u6bd4\u8f83\u4e24\u6b21\u5206\u6790\u65f6\uff0c\u5148\u56fa\u5b9a\u53d1\u9001\u7fa4\u3001\u63a5\u6536\u7fa4\u3001\u914d\u4f53\u590d\u5408\u7269\u4e0e\u53d7\u4f53\u590d\u5408\u7269\u8fd9\u56db\u9879\uff0c\u518d\u8fde\u63a5\u7ed3\u679c\u8868\u3002\u82e5\u53ea\u6309\u914d\u4f53\u548c\u53d7\u4f53\u4e24\u5217\u8fde\u63a5\uff0c\u540c\u4e00\u5bf9\u5206\u5b50\u5728\u591a\u4e2a\u7ec6\u80de\u65b9\u5411\u4e0a\u51fa\u73b0\u5c31\u4f1a\u9020\u6210\u91cd\u590d\u5339\u914d\u3002\u7ec4\u540d\u53d1\u751f\u5408\u5e76\u65f6\u8fd8\u8981\u4fdd\u5b58\u65e7\u7fa4\u5230\u65b0\u7fa4\u7684\u5bf9\u5e94\u8868\uff0c\u5426\u5219\u4ece\u8f93\u51fa\u4e0a\u770b\u53ea\u662f\u4e24\u79cd\u4e0d\u540c\u540d\u79f0\uff0c\u5e76\u4e0d\u80fd\u770b\u51fa\u5b83\u4eec\u5171\u6709\u54ea\u4e00\u6279\u7ec6\u80de\u3002<\/p>\n<p>\u7b2c\u4e8c\uff0c\u62a5\u544a\u5019\u9009\u7f3a\u5931\u65f6\uff0c\u540c\u65f6\u7ed9\u51fa\u53d1\u9001\u4e0e\u63a5\u6536\u4e24\u8fb9\u7684\u9633\u6027\u7ec6\u80de\u6570\u548c\u5206\u6bcd\u3002\u8fd9\u6837\u80fd\u5224\u65ad\u7a76\u7adf\u662f\u67d0\u4e00\u4fa7\u8dcc\u7834\u68c0\u51fa\u95e8\u69db\u3001\u6574\u4e2a\u7ec6\u80de\u7fa4\u4e0d\u591f\u5927\uff0c\u8fd8\u662f\u8be5\u914d\u5bf9\u672c\u6765\u5c31\u4e0d\u5728\u5f53\u524d\u8d44\u6e90\u4e2d\u3002\u672c\u4f8b\u6709\u610f\u8ba9\u63a5\u6536\u7aef\u6301\u7eed\u6709\u4fe1\u53f7\uff0c\u771f\u5b9e\u6837\u672c\u5219\u53ef\u80fd\u4e24\u7aef\u90fd\u63a5\u8fd1\u95e8\u69db\u3002\u5982\u679c\u6309\u4f9b\u4f53\u7edf\u8ba1\u540e\u53d1\u73b0\u53ea\u6709\u4e00\u4f4d\u75c5\u4eba\u652f\u6301\u8fd9\u5bf9\u5019\u9009\uff0c\u805a\u5408\u6240\u6709\u7ec6\u80de\u5f97\u5230\u7684\u4fe1\u53f7\u4e0d\u8db3\u4ee5\u8bf4\u660e\u5b83\u80fd\u5728\u6574\u4e2a\u75c5\u4f8b\u7ec4\u590d\u73b0\u3002<\/p>\n<p>\u7b2c\u4e09\uff0c\u5408\u5e76\u524d\u540e\u7684\u5019\u9009\u7a7a\u95f4\u4e5f\u6539\u53d8\u4e86\u3002\u539f\u6765\u56db\u4e2a\u7fa4\u53ef\u7ec4\u6210\u7684\u6709\u5411\u7ec4\u5408\uff0c\u6bd4\u5408\u5e76\u540e\u4e09\u4e2a\u7fa4\u66f4\u591a\uff1b\u7b5b\u9009\u6bd4\u4f8b\u53c8\u51b3\u5b9a\u54ea\u4e9b\u7ec4\u5408\u6709\u8d44\u683c\u53c2\u4e0e\u6392\u540d\u3002\u5373\u4fbf\u540c\u4e00\u914d\u5bf9\u5728\u4e24\u5f20\u8868\u91cc\u90fd\u5b58\u5728\uff0c\u4e5f\u4e0d\u80fd\u628a\u540d\u6b21\u5dee\u76f4\u63a5\u89e3\u91ca\u6210\u751f\u7269\u5b66\u500d\u6570\u53d8\u5316\u3002\u6700\u503c\u5f97\u4f18\u5148\u9a8c\u8bc1\u7684\u662f\u5728\u5408\u7406\u5206\u7ec4\u3001\u76f8\u540c\u7b5b\u9009\u89c4\u5219\u548c\u591a\u4e2a\u6837\u672c\u4e2d\u4ecd\u6709\u652f\u6301\u7684\u5019\u9009\u3002\u5982\u679c\u7814\u7a76\u4e0a\u786e\u6709\u5fc5\u8981\u7ec6\u5206\u7532\u7fa4\uff0c\u5148\u7528\u4e0e L1 \u65e0\u5173\u7684\u6807\u8bb0\u6216\u5b9e\u9a8c\u4fe1\u606f\u652f\u6301\u7ec6\u5206\uff0c\u518d\u95ee\u5b83\u662f\u5426\u4ea7\u751f\u66f4\u660e\u786e\u7684\u53d1\u9001\u6765\u6e90\uff0c\u907f\u514d\u7528\u540c\u4e00\u4e2a\u914d\u4f53\u5148\u5b9a\u4e49\u4e9a\u7fa4\u53c8\u8bc1\u660e\u5b83\u7279\u5f02\u3002<\/p>\n<h2 style=\"margin-top:30px;color:#183850;\">\u600e\u6837\u590d\u73b0<\/h2>\n<p>\u4e0b\u9762\u662f\u672c\u6b21\u5b8c\u6574\u811a\u672c\uff0c\u4fdd\u5b58\u4e3a Python \u6587\u4ef6\u540e\u8fd0\u884c\u5373\u53ef\u751f\u6210\u539f\u59cb\u8ba1\u6570\u3001\u4e09\u5f20\u5b8c\u6574\u7ed3\u679c\u8868\u53ca\u7248\u672c\u8bb0\u5f55\u3002\u7ed3\u679c\u8868\u4ec5\u5217\u5165\u901a\u8fc7\u7b5b\u9009\u7684\u5019\u9009\u3002\u811a\u672c\u6700\u540e\u8fd8\u68c0\u67e5\u76ee\u6807\u884c\u662f\u5426\u6309\u9884\u671f\u5148\u4fdd\u7559\u3001\u518d\u7f3a\u5931\u3001\u518d\u6062\u590d\u3002\u4f7f\u7528\u76f8\u540c\u6570\u636e\u505a\u81ea\u5df1\u7684\u53d8\u5f0f\u65f6\uff0c\u4e00\u6b21\u53ea\u6539\u4e00\u9879\uff0c\u4f8b\u5982\u56fa\u5b9a\u5206\u7ec4\u540e\u6539\u53d8\u95e8\u69db\uff0c\u518d\u89c2\u5bdf\u5dee\u5f02\u51fa\u73b0\u5728\u7b5b\u9009\u8fd8\u662f\u5019\u9009\u6392\u5e8f\u9636\u6bb5\u3002<\/p>\n<pre style=\"max-width:100%;overflow-x:auto;background:#f1f8ff;padding:14px;\"><code class=\"language-bash\">python -m pip install liana==2.1.1\n<\/code><\/pre>\n<pre style=\"max-width:100%;overflow-x:auto;background:#f1f8ff;padding:14px;\"><code class=\"language-python\">&quot;&quot;&quot;Synthetic LIANA+ grouping experiment. Run with Python 3.12 and liana==2.1.1.&quot;&quot;&quot;\nfrom pathlib import Path\nimport json\nimport platform\nfrom importlib.metadata import version\n\nimport anndata as ad\nimport liana as li\nimport numpy as np\nimport pandas as pd\nfrom scipy.sparse import csr_matrix\n\nout = Path(__file__).resolve().parent\nrng = np.random.default_rng(42)\ngenes = [&quot;L1&quot;, &quot;R1&quot;, &quot;L2&quot;, &quot;R2&quot;, &quot;L3&quot;, &quot;R3&quot;, &quot;H1&quot;, &quot;H2&quot;]\ngroups = np.repeat([&quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;D&quot;], [20, 20, 20, 40])\ncounts = rng.poisson(2, (len(groups), len(genes)))\ncounts[:, 0] = 0\ncounts[groups == &quot;A&quot;, 0] = rng.integers(8, 15, (groups == &quot;A&quot;).sum())\ncounts[groups == &quot;B&quot;, 1] += 15\ncounts[groups == &quot;C&quot;, 2] += 12\ncounts[groups == &quot;D&quot;, 3] += 10\nobs = pd.DataFrame({&quot;fine&quot;: groups}, index=[f&quot;cell{i}&quot; for i in range(len(groups))])\nobs[&quot;merged&quot;] = obs[&quot;fine&quot;].replace({&quot;A&quot;: &quot;AD&quot;, &quot;D&quot;: &quot;AD&quot;})\npd.DataFrame(counts, index=obs.index, columns=genes).join(obs).to_csv(out \/ &quot;input.csv&quot;)\nx = np.log1p(counts \/ counts.sum(axis=1, keepdims=True) * 10000).astype(&quot;float32&quot;)\nadata = ad.AnnData(csr_matrix(x), obs=obs, var=pd.DataFrame(index=genes))\nrecords = []\nfor key, cutoff in [(&quot;fine&quot;, .4), (&quot;merged&quot;, .4), (&quot;merged&quot;, .3)]:\n    label = &quot;A&quot; if key == &quot;fine&quot; else &quot;AD&quot;\n    result = li.mt.rank_aggregate(\n        adata, groupby=key, interactions=[(&quot;L1&quot;,&quot;R1&quot;),(&quot;L2&quot;,&quot;R2&quot;),(&quot;L3&quot;,&quot;R3&quot;)],\n        expr_prop=cutoff, min_cells=5, use_raw=False, n_perms=100,\n        seed=42, n_jobs=1, inplace=False,\n    )\n    result.to_csv(out \/ f&quot;{key}-{cutoff}.csv&quot;, index=False)\n    hit = result.query(&quot;source == @label and target == 'B' and ligand_complex == 'L1' and receptor_complex == 'R1'&quot;)\n    senders = (obs[key] == label).to_numpy()\n    records.append(dict(group=key, threshold=cutoff, rows=len(result),\n                        source=label, positive=int((counts[senders,0]&gt;0).sum()),\n                        total=int(senders.sum()), magnitude=hit.magnitude_rank.tolist(),\n                        specificity=hit.specificity_rank.tolist()))\nassert [len(row[&quot;magnitude&quot;]) for row in records] == [1, 0, 1]\nreport = {&quot;python&quot;: platform.python_version(), &quot;versions&quot;: {name:version(name) for name in\n          [&quot;liana&quot;,&quot;numpy&quot;,&quot;scipy&quot;,&quot;pandas&quot;,&quot;anndata&quot;,&quot;scanpy&quot;]}, &quot;runs&quot;:records}\n(out \/ &quot;run.json&quot;).write_text(json.dumps(report, indent=2), encoding=&quot;utf-8&quot;)\nprint(json.dumps(report))\n<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6574\u5408\u914d\u4f53\uff0d\u53d7\u4f53\u7b49\u7ec6\u80de\u901a\u8baf\u5206\u6790\u65b9\u6cd5<\/p>\n","protected":false},"author":1,"featured_media":68277,"comment_status":"closed","ping_status":"closed","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":[1,75],"tags":[605,717],"class_list":["post-68278","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-part","category-compute-environment","tag-github-","tag-liana"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/repo500-039-scverse-liana.png?fit=1080%2C860&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68278","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=68278"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68278\/revisions"}],"predecessor-version":[{"id":82455,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68278\/revisions\/82455"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/68277"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=68278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=68278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=68278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}