{"id":79574,"date":"2026-12-05T10:00:00","date_gmt":"2026-12-05T02:00:00","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=79574"},"modified":"2026-11-28T15:52:46","modified_gmt":"2026-11-28T07:52:46","slug":"bioagent-spatial-course-04","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/bioagent-spatial-course-04\/","title":{"rendered":"\u7a7a\u95f4\u8f6c\u5f55\u7ec4\u5b9e\u6218 04\uff5c\u5220\u6389\u4e00\u5217\u6761\u7801\u518d\u5408\u5e76\uff0c\u4f1a\u4e22\u6389\u4ec0\u4e48"},"content":{"rendered":"<p>\u4e91\u751f\u4fe1\u7a7a\u95f4\u8f6c\u5f55\u7ec4\u5b9e\u6218\u8bfe \u00b7 \u7b2c 1 \u5929 \u00b7 12 \u6708 5 \u65e5 \u00b7 \u5de9\u56fa\u4e0e\u8fdb\u9636<\/p>\n<p>\u628a\u8868\u8fbe\u8868\u6309\u57fa\u56e0\u6570\u6392\u5e8f\u3001\u628a\u5750\u6807\u8868\u6309\u6761\u7801\u6392\u5e8f\u4ee5\u540e\uff0c\u518d\u6309\u884c\u53f7\u5408\u5e76\uff0c\u7ed3\u679c\u53ef\u4ee5\u6ca1\u6709\u4efb\u4f55\u7a7a\u503c\uff0c\u5374\u628a\u8868\u8fbe\u8d34\u5230\u4e86\u522b\u5904\u3002<\/p>\n<p><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-spatialclass-2026-lab-04.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-03.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>counts_original.csv\u3001counts_disturbed.csv\u3001positions_filtered.csv<\/code>\u3002<a href=\"https:\/\/www.biocloudservice.com\/bioagent\/\">\u6253\u5f00\u4e91\u751f\u4fe1 BioAgent<\/a><\/p>\n<blockquote><p>\u6784\u9020\u4e71\u5e8f\u53ca\u7f3a\u884c\u526f\u672c\uff0c\u4ee5\u6761\u7801\u8fde\u63a5\u8868\u8fbe\u4e0e\u5750\u6807\uff0c\u5217\u51fa\u91cd\u590d\u952e\u548c\u672a\u5339\u914d\u9879\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>\u5728\u6559\u5b66\u526f\u672c\u4e2d\u5148\u6253\u4e71\u987a\u5e8f\uff0c\u518d\u79fb\u9664\u4e00\u6761\u8bb0\u5f55\u3002\u68c0\u67e5\u6761\u7801\u662f\u5426\u552f\u4e00\uff0c\u505a\u53cc\u5411\u672a\u5339\u914d\u6e05\u5355\uff0c\u7136\u540e\u53ea\u7528\u9a8c\u8bc1\u8fc7\u7684\u952e\u8fde\u63a5\uff1b\u5305\u542b\u591a\u5f20\u5207\u7247\u65f6\u628a\u5207\u7247\u540d\u4e5f\u7eb3\u5165\u952e\u3002<\/p>\n<p><strong>\u672c\u8bfe\u8f93\u5165\u7684\u53e3\u5f84<\/strong>\u3000\u6559\u5b66\u9519\u8bef\u526f\u672c\u56fa\u5b9a\u79cd\u5b50\u6d17\u724c\uff0c\u5220\u9664\u4e09\u884c\u5e76\u91cd\u590d\u4e24\u884c\u3002\u539f\u59cb\u4e24\u8868\u6309\u6761\u7801\u53ef\u4e00\u5bf9\u4e00\u8fde\u63a5\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-04.png\"><picture><source type=\"image\/png\" srcset=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-spatialclass-2026-fig-04.png\"><img decoding=\"async\"  loading=\"lazy\" style=\"max-width:100%;height:auto\" src=\"\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-spatialclass-2026-fig-04.png\" alt=\"\u9010\u952e\u5ba1\u8ba1\u8868\uff1b\u6062\u590d\u540e\u968f\u673a\u4e09\u4e2a\u70b9\u8ba1\u6570\u4e00\u81f4\u3002\"><\/picture><\/a><figcaption>\u6838\u5bf9\u672a\u5339\u914d\u540d\u5355\u7684\u6761\u7801\uff0c\u9009\u4e09\u4e2a\u5df2\u5339\u914d\u4f4d\u7f6e\u56de\u8bfb\u539f\u59cb\u8ba1\u6570\u3002\u884c\u6570\u3001\u552f\u4e00\u952e\u6570\u548c\u8ba1\u6570\u5b88\u6052\u5206\u522b\u68c0\u9a8c\u4e0d\u540c\u95ee\u9898\u3002\u3000<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-spatialclass-2026-fig-04.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>unique_positions<\/td>\n<td>3639<\/td>\n<\/tr>\n<tr>\n<td>missing_keys<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>repeated_keys<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>recovered_examples<\/td>\n<td>3<\/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\u3001disturbed_rows\u3001audit\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>disturbed_rows<\/th>\n<th>audit<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>TTATTTCATCCCAAAC-1<\/td>\n<td>1150<\/td>\n<td>1<\/td>\n<td>single<\/td>\n<\/tr>\n<tr>\n<td>GAGCGCTATGTCAGGC-1<\/td>\n<td>989<\/td>\n<td>1<\/td>\n<td>single<\/td>\n<\/tr>\n<tr>\n<td>CTTCGTGCCCGCATCG-1<\/td>\n<td>1119<\/td>\n<td>1<\/td>\n<td>single<\/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_04.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 layout(n,w=4.8):\r\n    f,axs=plt.subplots(1,n,figsize=(w*n,4.8),squeeze=False,layout=&quot;constrained&quot;)<\/code><\/pre>\n<h2>\u4ea4\u4f5c\u4e1a<\/h2>\n<p>\u9010\u952e\u5ba1\u8ba1\u8868\uff1b\u6062\u590d\u540e\u968f\u673a\u4e09\u4e2a\u70b9\u8ba1\u6570\u4e00\u81f4\u3002<\/p>\n<p>\u4e24\u5f20\u8868\u90fd\u6070\u597d\u4e00\u5343\u884c\uff0c\u662f\u5426\u53ef\u4ee5\u76f4\u63a5\u6309\u884c\u62fc\uff1f<\/p>\n<details>\n<summary>\u5c55\u5f00\u53c2\u8003\u7b54\u6848<\/summary>\n<p>\u8fd8\u8981\u6838\u5bf9\u952e\u552f\u4e00\u3001\u952e\u96c6\u5408\u4e00\u81f4\u548c\u987a\u5e8f\u3002\u4f18\u5148\u91c7\u7528\u53ef\u9a8c\u8bc1\u7684\u4e00\u5bf9\u4e00\u952e\u8fde\u63a5\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>\u628a\u8868\u8fbe\u8868\u6309\u57fa\u56e0\u6570\u6392\u5e8f\u3001\u628a\u5750\u6807\u8868\u6309\u6761\u7801\u6392\u5e8f\u4ee5\u540e\uff0c\u518d\u6309\u884c\u53f7\u5408\u5e76\uff0c\u7ed3\u679c\u53ef\u4ee5\u6ca1\u6709\u4efb\u4f55\u7a7a\u503c\uff0c\u5374\u628a\u8868\u8fbe\u8d34\u5230\u4e86\u522b\u5904\u3002<\/p>\n","protected":false},"author":1,"featured_media":79452,"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-79574","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-04.png?fit=917%2C737&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79574","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=79574"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79574\/revisions"}],"predecessor-version":[{"id":79621,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79574\/revisions\/79621"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/79452"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=79574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=79574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=79574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}