{"id":79224,"date":"2026-12-01T10:00:00","date_gmt":"2026-12-01T02:00:00","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=79224"},"modified":"2026-11-28T14:10:16","modified_gmt":"2026-11-28T06:10:16","slug":"bioagent-singlecell-course-19","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/bioagent-singlecell-course-19\/","title":{"rendered":"\u5355\u7ec6\u80de\u5b9e\u6218\u8bfe 19\uff5c\u7ed9\u6bcf\u4e2a\u7c07\u627e\u6807\u5fd7\u57fa\u56e0\uff0c\u6bd4\u8f83\u5bf9\u8c61\u600e\u4e48\u5b9a"},"content":{"rendered":"<p>\u4e03\u5929\u5b9e\u6218\u8bfe \u00b7 \u7b2c 4 \u5929 \u00b7 \u7b2c 19 \u7bc7\u3000\u7ed9\u7ec6\u80de\u7c7b\u578b\u7559\u4e0b\u8bc1\u636e<\/p>\n<h2>\u5148\u9009\u6bd4\u8f83\u5bf9\u8c61\uff0c\u518d\u8bfb\u4e00\u4efd\u6807\u5fd7\u57fa\u56e0\u6392\u540d<\/h2>\n<p>\u95ee\u201c\u54ea\u4e2a\u57fa\u56e0\u6807\u5fd7\u8fd9\u4e2a\u7c07\u201d\u4e4b\u524d\uff0c\u5148\u95ee\u76f8\u5bf9\u4e8e\u8c01\u3002\u4e00\u4e2a\u9ad3\u7cfb\u57fa\u56e0\u53ef\u80fd\u5f88\u5bb9\u6613\u533a\u5206\u9ad3\u7cfb\u548c\u6dcb\u5df4\u7ec6\u80de\uff0c\u5374\u672a\u5fc5\u9002\u5408\u533a\u5206\u4e24\u4e2a\u8fd1\u7f18\u9ad3\u7cfb\u7fa4\u3002<\/p>\n<p><strong>\u8fd9\u7bc7\u8981\u4ea4\u7684\u7ed3\u679c<\/strong>\u3000\u8bf4\u660e\u4e00\u4e2a marker \u7684\u6bd4\u8f83\u5bf9\u8c61\uff0c\u5e76\u6838\u5bf9\u5176\u68c0\u51fa\u6bd4\u4f8b\u3002<\/p>\n<p class=\"classroom-downloads\"><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-classroom-2026-lab-19.zip\">\u4e0b\u8f7d\u672c\u7bc7\u4ee3\u7801\u3001\u6570\u636e\u4e0e\u53c2\u8003\u7ed3\u679c\uff08ZIP\uff09<\/a>\u3000<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-classroom-2026-slides-19.pptx\">\u4e0b\u8f7d\u7b2c 19\u201320 \u7bc7\u8bfe\u4ef6\uff08PPTX\uff09<\/a><\/p>\n<h2>\u5728 BioAgent \u91cc\u505a\u4e00\u904d<\/h2>\n<p>\u6253\u5f00\u9879\u76ee\u4f1a\u8bdd\uff0c\u4e0a\u4f20\u89e3\u538b\u540e\u7684\u76f8\u5e94\u6570\u636e\u6216\u5c06\u9879\u76ee\u653e\u5165\u5df2\u5173\u8054\u7684\u670d\u52a1\u5668\u76ee\u5f55\u3002\u628a\u4e0b\u9762\u8fd9\u53e5\u8bdd\u8fde\u540c\u6570\u636e\u6587\u4ef6\u540d\u53d1\u7ed9 Agent\u3002<\/p>\n<blockquote><p>\u53ea\u5728\u7ed9\u5b9a\u9762\u677f\u5185\u5bf9\u7167\u4e24\u4e2a\u53c2\u8003\u7ec4\uff0c\u8f93\u51fa\u5e73\u5747\u8868\u8fbe\u5dee\u4e0e\u4e24\u4fa7\u68c0\u51fa\u7387\uff0c\u5e76\u6807\u660e\u76ee\u6807\u7c07\u9009\u62e9\u89c4\u5219\u3002<\/p><\/blockquote>\n<p>\u5728\u8bfe\u7a0b\u9762\u677f\u5185\uff0c\u9009 LYZ \u9633\u6027\u6761\u7801\u6700\u591a\u7684\u7c07\u5f53\u76ee\u6807\uff0c\u5206\u522b\u4e0e\u5176\u4f59\u6240\u6709\u7ec6\u80de\u3001\u53e6\u4e00\u4e2a\u7ec6\u80de\u6570\u6700\u591a\u7684\u975e\u76ee\u6807\u7c07\u5bf9\u7167\u3002\u6309\u5e73\u5747 log \u8868\u8fbe\u5dee\u6392\u5e8f\uff0c\u540c\u65f6\u4fdd\u7559\u4e24\u8fb9\u68c0\u51fa\u6bd4\u4f8b\u3002<\/p>\n<p>\u9879\u76ee\u8f93\u5165\u3000panel.csv.gz\u3001embedding.csv.gz\u3002<a href=\"https:\/\/www.biocloudservice.com\/bioagent\/\">\u6253\u5f00\u4e91\u751f\u4fe1 BioAgent<\/a><\/p>\n<h2>\u4ece\u56fe\u56de\u5230\u6570\u5b57<\/h2>\n<figure><picture class=\"ysx-course-original\"><source type=\"image\/png\" srcset=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-classroom-2026-fig-19.png\"><img decoding=\"async\" loading=\"lazy\" style=\"max-width:100%;height:auto\" src=\"\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-classroom-2026-fig-19.png\" alt=\"\u56fe\u5c55\u793a\u76ee\u6807\u7c07\u76f8\u5bf9\u5176\u4f59\u5168\u90e8\u7684\u524d\u4e03\u4e2a\u57fa\u56e0\u3002\u8be5\u6392\u540d\u53ea\u8986\u76d6\u968f\u5305\u63d0\u4f9b\u7684\u57fa\u56e0\uff0c\u4e0d\u80fd\u5f53\u4f5c\u5168\u8f6c\u5f55\u7ec4\u5dee\u5f02\u68c0\u9a8c\u3002\"><\/picture><figcaption>\u56fe\u5c55\u793a\u76ee\u6807\u7c07\u76f8\u5bf9\u5176\u4f59\u5168\u90e8\u7684\u524d\u4e03\u4e2a\u57fa\u56e0\u3002\u8be5\u6392\u540d\u53ea\u8986\u76d6\u968f\u5305\u63d0\u4f9b\u7684\u57fa\u56e0\uff0c\u4e0d\u80fd\u5f53\u4f5c\u5168\u8f6c\u5f55\u7ec4\u5dee\u5f02\u68c0\u9a8c\u3002<\/figcaption><\/figure>\n<table>\n<thead>\n<tr>\n<th>\u7528\u7ed3\u679c\u8868\u6838\u5bf9<\/th>\n<th>\u672c\u6b21\u5b9e\u8dd1\u503c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th scope=\"row\">\u76ee\u6807\u7c07\u7f16\u53f7<\/th>\n<td>1<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u5355\u7c07\u5bf9\u7167\u7f16\u53f7<\/th>\n<td>0<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u5bf9\u5176\u4f59\u5168\u90e8\u7684\u9996\u4f4d\u57fa\u56e0<\/th>\n<td>S100A9<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u5bf9\u5355\u4e00\u7c07\u7684\u9996\u4f4d\u57fa\u56e0<\/th>\n<td>S100A9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4e0b\u8f7d\u540e\u590d\u8dd1<\/h2>\n<p>\u89e3\u538b\u4ee3\u7801\u5305\uff0c\u5728\u9879\u76ee\u6839\u76ee\u5f55\u6253\u5f00\u7ec8\u7aef\u3002\u7b2c\u4e00\u6b21\u8fd0\u884c\u6309\u4ee5\u4e0b\u6b65\u9aa4\u51c6\u5907\u73af\u5883\uff0c\u540c\u4e00\u73af\u5883\u53ef\u7ee7\u7eed\u7528\u4e8e\u540e\u7eed\u8bfe\u7a0b\u3002<\/p>\n<pre><code>python -m pip install -r requirements.txt\r\npython rank_markers.py<\/code><\/pre>\n<p>\u5728 <code>results\/<\/code> \u4e2d\u5bf9\u7167 <code>table.csv<\/code>\u3001<code>metrics.csv<\/code> \u548c <code>figure.png<\/code>\u3002\u4e0b\u9762\u662f\u672c\u8bfe\u5165\u53e3\u4e2d\u7684\u4e00\u6bb5\u4ee3\u7801\uff0c\u5b8c\u6574\u7248\u672c\u5728\u538b\u7f29\u5305\u5185\u3002<\/p>\n<pre><code>d=read(&#x27;panel.csv.gz&#x27;).merge(read(&#x27;embedding.csv.gz&#x27;)[[&#x27;barcode&#x27;,&#x27;coarse&#x27;]],validate=&#x27;one_to_one&#x27;)\r\ngenes=list(d.columns[2:-1]);target=int(d.loc[d.LYZ.gt(0)].coarse.value_counts().index[0]);other=int(d.loc[d.coarse.ne(target),&#x27;coarse&#x27;].value_counts().index[0]);rec=[]\r\nfor ref,mask in [(&#x27;all_other&#x27;,d.coarse.ne(target)),(&#x27;one_cluster&#x27;,d.coarse.eq(other))]:<\/code><\/pre>\n<h2>\u4ea4\u4f5c\u4e1a<\/h2>\n<p>\u67d0\u57fa\u56e0\u5728\u4e24\u7ec4\u51e0\u4e4e\u90fd\u68c0\u51fa\uff0c\u8fd8\u80fd\u6709\u5f88\u5927\u8868\u8fbe\u5dee\u5417\uff1f<\/p>\n<details>\n<summary>\u5c55\u5f00\u53c2\u8003\u7b54\u6848<\/summary>\n<p>\u53ef\u4ee5\uff0c\u68c0\u51fa\u6bd4\u4f8b\u548c\u5e73\u5747\u8868\u8fbe\u91cf\u63cf\u8ff0\u4e0d\u540c\u7684\u91cf\u3002<\/p>\n<\/details>\n<p><strong>\u6570\u636e\u51fa\u5904\u4e0e\u5904\u7406\u53e3\u5f84<\/strong>\u300010x \u5065\u5eb7\u4f9b\u8005 PBMC3k\u3002\u4fdd\u5b58\u7684 BioAgent \u68c0\u67e5\u70b9\u6709 2,638 \u4e2a\u6761\u7801\uff0c\u542b PCA\u3001UMAP \u4e0e\u4e24\u5957 Leiden \u6807\u7b7e\u3002\u6240\u7528\u8ba1\u6570\u9762\u677f\u7531\u539f\u59cb 10x \u6574\u6570\u77e9\u9635\u62bd\u53d6\u3002 <a href=\"https:\/\/www.10xgenomics.com\/datasets\/3-k-pbm-cs-from-a-healthy-donor-1-standard-1-1-0\">10x Genomics PBMC3k<\/a>\u3000<a href=\"https:\/\/scanpy.readthedocs.io\/en\/stable\/tutorials\/basics\/clustering.html\">Scanpy \u805a\u7c7b\u6559\u7a0b<\/a><\/p>\n<p><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/bioagent-singlecell-course\/\">\u8fd4\u56de\u4e03\u5929\u8bfe\u7a0b\u76ee\u5f55<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf4\u660e\u4e00\u4e2a marker \u7684\u6bd4\u8f83\u5bf9\u8c61\uff0c\u5e76\u6838\u5bf9\u5176\u68c0\u51fa\u6bd4\u4f8b\u3002<\/p>\n","protected":false},"author":1,"featured_media":79121,"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":[2056,71],"tags":[],"class_list":["post-79224","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bioagent-singlecell-class-2026","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-classroom-2026-fig-19.png?fit=1134%2C607&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79224","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=79224"}],"version-history":[{"count":2,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79224\/revisions"}],"predecessor-version":[{"id":79318,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79224\/revisions\/79318"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/79121"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=79224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=79224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=79224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}