{"id":79219,"date":"2026-11-30T10:00:00","date_gmt":"2026-11-30T02:00:00","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=79219"},"modified":"2026-11-28T14:10:16","modified_gmt":"2026-11-28T06:10:16","slug":"bioagent-singlecell-course-14","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/bioagent-singlecell-course-14\/","title":{"rendered":"\u5355\u7ec6\u80de\u5b9e\u6218\u8bfe 14\uff5c\u9ad8\u53d8\u57fa\u56e0\u540d\u5355\u4e3a\u4ec0\u4e48\u4f1a\u968f\u8bbe\u7f6e\u6539\u53d8"},"content":{"rendered":"<p>\u4e03\u5929\u5b9e\u6218\u8bfe \u00b7 \u7b2c 3 \u5929 \u00b7 \u7b2c 14 \u7bc7\u3000\u4ece\u8868\u8fbe\u91cf\u753b\u5230 UMAP<\/p>\n<h2>\u4e24\u79cd\u9ad8\u53d8\u57fa\u56e0\u9009\u62e9\u4e3a\u4ec0\u4e48\u7ed9\u51fa\u4e0d\u540c\u7684\u540d\u5355<\/h2>\n<p>\u6d4b\u5f97\u591a\u7684\u57fa\u56e0\u5f80\u5f80\u4e5f\u66f4\u5bb9\u6613\u51fa\u73b0\u8f83\u5927\u65b9\u5dee\u3002\u8fd9\u91cc\u6bd4\u8f83\u4e24\u4efd\u540c\u4e3a 500 \u4e2a\u57fa\u56e0\u7684\u540d\u5355\uff1a\u4e00\u4efd\u6309 log \u8868\u8fbe\u65b9\u5dee\u6392\u5e8f\uff0c\u53e6\u4e00\u4efd\u5148\u628a\u5e73\u5747\u8868\u8fbe\u91cf\u76f8\u8fd1\u7684\u57fa\u56e0\u5206\u7ec4\uff0c\u5728\u540c\u7ec4\u5185\u6bd4\u8f83\u65b9\u5dee\u3002<\/p>\n<p><strong>\u8fd9\u7bc7\u8981\u4ea4\u7684\u7ed3\u679c<\/strong>\u3000\u7b97\u51fa\u4ea4\u96c6\u5927\u5c0f\uff0c\u8bb0\u5f55\u8f6f\u4ef6\u7248\u672c\u4e0e\u65b9\u6cd5\u3002<\/p>\n<p class=\"classroom-downloads\"><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-classroom-2026-lab-14.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-13.pptx\">\u4e0b\u8f7d\u7b2c 13\u201314 \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>\u8bf7\u7528\u540c\u4e00\u57fa\u56e0\u80cc\u666f\u6bd4\u8f83\u65b9\u5dee\u4e0e\u5747\u503c\u5206\u7ec4\u6821\u6b63\uff0c\u5206\u522b\u7ed9\u51fa\u4ea4\u96c6\u3001\u5e76\u96c6\u548c Jaccard\uff0c\u7559\u4e0b\u53c2\u6570\u3002<\/p><\/blockquote>\n<p>\u4fdd\u7559\u81f3\u5c11\u5341\u4e2a\u7ec6\u80de\u68c0\u51fa\u7684\u57fa\u56e0\uff0c\u5728\u672c\u8bfe\u7b5b\u9009\u540e\u7684\u57fa\u56e0\u96c6\u5408\u4e0a\u91cd\u65b0\u8ba1\u7b97\u7f29\u653e\u5206\u6bcd\u3002\u628a\u57fa\u56e0\u6309\u5e73\u5747\u503c\u5206\u6210 20 \u7ec4\uff0c\u5217\u51fa\u4ec5\u51fa\u73b0\u5728\u4e00\u4efd\u540d\u5355\u4e2d\u7684\u57fa\u56e0\u3002\u8868\u91cc\u4fdd\u7559\u539f\u59cb Ensembl ID\uff0c\u907f\u514d\u540c\u540d\u7b26\u53f7\u9020\u6210\u91cd\u590d\u3002<\/p>\n<p>\u9879\u76ee\u8f93\u5165\u3000raw.npz\u3001features.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-14.png\"><img decoding=\"async\" loading=\"lazy\" style=\"max-width:100%;height:auto\" src=\"\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-classroom-2026-fig-14.png\" alt=\"\u4e2d\u95f4\u67f1\u5b50\u662f\u4e24\u79cd\u65b9\u6cd5\u7684\u4ea4\u96c6\u3002Jaccard \u7684\u5206\u6bcd\u4e3a\u5e76\u96c6\uff0c\u76f4\u63a5\u9664\u4ee5 500 \u5f97\u5230\u7684\u5219\u662f\u5355\u4efd\u540d\u5355\u7684\u5171\u540c\u5360\u6bd4\u3002\"><\/picture><figcaption>\u4e2d\u95f4\u67f1\u5b50\u662f\u4e24\u79cd\u65b9\u6cd5\u7684\u4ea4\u96c6\u3002Jaccard \u7684\u5206\u6bcd\u4e3a\u5e76\u96c6\uff0c\u76f4\u63a5\u9664\u4ee5 500 \u5f97\u5230\u7684\u5219\u662f\u5355\u4efd\u540d\u5355\u7684\u5171\u540c\u5360\u6bd4\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\">\u53ef\u8bc4\u4f30\u57fa\u56e0\u6570<\/th>\n<td>11139<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u4e24\u79cd\u65b9\u6cd5\u5171\u540c\u5165\u9009<\/th>\n<td>53<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u5404\u540d\u5355\u957f\u5ea6<\/th>\n<td>500<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Jaccard<\/th>\n<td>0.056<\/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 hvg_compare.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>X=matrix();names=read(&#x27;features.csv.gz&#x27;);X=X[:,X.getnnz(axis=0)&gt;=10];names=names.loc[matrix().getnnz(axis=0)&gt;=10].reset_index(drop=True)\r\nT=X.multiply((1e4\/np.asarray(X.sum(1)).ravel())[:,None]).tocsr();T.data=np.log1p(T.data)\r\nmean=np.asarray(T.mean(0)).ravel();variance=np.asarray(T.power(2).mean(0)).ravel()-mean**2<\/code><\/pre>\n<h2>\u4ea4\u4f5c\u4e1a<\/h2>\n<p>\u82e5\u4e24\u4efd\u5404 500 \u4e2a\u7684\u540d\u5355\u4ea4\u96c6\u4e3a 300\uff0c\u5e76\u96c6\u662f\u591a\u5c11\uff1f<\/p>\n<details>\n<summary>\u5c55\u5f00\u53c2\u8003\u7b54\u6848<\/summary>\n<p>500 \u52a0 500 \u51cf 300 \u7b49\u4e8e 700\u3002<\/p>\n<\/details>\n<p><strong>\u6570\u636e\u51fa\u5904\u4e0e\u5904\u7406\u53e3\u5f84<\/strong>\u300010x Genomics \u7684\u4e00\u4f4d\u5065\u5eb7\u4f9b\u8005 PBMC3k\uff0c\u539f\u59cb\u8fc7\u6ee4\u77e9\u9635\u4e3a 32,738 \u4e2a\u7279\u5f81 \u00d7 2,700 \u4e2a\u7ec6\u80de\u3002\u8bfe\u7a0b\u5305\u628a\u7a00\u758f\u77e9\u9635\u5b58\u4e3a\u7ec6\u80de\u5728\u884c\u3001\u57fa\u56e0\u5728\u5217\uff1b\u57fa\u56e0\u9762\u677f\u4fdd\u7559\u5168\u7ec6\u80de UMI \u5f53\u5206\u6bcd\u3002 <a href=\"https:\/\/www.10xgenomics.com\/datasets\/3-k-pbm-cs-from-a-healthy-donor-1-standard-1-1-0\">10x Genomics \u6570\u636e\u4e0e\u6388\u6743\uff08CC BY 4.0\uff09<\/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>\u7b97\u51fa\u4ea4\u96c6\u5927\u5c0f\uff0c\u8bb0\u5f55\u8f6f\u4ef6\u7248\u672c\u4e0e\u65b9\u6cd5\u3002<\/p>\n","protected":false},"author":1,"featured_media":79116,"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-79219","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-14.png?fit=1134%2C607&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79219","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=79219"}],"version-history":[{"count":2,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79219\/revisions"}],"predecessor-version":[{"id":79313,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79219\/revisions\/79313"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/79116"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=79219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=79219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=79219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}