{"id":68832,"date":"2026-11-14T21:03:30","date_gmt":"2026-11-14T13:03:30","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=68832"},"modified":"2026-11-14T21:03:30","modified_gmt":"2026-11-14T13:03:30","slug":"squidpy-neighborhood-enrichment-radius-null-edges","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/squidpy-neighborhood-enrichment-radius-null-edges\/","title":{"rendered":"Squidpy \u8bf4\u4e24\u7c7b\u7ec6\u80de\u76f8\u90bb\u5bcc\u96c6\uff0c\u5148\u770b\u770b\u54ea\u4e24\u70b9\u7b97\u90bb\u5c45"},"content":{"rendered":"<div class=\"ysx-method-guide\" style=\"max-width:820px;min-width:0;margin:0 auto;color:#26374a;line-height:1.86;overflow-wrap:anywhere\">\n<p>\u4e00\u5f20\u7a7a\u95f4\u56fe\u663e\u793a\u80bf\u7624\u7ec6\u80de\u4e0e\u5de8\u566c\u7ec6\u80de\u76f8\u90bb\u5bcc\u96c6\u3002\u628a\u5efa\u56fe\u534a\u5f84\u4ece\u5341\u5fae\u7c73\u8c03\u5230\u4e09\u5341\u5fae\u7c73\uff0c\u539f\u6765\u7684\u7ea2\u8272\u533a\u57df\u5374\u51e0\u4e4e\u6d88\u5931\u3002\u4e24\u7ec4\u7ed3\u679c\u672a\u5fc5\u77db\u76fe\uff0c\u5341\u5fae\u7c73\u548c\u4e09\u5341\u5fae\u7c73\u53ef\u80fd\u5728\u56de\u7b54\u4e24\u4e2a\u4e0d\u540c\u7684\u7ec4\u7ec7\u5b66\u95ee\u9898\u3002\u5224\u65ad\u4e4b\u524d\uff0c\u6700\u597d\u5148\u4ece\u771f\u5b9e\u5750\u6807\u753b\u51fa\u4e00\u5c0f\u5757\u90bb\u5c45\u8fb9\uff0c\u7b97\u6e05\u7528\u4e86\u591a\u5927\u7684\u90bb\u8fd1\u5c3a\u5ea6\uff0c\u518d\u56de\u6765\u770b\u5bcc\u96c6\u5206\u6570\u7684\u5206\u6bcd\u3002\u4e0b\u9762\u7528\u6392\u6210\u4e00\u884c\u7684\u56db\u4e2a\u70b9\uff0c\u91cd\u73b0\u4ec5\u6539\u53d8\u534a\u5f84\u5c31\u8db3\u4ee5\u6539\u53d8\u7ed3\u679c\u7684\u539f\u56e0\u3002<\/p>\n<h2 style=\"font-size:1.38em;line-height:1.5;margin:1.55em 0 .55em;color:#182d43\">\u5148\u51b3\u5b9a\u90bb\u8fd1\u6307\u7ec6\u80de\u63a5\u89e6\u3001\u5c40\u90e8\u5171\u5c45\u8fd8\u662f\u540c\u5904\u4e00\u4e2a\u533a\u57df<\/h2>\n<p>\u5728\u6210\u50cf\u6570\u636e\u91cc\uff0c\u7ec6\u80de\u8d28\u8f6e\u5ed3\u771f\u6b63\u63a5\u89e6\uff0c\u7ec6\u80de\u4e2d\u5fc3\u672a\u5fc5\u7279\u522b\u8fd1\u3002\u5927\u7ec6\u80de\u548c\u5c0f\u7ec6\u80de\u7684\u4e2d\u5fc3\u8ddd\u79bb\u6070\u597d\u4e00\u6837\uff0c\u4e5f\u53ef\u80fd\u6709\u5b8c\u5168\u4e0d\u540c\u7684\u8fb9\u754c\u5173\u7cfb\u3002\u82e5\u8981\u7814\u7a76\u63a5\u89e6\u4f9d\u8d56\u7684\u4fe1\u53f7\uff0c\u8d28\u5fc3\u534a\u5f84\u53ea\u80fd\u4f5c\u4e3a\u8fd1\u4f3c\uff0c\u6709\u8fb9\u754c\u65f6\u53ef\u8fdb\u4e00\u6b65\u6838\u5bf9\u8f6e\u5ed3\u3002\u82e5\u95ee\u9898\u662f\u67d0\u7c7b\u7ec6\u80de\u662f\u5426\u805a\u5728\u540c\u4e00\u8840\u7ba1\u5468\u56f4\uff0c\u5219\u8f83\u5927\u7684\u7269\u7406\u534a\u5f84\u53ef\u80fd\u66f4\u8d34\u8fd1\u95ee\u9898\u3002\u5148\u6839\u636e\u7ec4\u7ec7\u5c3a\u5ea6\u786e\u5b9a\u8981\u63cf\u8ff0\u4ec0\u4e48\uff0c\u540e\u9762\u6539\u53d8\u534a\u5f84\u624d\u6709\u89e3\u91ca\u5bf9\u8c61\u3002<\/p>\n<p>\u4ece\u7a7a\u95f4\u5bf9\u8c61\u8bfb\u53d6\u5750\u6807\u540e\u8981\u67e5\u5355\u4f4d\u3002\u56fe\u50cf\u50cf\u7d20\u548c\u5fae\u7c73\u4e4b\u95f4\u9700\u8981\u5b9e\u9645\u6821\u51c6\uff0c\u7f29\u7565\u56fe\u4e0a\u7684\u50cf\u7d20\u4e5f\u672a\u5fc5\u7b49\u4e8e\u539f\u56fe\u50cf\u7d20\u3002\u591a\u4e2a\u5207\u7247\u7ecf\u5e38\u5404\u81ea\u628a\u5de6\u4e0a\u89d2\u8bb0\u4e3a\u96f6\uff0c\u76f4\u63a5\u62fc\u63a5\u5750\u6807\u4f1a\u9020\u6210\u4e0d\u540c\u5207\u7247\u7684\u7ec6\u80de\u53d8\u6210\u8fd1\u90bb\u3002\u5efa\u56fe\u65f6\u8ba9\u6bcf\u5f20\u5207\u7247\u72ec\u7acb\uff0c\u68c0\u67e5\u6700\u7ec8\u90bb\u63a5\u77e9\u9635\u4e2d\u662f\u5426\u6709\u8de8\u5207\u7247\u8fb9\u3002\u5373\u4f7f\u5c06\u4e0d\u540c\u5207\u7247\u5728\u753b\u5e03\u4e0a\u5e73\u79fb\u5f00\uff0c\u4e5f\u5e94\u8be5\u628a\u6765\u6e90\u5b57\u6bb5\u4fdd\u5b58\u4e0b\u6765\uff0c\u4e0d\u80fd\u4f9d\u8d56\u4e00\u5f20\u4e34\u65f6\u6392\u7248\u56fe\u7684\u5750\u6807\u95f4\u8ddd\u6765\u5b9a\u4e49\u771f\u5b9e\u7ec4\u7ec7\u90bb\u5c45\u3002<a style=\"color:#446a60;text-decoration:underline;text-underline-offset:2px\" href=\"https:\/\/squidpy.readthedocs.io\/en\/stable\/api\/squidpy.gr.spatial_neighbors_radius.html\">Squidpy \u534a\u5f84\u5efa\u56fe\u7684\u53c2\u6570\u4e0e\u8ddd\u79bb\u5b9a\u4e49<\/a><\/p>\n<h2 style=\"font-size:1.38em;line-height:1.5;margin:1.55em 0 .55em;color:#182d43\">\u7528\u56db\u4e2a\u70b9\u624b\u7b97\u90bb\u5c45\u8fb9\u4e0e\u968f\u673a\u57fa\u7ebf<\/h2>\n<p>\u8bbe\u4e00\u884c\u56db\u4e2a\u7ec6\u80de\u4e2d\u5fc3\u5206\u522b\u5728\u96f6\u3001\u5341\u3001\u4e8c\u5341\u3001\u4e09\u5341\u5fae\u7c73\u5904\uff0c\u7c7b\u578b\u4ece\u5de6\u5230\u53f3\u4e3a\u7532\u3001\u4e59\u3001\u7532\u3001\u4e59\u3002\u8bbe\u534a\u5f84\u5305\u542b\u6070\u597d\u7b49\u4e8e\u9608\u503c\u7684\u70b9\uff0c\u4e0d\u4fdd\u7559\u81ea\u73af\uff0c\u6bcf\u5bf9\u65e0\u5411\u90bb\u5c45\u53ea\u6570\u4e00\u6b21\u3002\u5341\u5fae\u7c73\u65f6\u53ea\u6709\u4e09\u5bf9\u76f8\u90bb\u4f4d\u7f6e\uff0c\u6bcf\u4e00\u5bf9\u90fd\u662f\u7532\u4e59\u3002\u4e8c\u5341\u4e00\u5fae\u7c73\u65f6\u8fd8\u4f1a\u52a0\u4e0a\u7b2c\u4e00\u4e0e\u7b2c\u4e09\u3001\u7b2c\u4e8c\u4e0e\u7b2c\u56db\u8fd9\u4e24\u5bf9\u540c\u7c7b\u7ec6\u80de\uff0c\u603b\u8fb9\u6570\u4ece\u4e09\u53d8\u6210\u4e94\uff0c\u7532\u4e59\u8fb9\u6570\u4ecd\u4e3a\u4e09\u3002<\/p>\n<div class=\"guide-table\" style=\"max-width:100%;overflow-x:auto;margin:18px 0\">\n<table style=\"display:table;width:100%;max-width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-size:.92em;line-height:1.6\">\n<thead>\n<tr>\n<th scope=\"col\" style=\"white-space:normal;overflow-wrap:anywhere;word-break:normal;background:#edf9f1;color:#1e293b;vertical-align:top;text-align:left;padding:6px;border:1px solid #c4cfdb\">\u534a\u5f84<\/th>\n<th scope=\"col\" style=\"white-space:normal;overflow-wrap:anywhere;word-break:normal;background:#edf9f1;color:#1e293b;vertical-align:top;text-align:right;padding:6px;border:1px solid #c4cfdb\">\u65e0\u5411\u8fb9\u6570<\/th>\n<th scope=\"col\" style=\"white-space:normal;overflow-wrap:anywhere;word-break:normal;background:#edf9f1;color:#1e293b;vertical-align:top;text-align:right;padding:6px;border:1px solid #c4cfdb\">\u7532\u4e59\u8fb9\u6570<\/th>\n<th scope=\"col\" style=\"white-space:normal;overflow-wrap:anywhere;word-break:normal;background:#edf9f1;color:#1e293b;vertical-align:top;text-align:right;padding:6px;border:1px solid #c4cfdb\">\u7532\u4e59\u8fb9\u5360\u6bd4<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:6px;vertical-align:top;border:1px solid #c4cfdb\">10 \u5fae\u7c73<\/td>\n<td style=\"white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:6px;vertical-align:top;border:1px solid #c4cfdb;text-align:right\">3<\/td>\n<td style=\"white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:6px;vertical-align:top;border:1px solid #c4cfdb;text-align:right\">3<\/td>\n<td style=\"white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:6px;vertical-align:top;border:1px solid #c4cfdb;text-align:right\">100%<\/td>\n<\/tr>\n<tr>\n<td style=\"white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:6px;vertical-align:top;border:1px solid #c4cfdb\">21 \u5fae\u7c73<\/td>\n<td style=\"white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:6px;vertical-align:top;border:1px solid #c4cfdb;text-align:right\">5<\/td>\n<td style=\"white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:6px;vertical-align:top;border:1px solid #c4cfdb;text-align:right\">3<\/td>\n<td style=\"white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:6px;vertical-align:top;border:1px solid #c4cfdb;text-align:right\">60%<\/td>\n<\/tr>\n<tr>\n<td style=\"white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:6px;vertical-align:top;border:1px solid #c4cfdb\">31 \u5fae\u7c73<\/td>\n<td style=\"white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:6px;vertical-align:top;border:1px solid #c4cfdb;text-align:right\">6<\/td>\n<td style=\"white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:6px;vertical-align:top;border:1px solid #c4cfdb;text-align:right\">4<\/td>\n<td style=\"white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:6px;vertical-align:top;border:1px solid #c4cfdb;text-align:right\">\u7ea6 67%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<figure class=\"guide-figure\" style=\"margin:24px 0 28px\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/squidpy-neighborhood-enrichment-radius-null-edges-guide.png?resize=1200%2C840&#038;ssl=1\" alt=\"\u534a\u5f84\u4e00\u6539\uff0c\u90bb\u57df\u5bcc\u96c6\u4e3a\u4f55\u4e5f\u4f1a\u6539\u3002\u6559\u5b66\u7b97\u4f8b\uff5c\u56db\u4e2a\u7ec6\u80de\u6bcf\u9694\u5341\u5fae\u7c73\u4e00\u4e2a\uff0c\u7c7b\u578b\u4f9d\u6b21\u4e3a\u7532\u4e59\u7532\u4e59\u300210 \u00b5m\uff0c\u4e09\u6761\u8fb9\uff0c\u5168\u662f\u5f02\u7c7b\u90bb\u5c45\uff0c\u56fa\u5b9a\u56db\u4e2a\u6807\u7b7e\u968f\u673a\u7f6e\u6362\uff0c\u5f02\u7c7b\u8fb9\u9884\u671f\u4e3a\u4e24\u6761\u300221 \u00b5m\uff0c\u4e94\u6761\u8fb9\uff0c\u5176\u4e2d\u4e09\u6761\u5f02\u7c7b\uff0c\u65b0\u7eb3\u5165\u7684\u4e24\u6761\u90fd\u662f\u540c\u7c7b\u8fb9\u300231 \u00b5m\uff0c\u516d\u6761\u8fb9\uff0c\u5176\u4e2d\u56db\u6761\u5f02\u7c7b\uff0c\u56fe\u5b8c\u5168\u8fde\u901a\uff0c\u968f\u673a\u7f6e\u6362\u540e\u8fd9\u4e2a\u8ba1\u6570\u59cb\u7ec8\u76f8\u540c\u3002\" width=\"1200\" height=\"840\" style=\"display:block;width:100%;height:auto;border-radius:10px\"><figcaption style=\"font-size:14px;line-height:1.6;margin:9px 2px 0;color:#475569\">\u6559\u5b66\u7b97\u4f8b\uff5c\u56db\u4e2a\u7ec6\u80de\u6bcf\u9694\u5341\u5fae\u7c73\u4e00\u4e2a\uff0c\u7c7b\u578b\u4f9d\u6b21\u4e3a\u7532\u4e59\u7532\u4e59\u3002<\/figcaption><\/figure>\n<p>\u56db\u4e2a\u70b9\u4e2d\u4e24\u7532\u4e24\u4e59\uff0c\u5982\u679c\u5c06\u56db\u4e2a\u73b0\u6709\u6807\u7b7e\u968f\u673a\u5206\u914d\u5230\u56db\u4e2a\u56fa\u5b9a\u4f4d\u7f6e\uff0c\u4e24\u4e24\u4efb\u9009\u5171\u6709\u516d\u79cd\u914d\u5bf9\uff0c\u5176\u4e2d\u56db\u79cd\u8de8\u7c7b\u578b\u3002\u5bf9\u4e8e\u56fa\u5b9a\u56fe\u91cc\u7684\u4efb\u4f55\u4e00\u6761\u65e0\u5411\u8fb9\uff0c\u968f\u673a\u65f6\u5f02\u7c7b\u7684\u9884\u671f\u6982\u7387\u90fd\u662f\u4e09\u5206\u4e4b\u4e8c\u3002\u56e0\u6b64\u5341\u5fae\u7c73\u56fe\u7684\u968f\u673a\u9884\u671f\u662f\u4e24\u6761\u7532\u4e59\u8fb9\uff0c\u5b9e\u9645\u89c2\u5bdf\u5230\u4e09\u6761\uff0c\u4e8c\u5341\u4e00\u5fae\u7c73\u56fe\u7684\u9884\u671f\u4e3a\u4e94\u4e58\u4e09\u5206\u4e4b\u4e8c\uff0c\u5b9e\u9645\u53ea\u6709\u4e09\u6761\uff0c\u5230\u4e09\u5341\u4e00\u5fae\u7c73\u65f6\u56fe\u5df2\u7ecf\u5b8c\u5168\u8fde\u901a\uff0c\u65e0\u8bba\u5982\u4f55\u6253\u4e71\u6807\u7b7e\uff0c\u7532\u4e59\u8fb9\u90fd\u6070\u597d\u56db\u6761\u3002\u8fd9\u4e2a\u6781\u7aef\u60c5\u51b5\u4e0b\u7f6e\u6362\u6807\u51c6\u5dee\u4e3a\u96f6\uff0c\u4e0d\u80fd\u518d\u9760\u6807\u51c6\u5316\u5206\u6570\u533a\u5206\u4efb\u4f55\u7a7a\u95f4\u6392\u5217\u3002<\/p>\n<p>\u624b\u7b97\u7684\u662f\u65e0\u5411\u603b\u4f53\u8fb9\u3002\u8f6f\u4ef6\u8f93\u51fa\u6309\u6765\u6e90\u7c7b\u578b\u4e0e\u90bb\u5c45\u7c7b\u578b\u7ec4\u7ec7\uff0c\u67d0\u4e9b\u8bfb\u6cd5\u8fd8\u4f1a\u533a\u5206\u7532\u5230\u4e59\u4e0e\u4e59\u5230\u7532\uff0c\u4ee5\u53ca\u540c\u7c7b\u578b\u8fb9\u5728\u5bf9\u79f0\u77e9\u9635\u4e2d\u7684\u4e24\u7aef\u3002\u4f5c\u6838\u5bf9\u65f6\u59cb\u7ec8\u4fdd\u6301\u8ba1\u6570\u53e3\u5f84\u4e00\u81f4\u3002\u7f6e\u6362\u6807\u51c6\u5206\u53cd\u6620\u89c2\u6d4b\u4e0e\u7f6e\u6362\u5747\u503c\u4e4b\u95f4\u76f8\u5dee\u591a\u5c11\u4e2a\u7f6e\u6362\u6807\u51c6\u5dee\uff0c\u7edd\u4e0d\u662f\u201c\u76f8\u90bb\u6982\u7387\u4e3a\u591a\u5c11\u201d\u3002\u540c\u4e00\u4efd\u6570\u636e\u91cc\u7a00\u6709\u7fa4\u548c\u4e30\u5bcc\u7fa4\u62e5\u6709\u7684\u53ef\u7528\u8fb9\u6570\u5dee\u5f88\u591a\uff0c\u4e24\u5f20\u90fd\u4e3a\u6df1\u7ea2\u8272\u7684\u683c\u5b50\u4e5f\u53ef\u80fd\u5bf9\u5e94\u622a\u7136\u4e0d\u540c\u7684\u7edd\u5bf9\u8fb9\u6570\u3002<a style=\"color:#446a60;text-decoration:underline;text-underline-offset:2px\" href=\"https:\/\/squidpy.readthedocs.io\/en\/stable\/api\/squidpy.gr.nhood_enrichment.html\">Squidpy \u90bb\u57df\u5bcc\u96c6\u7684\u8ba1\u6570\u4e0e\u7f6e\u6362\u8f93\u51fa<\/a><\/p>\n<h2 style=\"font-size:1.38em;line-height:1.5;margin:1.55em 0 .55em;color:#182d43\">\u5efa\u56fe\u540e\u5148\u67e5\u6709\u6ca1\u6709\u8de8\u7247\u7684\u8fb9<\/h2>\n<p>\u4e0b\u4f8b\u5047\u8bbe\u6240\u7528 Squidpy \u7248\u672c\u63d0\u4f9b\u534a\u5f84\u5efa\u56fe\u63a5\u53e3\uff0c\u5750\u6807\u5df2\u6362\u4e3a\u5fae\u7c73\uff0c\u5207\u7247\u7f16\u53f7\u548c\u7c7b\u578b\u5df2\u8bbe\u4e3a\u7c7b\u522b\u5217\u3002\u793a\u8303\u534a\u5f84\u7528\u4e8c\u5341\u4e00\uff0c\u4e0e\u4e0a\u8868\u5bf9\u5e94\u3002\u90bb\u63a5\u662f\u6309\u5207\u7247\u6784\u9020\u7684\uff0c\u968f\u540e\u7edf\u8ba1\u65f6\u4ecd\u63d0\u4f9b\u5207\u7247\u7f16\u53f7\uff0c\u4ee5\u4fbf\u5728\u76f8\u5e94\u5207\u7247\u5185\u5bf9\u6807\u7b7e\u4f5c\u7f6e\u6362\u3002\u4ee3\u7801\u5148\u68c0\u67e5\u8fb9\u7684\u4e24\u4e2a\u7aef\u70b9\u662f\u5426\u771f\u7684\u6765\u81ea\u540c\u4e00\u5f20\u5207\u7247\uff0c\u518d\u8ba1\u7b97\u5bcc\u96c6\u3002<\/p>\n<pre style=\"max-width:100%;box-sizing:border-box;overflow-x:auto;margin:18px 0;padding:14px 16px;background:#f3f6fa;color:#1a293c;border:1px solid #d8e1ea;border-radius:8px;line-height:1.55;white-space:pre;overflow-wrap:normal;word-break:normal\"><code class=\"language-python\">import squidpy as sq\r\n\r\nsq.gr.spatial_neighbors_radius(adata, spatial_key=&quot;spatial_um&quot;, radius=21,\r\n                               library_key=&quot;slide&quot;)\r\ngraph = adata.obsp[&quot;spatial_connectivities&quot;].tocoo()\r\nslide = adata.obs[&quot;slide&quot;].to_numpy()\r\nassert (slide[graph.row] == slide[graph.col]).all()\r\nsq.gr.nhood_enrichment(adata, cluster_key=&quot;cell_type&quot;, library_key=&quot;slide&quot;)\r\n<\/code><\/pre>\n<p>\u53e6\u4e00\u9879\u68c0\u67e5\u662f\u6bcf\u5f20\u5207\u7247\u7684\u5ea6\u5206\u5e03\uff0c\u4e5f\u5c31\u662f\u6bcf\u4e2a\u7ec6\u80de\u6709\u591a\u5c11\u6761\u90bb\u5c45\u8fb9\u3002\u7ec4\u7ec7\u8fb9\u7f18\u548c\u5207\u5272\u5b54\u6d1e\u9644\u8fd1\u7684\u7ec6\u80de\u5bb9\u6613\u5929\u7136\u5c11\u90bb\u5c45\uff0c\u5bc6\u96c6\u80bf\u7624\u5de2\u7684\u4e2d\u5fc3\u5219\u53ef\u80fd\u6709\u5f88\u591a\u3002\u82e5\u56fe\u8fde\u7ebf\u663e\u8457\u8de8\u8fc7\u7a7a\u8154\u6216\u7ec4\u7ec7\u88c2\u9699\uff0c\u6b27\u6c0f\u8ddd\u79bb\u867d\u77ed\uff0c\u751f\u7269\u5b66\u8def\u5f84\u5374\u672a\u5fc5\u5b58\u5728\u3002\u753b\u51e0\u5757\u7ec4\u7ec7\u5b9e\u666f\uff0c\u628a\u8fb9\u8986\u76d6\u5728\u63a9\u819c\u4e0a\u68c0\u67e5\uff0c\u518d\u51b3\u5b9a\u9700\u4e0d\u9700\u8981\u6392\u9664\u8de8\u7a7a\u767d\u7684\u8fde\u7ebf\uff0c\u6216\u6539\u7528\u80fd\u591f\u53cd\u6620\u7ec4\u7ec7\u7ed3\u6784\u7684\u90bb\u63a5\u5b9a\u4e49\u3002<\/p>\n<h2 style=\"font-size:1.38em;line-height:1.5;margin:1.55em 0 .55em;color:#182d43\">\u5b9e\u8dd1\u7ecf\u9a8c\uff5c\u6f0f\u586b\u5207\u7247\u5217\uff0c\u5341\u6761\u8de8\u7247\u8fb9\u8fdb\u5165\u4e86\u7ed3\u679c<\/h2>\n<p>\u6211\u4eec\u5b89\u88c5 Squidpy 1.8.4\uff0c\u628a\u524d\u9762\u56db\u70b9\u7684\u89c6\u91ce\u590d\u5236\u6210\u4e24\u5f20\u5750\u6807\u5b8c\u5168\u91cd\u5408\u7684\u6a21\u62df\u5207\u7247\u3002\u5148\u4f20\u5165\u5207\u7247\u7f16\u53f7\u5206\u522b\u6784\u56fe\uff0c\u518d\u7528\u7a00\u758f\u77e9\u9635\u4e0a\u4e09\u89d2\u6570\u65e0\u5411\u8fb9\u3002\u534a\u5f84\u4e3a\u5341\u3001\u4e8c\u5341\u4e00\u548c\u4e09\u5341\u4e00\u5fae\u7c73\u65f6\uff0c\u4e24\u7247\u5408\u8ba1\u5206\u522b\u6709\u516d\u6761\u3001\u5341\u6761\u548c\u5341\u4e8c\u6761\u8fb9\uff0c\u5f02\u7c7b\u8fb9\u5206\u522b\u662f\u516d\u6761\u3001\u516d\u6761\u548c\u516b\u6761\u3002\u534a\u5f84\u4e8c\u5341\u4e00\u65f6\uff0c\u8f6f\u4ef6\u8fd4\u56de\u7684\u6709\u5411\u8ba1\u6570\u77e9\u9635\u4e24\u884c\u5206\u522b\u4e3a\u201c\u56db\u3001\u516d\u201d\u548c\u201c\u516d\u3001\u56db\u201d\uff0c\u56db\u4e2a\u683c\u5b50\u52a0\u8d77\u6765\u4e3a\u4e8c\u5341\uff0c\u6b63\u597d\u662f\u5341\u6761\u65e0\u5411\u8fb9\u7684\u4e24\u500d\u3002\u4e0e\u624b\u7b97\u6bd4\u5bf9\u65f6\uff0c\u53ea\u53d6\u4e00\u4e2a\u4e09\u89d2\u7684\u603b\u8fb9\u6216\u5148\u8bf4\u660e\u8ba1\u6570\u65b9\u5411\uff0c\u4fbf\u4e0d\u4f1a\u628a\u8fd9\u4e2a\u500d\u6570\u5f53\u6210\u8f6f\u4ef6\u591a\u8fde\u4e86\u8fb9\u3002<\/p>\n<p>\u5728\u5404\u7247\u5185\u90e8\u7f6e\u6362\u6807\u7b7e\uff0c\u56fa\u5b9a\u79cd\u5b50\u4e09\u5341\u4e03\uff0c\u505a\u4e8c\u767e\u4e94\u5341\u516d\u6b21\u3002\u7532\u5230\u4e59\u7684\u6807\u51c6\u5206\u4ece\u534a\u5f84\u5341\u65f6\u7ea6 1.76\uff0c\u53d8\u4e3a\u534a\u5f84\u4e8c\u5341\u4e00\u65f6\u7ea6 \u22121.09\uff0c\u6700\u5927\u534a\u5f84\u4e0b\u56db\u4e2a\u683c\u5b50\u5168\u90fd\u5f97\u5230\u975e\u6709\u9650\u503c\u3002\u6b64\u65f6\u6bcf\u7247\u5df2\u7ecf\u5b8c\u5168\u8fde\u901a\uff0c\u6362\u6807\u7b7e\u786e\u5b9e\u6539\u53d8\u4e0d\u4e86\u7532\u4e59\u8fb9\u603b\u6570\u3002\u6700\u540e\u53ea\u6539\u4e00\u4e2a\u53c2\u6570\uff0c\u62ff\u6389\u5207\u7247\u7f16\u53f7\uff0c\u5728\u534a\u5f84\u5341\u91cd\u65b0\u6784\u56fe\u3002\u603b\u8fb9\u6570\u589e\u52a0\u5230\u5341\u516d\u6761\uff0c\u5176\u4e2d\u5341\u6761\u8de8\u8d8a\u4e86\u4e24\u5f20\u7269\u7406\u4e0a\u4e92\u4e0d\u63a5\u89e6\u7684\u5207\u7247\u3002\u540c\u4e00\u5750\u6807\u51fa\u73b0\u5927\u91cf\u8fd1\u90bb\u65f6\uff0c\u68c0\u67e5\u8fb9\u4e24\u7aef\u7684\u6837\u672c\u7f16\u53f7\u6bd4\u76ee\u6d4b\u5e73\u9762\u6563\u70b9\u56fe\u66f4\u76f4\u63a5\u3002<\/p>\n<h2 style=\"font-size:1.38em;line-height:1.5;margin:1.55em 0 .55em;color:#182d43\">\u533a\u5206\u7ec4\u7ec7\u7ed3\u6784\u548c\u540c\u4e00\u7ec4\u7ec7\u533a\u5185\u90e8\u7684\u504f\u597d<\/h2>\n<p>\u5982\u679c\u7532\u4e59\u90fd\u504f\u7231\u80bf\u7624\u8fb9\u7f18\uff0c\u5373\u4f7f\u5b83\u4eec\u5728\u8fb9\u7f18\u5185\u90e8\u5e76\u4e0d\u7279\u522b\u9760\u8fd1\uff0c\u62ff\u6574\u5f20\u5207\u7247\u968f\u673a\u6253\u4e71\u6807\u7b7e\u4e5f\u53ef\u80fd\u5f97\u5230\u660e\u663e\u5bcc\u96c6\u3002\u628a\u95ee\u9898\u6539\u6210\u201c\u5728\u540c\u4e00\u7ec4\u7ec7\u533a\u57df\u5185\u90e8\uff0c\u4e24\u8005\u662f\u5426\u4ecd\u7136\u5f7c\u6b64\u63a5\u8fd1\u201d\uff0c\u5c31\u9700\u8981\u5728\u5408\u9002\u7684\u533a\u57df\u5185\u6bd4\u8f83\u6216\u8bbe\u8ba1\u4fdd\u7559\u7ec4\u7ec7\u5206\u533a\u7684\u7f6e\u6362\u3002\u82e5\u5355\u72ec\u88c1\u51fa\u533a\u57df\uff0c\u5e94\u8bf4\u660e\u662f\u5426\u4fdd\u7559\u8de8\u533a\u57df\u7684\u8fb9\u3001\u8fb9\u7f18\u70b9\u5982\u4f55\u5904\u7406\u3002\u4e0d\u540c\u7a7a\u6a21\u578b\u4fdd\u7559\u7684\u7ed3\u6784\u4e0d\u540c\uff0c\u5f97\u5230\u4e0d\u540c\u7ed3\u8bba\u6b63\u597d\u6709\u52a9\u4e8e\u8fa8\u8ba4\u4fe1\u53f7\u662f\u7531\u5927\u5c3a\u5ea6\u7ec4\u7ec7\u5206\u5e03\uff0c\u8fd8\u662f\u66f4\u5c40\u90e8\u7684\u76f8\u4e92\u90bb\u8fd1\u63a8\u52a8\u3002<\/p>\n<p class=\"guide-end\" style=\"margin-top:1.6em;padding-top:1.0em;border-top:1px solid #d7e0e9\">\u6700\u540e\u9010\u5f20\u5207\u7247\u6c47\u603b\u771f\u5b9e\u8fb9\u6570\u3001\u9884\u671f\u8fb9\u6570\u3001\u7ec6\u80de\u7c7b\u578b\u5360\u6bd4\u53ca\u5019\u9009\u65b9\u5411\uff0c\u518d\u6838\u5bf9\u4e0d\u540c\u4f9b\u4f53\u662f\u5426\u590d\u73b0\u3002\u62e5\u6709\u5341\u4e07\u679a\u7ec6\u80de\u7684\u4e00\u5f20\u5207\u7247\u4e5f\u53ea\u4ee3\u8868\u5176\u5b9e\u9645\u53d6\u6750\u6765\u6e90\u3002\u82e5\u8981\u63a8\u5e7f\u5230\u67d0\u4e00\u7c7b\u60a3\u8005\uff0c\u628a\u72ec\u7acb\u4f9b\u4f53\u548c\u7ec4\u7ec7\u533a\u57df\u4ea4\u4ee3\u6e05\u695a\uff0c\u6bd4\u53ea\u62a5\u544a\u4e00\u4e2a\u5f88\u9ad8\u7684\u7f6e\u6362\u5206\u6570\u66f4\u80fd\u8ba9\u8bfb\u8005\u5224\u65ad\u8bc1\u636e\u3002\u9700\u8981\u5728\u591a\u5207\u7247\u4e0a\u53cd\u590d\u6784\u56fe\u3001\u5171\u4eab\u5750\u6807\u548c\u7f6e\u6362\u6d41\u7a0b\u65f6\uff0c\u53ef\u4e86\u89e3<a data-ysx-event=\"contact_click\" style=\"color:#446a60;text-decoration:underline;text-underline-offset:2px\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/compute-services\/shared-research-workspace\/\">\u4e91\u751f\u4fe1\u7684\u751f\u7269\u4fe1\u606f\u5206\u6790\u670d\u52a1\u5668<\/a>\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u7528\u56db\u4e2a\u5750\u6807\u70b9\u9010\u8fb9\u8ba1\u7b97\uff0c\u5b66\u4e60\u8bbe\u5b9a\u7269\u7406\u534a\u5f84\u3001\u907f\u514d\u8de8\u5207\u7247\u8fde\u7ebf\u5e76\u89e3\u8bfb\u7f6e\u6362\u5bcc\u96c6\u3002<\/p>\n","protected":false},"author":1,"featured_media":68831,"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":[49,72],"tags":[828,829,830],"class_list":["post-68832","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","category-transcriptomics","tag-squidpy","tag-829","tag-830"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/squidpy-neighborhood-enrichment-radius-null-edges-guide.png?fit=1200%2C840&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68832","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=68832"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68832\/revisions"}],"predecessor-version":[{"id":68834,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68832\/revisions\/68834"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/68831"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=68832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=68832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=68832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}