{"id":79581,"date":"2026-12-06T10:00:00","date_gmt":"2026-12-06T02:00:00","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=79581"},"modified":"2026-11-28T15:52:46","modified_gmt":"2026-11-28T07:52:46","slug":"bioagent-spatial-course-11","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/bioagent-spatial-course-11\/","title":{"rendered":"\u7a7a\u95f4\u8f6c\u5f55\u7ec4\u5b9e\u6218 11\uff5c\u4e3a\u4ec0\u4e48\u540c\u4e00\u57fa\u56e0\u6362\u79cd\u753b\u6cd5\u5c31\u53d8\u4eae"},"content":{"rendered":"<p>\u4e91\u751f\u4fe1\u7a7a\u95f4\u8f6c\u5f55\u7ec4\u5b9e\u6218\u8bfe \u00b7 \u7b2c 2 \u5929 \u00b7 12 \u6708 6 \u65e5 \u00b7 \u5de9\u56fa\u4e0e\u8fdb\u9636<\/p>\n<p>\u540c\u4e00\u4e2a\u57fa\u56e0\u5728\u4e24\u5f20\u56fe\u4e0a\u660e\u6697\u4e0d\u540c\uff0c\u53ef\u80fd\u53ea\u56e0\u4e3a\u4e00\u79cd\u56fe\u663e\u793a\u6574\u6570 UMI\uff0c\u53e6\u4e00\u79cd\u663e\u793a\u5f52\u4e00\u5316\u8868\u8fbe\u3002<\/p>\n<p><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-spatialclass-2026-lab-11.zip\">\u4e0b\u8f7d\u672c\u7bc7\u8f93\u5165\u3001\u4ee3\u7801\u548c\u5b9e\u8dd1\u7ed3\u679c<\/a>\u3000<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-spatialclass-2026-slides-11.pptx\">\u4e0b\u8f7d\u4e24\u7bc7\u5408\u7528\u7684\u6388\u8bfe PPT<\/a><\/p>\n<h2>\u628a\u95ee\u9898\u4ea4\u7ed9 BioAgent<\/h2>\n<p>\u4e0b\u8f7d\u6559\u5b66\u5305\uff0c\u89e3\u538b\u540e\u5728\u81ea\u5df1\u7684\u9879\u76ee\u4e2d\u63d0\u4f9b\u672c\u8bfe\u8f93\u5165\u3002\u7528\u5230\u7684\u6587\u4ef6\u5305\u62ec <code>tissue_lowres_image.png\u3001scalefactors_json.json\u3001tissue_positions.csv\u3001spots.csv<\/code>\u3002<a href=\"https:\/\/www.biocloudservice.com\/bioagent\/\">\u6253\u5f00\u4e91\u751f\u4fe1 BioAgent<\/a><\/p>\n<blockquote><p>\u7ed9\u540c\u4e00\u57fa\u56e0\u753b\u539f\u59cb UMI\u3001\u6bcf\u4e07\u5f52\u4e00\u5316\u548c log \u8868\u8fbe\uff0c\u624b\u7b97\u4e00\u6761 spot\u3002 \u8bf7\u5b9e\u9645\u8fd0\u884c\uff0c\u5e76\u5bfc\u51fa\u5305\u542b\u539f\u59cb\u6761\u7801\u6216\u5206\u6bcd\u7684\u8868\u3001\u7ed3\u679c\u56fe\u548c\u672c\u6b21\u4ee3\u7801\u3002<\/p><\/blockquote>\n<p>\u9009\u4e00\u6761\u603b UMI \u975e\u96f6\u7684\u8bb0\u5f55\uff0c\u628a\u57fa\u56e0\u6574\u6570\u9664\u4ee5\u8be5\u4f4d\u7f6e\u7684\u6587\u5e93\u603b\u91cf\uff0c\u7f29\u653e\u5230\u4e00\u4e07\uff0c\u518d\u53d6 log1p\u3002\u7528\u540c\u4e00\u4e2a\u6761\u7801\u56de\u67e5\u4e09\u79cd\u8868\u793a\uff0c\u8bb0\u5f55\u96f6\u6587\u5e93\u5904\u7406\u3002<\/p>\n<p><strong>\u672c\u8bfe\u8f93\u5165\u7684\u53e3\u5f84<\/strong>\u3000\u5f00\u53d1\u4f9b\u8005 D3 \u7684\u5355\u5f20\u5207\u7247\uff0cspot \u662f\u89c2\u6d4b\u5355\u4f4d\u3002\u5bf9\u6240\u6709\u7ec4\u7ec7\u5185\u70b9\u5206\u6790\u3002 \u4f4d\u7f6e\u8868 barcode \u4e3a\u6355\u83b7\u70b9\u6761\u7801\uff0cin_tissue \u4e3a\u539f\u4f5c\u8005\u7ec4\u7ec7\u63a9\u819c\uff081\/0\uff09\uff0carray_row\/array_col \u662f\u516d\u89d2\u9635\u5217\u7d22\u5f15\u3002pxl_row_in_fullres \u4e0e pxl_col_in_fullres \u5bf9\u5e94\u5168\u5206\u8fa8\u7387\u56fe\u50cf\u7684 y \u4e0e x\uff08\u5355\u4f4d\u4e3a\u50cf\u7d20\uff0c\u5de6\u4e0a\u4e3a\u539f\u70b9\uff09\u3002\u5728\u4f4e\u5206\u56fe\u4e0a\uff0c\u4e24\u8f74\u5747\u4e58 tissue_lowres_scalef\uff1bspot_diameter_fullres \u662f\u539f\u56fe\u50cf\u7d20\u76f4\u5f84\u3002\u4e0d\u540c\u5207\u7247\u7684\u6761\u7801\u53ef\u80fd\u91cd\u590d\u3002<\/p>\n<p><strong>\u672c\u7bc7\u4ee3\u7801\u6765\u6e90\u4e0e\u5b9e\u8dd1\u65b9\u5f0f<\/strong>\u3000\u8bfe\u7a0b\u7ec4\u7f16\u5199\u4e86\u672c\u7bc7\u811a\u672c\uff0c\u5b9e\u9645\u8fd0\u884c\u4f7f\u7528\u4e91\u751f\u4fe1 BioAgent \u7684\u9879\u76ee\u7ec8\u7aef\uff0c\u5728\u5173\u8054\u670d\u52a1\u5668\u8bfb\u53d6\u672c\u7bc7\u6570\u636e\u5e76\u5bfc\u51fa\u56fe\u548c\u8868\u3002\u4e0b\u8f7d\u5305\u4fdd\u7559\u6267\u884c\u8fc7\u7684\u6e90\u7801\u4e0e\u6570\u503c\u7ed3\u679c\u3002<\/p>\n<p>\u8bfe\u7a0b\u7ec4\u4e3a\u672c\u9898\u7f16\u5199\u4e86\u5206\u6790\u811a\u672c\u3002BioAgent \u5728\u5173\u8054\u670d\u52a1\u5668\u4e0a\u8bfb\u53d6\u672c\u7bc7\u6570\u636e\u3001\u6267\u884c\u811a\u672c\u5e76\u5bfc\u51fa\u7ed3\u679c\u3002\u53ef\u4ee5\u590d\u73b0\u540c\u4e00\u57fa\u7ebf\uff0c\u518d\u53ea\u6539\u4e00\u4e2a\u53c2\u6570\u8fdb\u884c\u5bf9\u7167\u3002<\/p>\n<h2>\u4ece\u5b9e\u8dd1\u56fe\u56de\u5230\u7ed3\u679c\u8868<\/h2>\n<figure><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-spatialclass-2026-fig-11.png\"><picture><source type=\"image\/png\" srcset=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-spatialclass-2026-fig-11.png\"><img decoding=\"async\"  loading=\"lazy\" style=\"max-width:100%;height:auto\" src=\"\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-spatialclass-2026-fig-11.png\" alt=\"\u5bf9\u7167\u56fe\u3001\u5355\u884c\u7b97\u5f0f\u3001\u7248\u672c\u4e0e\u8272\u6807\u3002\"><\/picture><\/a><figcaption>\u539f\u59cb\u8ba1\u6570\u4fdd\u7559\u4e86\u6df1\u5ea6\u4fe1\u606f\uff1b\u7f29\u653e\u540e\u7684\u503c\u8868\u793a\u76f8\u5bf9\u8868\u8fbe\u3002\u4e24\u79cd\u65b9\u5f0f\u56de\u7b54\u7684\u95ee\u9898\u548c\u53d6\u503c\u8303\u56f4\u4e0d\u540c\u3002\u3000<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-spatialclass-2026-fig-11.png\">\u67e5\u770b\u539f\u5c3a\u5bf8\u56fe<\/a><\/figcaption><\/figure>\n<table>\n<thead>\n<tr>\n<th>BioAgent \u8f93\u51fa\u6307\u6807<\/th>\n<th>\u4ece\u672c\u6b21\u8fd0\u884c\u53d6\u56de\u7684\u503c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>tissue_spots<\/td>\n<td>3639.0<\/td>\n<\/tr>\n<tr>\n<td>example_raw_MBP<\/td>\n<td>1.0<\/td>\n<\/tr>\n<tr>\n<td>example_total_UMI<\/td>\n<td>1150.0<\/td>\n<\/tr>\n<tr>\n<td>example_per_10000<\/td>\n<td>8.695652173913043<\/td>\n<\/tr>\n<tr>\n<td>example_log1p<\/td>\n<td>2.271677555530969<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e3b\u7ed3\u679c\u8868\u5171 3639 \u884c\u3002\u6253\u5f00\u4ee3\u7801\u5305\u7684 <code>reference\/table.csv<\/code>\uff0c\u5148\u8fa8\u8ba4\u8fd9\u4e9b\u5b57\u6bb5\uff1abarcode\u3001total_umi\u3001MBP\u3001per_10000\u3001log1p_per_10000\u3002\u6311\u4e00\u6761\u80fd\u5728\u56fe\u4e0a\u5b9a\u4f4d\u7684\u8bb0\u5f55\u6216\u4e00\u4e2a\u6c47\u603b\u9879\uff0c\u6838\u5bf9\u8868\u7684\u6570\u503c\u4e0e\u56fe\u4f8b\u3002<\/p>\n<details>\n<summary>\u67e5\u770b\u4e3b\u8868\u7684\u524d 3 \u884c\u4e0e\u524d 4 \u5217<\/summary>\n<table>\n<thead>\n<tr>\n<th>barcode<\/th>\n<th>total_umi<\/th>\n<th>MBP<\/th>\n<th>per_10000<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>TTATTTCATCCCAAAC-1<\/td>\n<td>1150<\/td>\n<td>1<\/td>\n<td>8.695652174<\/td>\n<\/tr>\n<tr>\n<td>GAGCGCTATGTCAGGC-1<\/td>\n<td>989<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>CTTCGTGCCCGCATCG-1<\/td>\n<td>1119<\/td>\n<td>1<\/td>\n<td>8.936550492<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/details>\n<h2>\u5728\u81ea\u5df1\u7684\u9879\u76ee\u4e2d\u590d\u8dd1<\/h2>\n<p>\u5728\u89e3\u538b\u540e\u7684\u8bfe\u5305\u76ee\u5f55\u6253\u5f00\u7ec8\u7aef\u3002<code>README.txt<\/code> \u8bb0\u5f55\u8fd0\u884c\u5165\u53e3\uff0c<code>reference\/<\/code> \u4fdd\u7559\u53c2\u8003\u7ed3\u679c\u3002\u9010\u9879\u6bd4\u8f83\u8f93\u5165\u3001\u53c2\u6570\u548c\u8868\u91cc\u7684\u5173\u952e\u503c\u3002<\/p>\n<pre><code>python run_course.py --output results<\/code><\/pre>\n<p>\u6253\u5f00 <code>lesson_11.py<\/code>\uff0c\u627e\u5230\u4e0b\u9762\u51e0\u884c\u5b9e\u9645\u8fd0\u884c\u8fc7\u7684\u4ee3\u7801\u3002\u5148\u8fa8\u8ba4\u8f93\u5165\u5217\uff0c\u518d\u5bf9\u5e94\u5230\u521a\u624d\u68c0\u67e5\u7684\u7ed3\u679c\u8868\u3002<\/p>\n<pre><code>def read(data, name):\r\n    return pd.read_csv(data\/name)\r\n\r\ndef js(data,name):\r\n    return json.loads((data\/name).read_text(encoding=&quot;utf8&quot;))<\/code><\/pre>\n<h2>\u4ea4\u4f5c\u4e1a<\/h2>\n<p>\u5bf9\u7167\u56fe\u3001\u5355\u884c\u7b97\u5f0f\u3001\u7248\u672c\u4e0e\u8272\u6807\u3002<\/p>\n<p>\u4e24\u4e2a\u4f4d\u7f6e\u540c\u6837\u6709 2 \u4e2a\u8be5\u57fa\u56e0 UMI\uff0c\u5f52\u4e00\u5316\u540e\u4e00\u5b9a\u76f8\u7b49\u5417\uff1f<\/p>\n<details>\n<summary>\u5c55\u5f00\u53c2\u8003\u7b54\u6848<\/summary>\n<p>\u8fd8\u8981\u770b\u4e24\u4e2a\u4f4d\u7f6e\u7684\u603b UMI\u3002\u6587\u5e93\u8f83\u5c0f\u7684\u90a3\u4e2a\u4f4d\u7f6e\uff0c\u8be5\u57fa\u56e0\u7684\u76f8\u5bf9\u5360\u6bd4\u4f1a\u66f4\u5927\u3002<\/p>\n<\/details>\n<p>\u6570\u636e\u53ca\u65b9\u6cd5\u3000<a href=\"https:\/\/doi.org\/10.1038\/s41593-020-00787-0\">Maynard \u7b49\u539f\u59cb\u7814\u7a76\u4e0e\u540c\u6279\u4eba\u8111\u76ae\u5c42\u5207\u7247<\/a>\u3000<a href=\"https:\/\/research.libd.org\/spatialLIBD\/articles\/spatialLIBD.html\">\u4f5c\u8005\u7684 spatialLIBD \u6570\u636e\u4e0e\u4eba\u5de5\u5c42\u6ce8\u91ca<\/a>\u3000<a href=\"https:\/\/www.10xgenomics.com\/support\/software\/space-ranger\/latest\/analysis\/outputs\/spatial-outputs\">Space Ranger \u4f4d\u7f6e\u8868\u4e0e\u56fe\u50cf\u6bd4\u4f8b\u56e0\u5b50<\/a><\/p>\n<p><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/bioagent-spatial-course\/\">\u8fd4\u56de\u4e03\u5929\u8bfe\u7a0b\u76ee\u5f55<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u540c\u4e00\u4e2a\u57fa\u56e0\u5728\u4e24\u5f20\u56fe\u4e0a\u660e\u6697\u4e0d\u540c\uff0c\u53ef\u80fd\u53ea\u56e0\u4e3a\u4e00\u79cd\u56fe\u663e\u793a\u6574\u6570 UMI\uff0c\u53e6\u4e00\u79cd\u663e\u793a\u5f52\u4e00\u5316\u8868\u8fbe\u3002<\/p>\n","protected":false},"author":1,"featured_media":79459,"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":[2100],"tags":[],"class_list":["post-79581","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bioagent-spatial-class-2026"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-spatialclass-2026-fig-11.png?fit=2176%2C720&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79581","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=79581"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79581\/revisions"}],"predecessor-version":[{"id":79625,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79581\/revisions\/79625"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/79459"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=79581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=79581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=79581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}