{"id":79221,"date":"2026-11-30T10:00:00","date_gmt":"2026-11-30T02:00:00","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=79221"},"modified":"2026-11-28T14:10:16","modified_gmt":"2026-11-28T06:10:16","slug":"bioagent-singlecell-course-16","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/bioagent-singlecell-course-16\/","title":{"rendered":"\u5355\u7ec6\u80de\u5b9e\u6218\u8bfe 16\uff5c\u6539\u4e3b\u6210\u5206\u6570\u4ee5\u540e\uff0c\u540c\u4e00\u4e2a\u7ec6\u80de\u7684\u90bb\u5c45\u8fd8\u4e00\u6837\u5417"},"content":{"rendered":"<p>\u4e03\u5929\u5b9e\u6218\u8bfe \u00b7 \u7b2c 3 \u5929 \u00b7 \u7b2c 16 \u7bc7\u3000\u4ece\u8868\u8fbe\u91cf\u753b\u5230 UMAP<\/p>\n<h2>\u6362\u4e00\u7ec4 PC \u540e\uff0c\u7528\u540c\u4e00\u6761\u7801\u68c0\u9a8c\u7a33\u5b9a\u6027<\/h2>\n<p>\u201c\u56fe\u5dee\u4e0d\u591a\u201d\u5f88\u96be\u4f5c\u4e3a\u53c2\u6570\u9009\u62e9\u4f9d\u636e\u3002\u56fa\u5b9a\u7ec6\u80de\u3001\u8fd1\u90bb\u6570\u548c\u8ddd\u79bb\u5ea6\u91cf\uff0c\u53ea\u6539\u53d8\u7528\u6765\u8ba1\u7b97\u8ddd\u79bb\u7684\u4e3b\u6210\u5206\u6570\uff0c\u53ef\u4ee5\u76f4\u63a5\u7b97\u51fa\u6bcf\u4e2a\u7ec6\u80de\u7559\u4e0b\u4e86\u51e0\u4e2a\u8001\u90bb\u5c45\u3002<\/p>\n<p><strong>\u8fd9\u7bc7\u8981\u4ea4\u7684\u7ed3\u679c<\/strong>\u3000\u6838\u5bf9\u4e24\u6b21\u8f93\u5165\u7684\u6761\u7801\u3001\u5176\u4ed6\u53c2\u6570\u4e0e\u79cd\u5b50\u4e00\u81f4\u3002<\/p>\n<p class=\"classroom-downloads\"><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-classroom-2026-lab-16.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-15.pptx\">\u4e0b\u8f7d\u7b2c 15\u201316 \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>\u56fa\u5b9a 15 \u4e2a\u90bb\u5c45\uff0c\u6bd4\u8f83\u4e24\u7ec4 PC \u8bbe\u7f6e\uff0c\u9010\u6761\u7801\u8f93\u51fa\u4ea4\u96c6\u6570\u548c Jaccard\uff0c\u5e76\u6307\u51fa\u6700\u4e0d\u7a33\u5b9a\u7684\u4e00\u7ec4\u7ec6\u80de\u3002<\/p><\/blockquote>\n<p>\u5148\u7528 10 \u4e2a PC \u5efa\u56fe\uff0c\u518d\u7528\u68c0\u67e5\u70b9\u63d0\u4f9b\u7684\u524d 30 \u4e2a PC \u5efa\u56fe\u3002\u6bcf\u4e2a\u6761\u7801\u6709\u4e24\u4efd\u957f\u5ea6\u4e3a 15 \u7684\u540d\u5355\u3002\u4ea4\u96c6\u8bb0\u4e3a s\uff0c\u5e76\u96c6\u662f 30\u2212s\uff0c\u5f97\u5230 Jaccard\u3002<\/p>\n<p>\u9879\u76ee\u8f93\u5165\u3000embedding.csv.gz\u3001embedding-origin.txt\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-16.png\"><img decoding=\"async\" loading=\"lazy\" style=\"max-width:100%;height:auto\" src=\"\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-classroom-2026-fig-16.png\" alt=\"\u6bcf\u6839\u67f1\u5b50\u7edf\u8ba1\u6709\u591a\u5c11\u7ec6\u80de\u4fdd\u7559\u4e86\u6a2a\u8f74\u6240\u793a\u6570\u91cf\u7684\u90bb\u5c45\u3002\u5206\u5e03\u9760\u53f3\u4ee3\u8868\u90bb\u57df\u4fdd\u7559\u5f97\u591a\uff0c\u4e5f\u8981\u590d\u6838\u5c11\u6570\u4e0d\u7a33\u5b9a\u7684\u7ec6\u80de\u3002\"><\/picture><figcaption>\u6bcf\u6839\u67f1\u5b50\u7edf\u8ba1\u6709\u591a\u5c11\u7ec6\u80de\u4fdd\u7559\u4e86\u6a2a\u8f74\u6240\u793a\u6570\u91cf\u7684\u90bb\u5c45\u3002\u5206\u5e03\u9760\u53f3\u4ee3\u8868\u90bb\u57df\u4fdd\u7559\u5f97\u591a\uff0c\u4e5f\u8981\u590d\u6838\u5c11\u6570\u4e0d\u7a33\u5b9a\u7684\u7ec6\u80de\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\">\u5bf9\u7167\u7684 PC \u6570<\/th>\n<td>10 \/ 30<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u5171\u540c\u8fd1\u90bb\u6570\u4e2d\u4f4d\u6570<\/th>\n<td>2.0<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u9996\u6761\u7801\u5171\u540c\u8fd1\u90bb<\/th>\n<td>3<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u6bcf\u6b21\u6bd4\u8f83\u7684\u8fd1\u90bb\u6570<\/th>\n<td>15<\/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 neighbor_overlap.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;embedding.csv.gz&#x27;);pc=d.filter(regex=r&#x27;^PC\\d+$&#x27;).to_numpy()\r\na=neighbors(pc[:,:10],15);b=neighbors(pc[:,:min(30,pc.shape[1])],15);shared=np.array([len(set(x)&amp;set(y)) for x,y in zip(a,b)])\r\ntab=d[[&#x27;barcode&#x27;]].assign(shared=shared,jaccard=shared\/(30-shared))<\/code><\/pre>\n<h2>\u4ea4\u4f5c\u4e1a<\/h2>\n<p>\u4e24\u4e2a\u540d\u5355\u5404 15 \u4e2a\uff0c\u5171\u7559 9 \u4e2a\uff0cJaccard \u662f\u591a\u5c11\uff1f<\/p>\n<details>\n<summary>\u5c55\u5f00\u53c2\u8003\u7b54\u6848<\/summary>\n<p>9 \u9664\u4ee5 21\uff0c\u7ea6 0.429\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>\u6838\u5bf9\u4e24\u6b21\u8f93\u5165\u7684\u6761\u7801\u3001\u5176\u4ed6\u53c2\u6570\u4e0e\u79cd\u5b50\u4e00\u81f4\u3002<\/p>\n","protected":false},"author":1,"featured_media":79118,"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-79221","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-16.png?fit=1134%2C607&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79221","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=79221"}],"version-history":[{"count":2,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79221\/revisions"}],"predecessor-version":[{"id":79315,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79221\/revisions\/79315"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/79118"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=79221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=79221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=79221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}