{"id":79214,"date":"2026-11-29T10:00:00","date_gmt":"2026-11-29T02:00:00","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=79214"},"modified":"2026-11-28T14:10:16","modified_gmt":"2026-11-28T06:10:16","slug":"bioagent-singlecell-course-08","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/bioagent-singlecell-course-08\/","title":{"rendered":"\u5355\u7ec6\u80de\u5b9e\u6218\u8bfe 08\uff5c\u4e3a\u4ec0\u4e48\u4e24\u4e2a\u7ec6\u80de\u7684 UMI \u6570\u63a5\u8fd1\uff0c\u68c0\u51fa\u57fa\u56e0\u6570\u5374\u4e0d\u540c"},"content":{"rendered":"<p>\u4e03\u5929\u5b9e\u6218\u8bfe \u00b7 \u7b2c 2 \u5929 \u00b7 \u7b2c 08 \u7bc7\u3000\u51b3\u5b9a\u54ea\u4e9b\u7ec6\u80de\u8fdb\u5165\u5206\u6790<\/p>\n<h2>\u603b\u91cf\u76f8\u540c\u7684\u4e24\u4e2a\u7ec6\u80de\uff0c\u8868\u8fbe\u590d\u6742\u5ea6\u80fd\u5dee\u591a\u5c11<\/h2>\n<p>\u628a 100 \u4e2a UMI \u5206\u5230 10 \u4e2a\u57fa\u56e0\uff0c\u548c\u5206\u5230 50 \u4e2a\u57fa\u56e0\uff0c\u8868\u8fbe\u590d\u6742\u5ea6\u663e\u7136\u4e0d\u540c\u3002\u8fd9\u91cc\u5728\u771f\u5b9e PBMC \u8868\u91cc\u5bfb\u627e UMI \u6070\u597d\u76f8\u540c\u3001\u68c0\u51fa\u57fa\u56e0\u5dee\u8ddd\u6700\u5927\u7684\u4e00\u5bf9\u6761\u7801\uff0c\u8ba9\u4e24\u4e2a\u6307\u6807\u7684\u533a\u522b\u843d\u5230\u5177\u4f53\u7ec6\u80de\u4e0a\u3002<\/p>\n<p><strong>\u8fd9\u7bc7\u8981\u4ea4\u7684\u7ed3\u679c<\/strong>\u3000\u89e3\u91ca\u4e00\u4e2a\u7ec6\u80de\u5185\u8bfb\u6570\u66f4\u96c6\u4e2d\u7684\u8bc1\u636e\uff0c\u5e76\u8bf4\u51fa\u4ecd\u9700\u67e5\u770b\u4ec0\u4e48\u3002<\/p>\n<p class=\"classroom-downloads\"><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-classroom-2026-lab-08.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-07.pptx\">\u4e0b\u8f7d\u7b2c 07\u201308 \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\u5b8c\u5168\u76f8\u540c\u7684\u603b UMI \u914d\u5bf9\uff0c\u627e\u5230\u68c0\u51fa\u57fa\u56e0\u6570\u5dee\u5f02\u6700\u5927\u7684\u4e00\u5bf9\uff0c\u7ed9\u51fa\u6761\u7801\u548c\u524d\u5341\u57fa\u56e0\u8ba1\u6570\u5360\u6bd4\u3002<\/p><\/blockquote>\n<p>\u5148\u6309 UMI \u5206\u7ec4\uff0c\u6bcf\u7ec4\u6309\u57fa\u56e0\u6570\u6311\u4e24\u7aef\uff0c\u7136\u540e\u5728\u6240\u6709\u7ec4\u91cc\u53d6\u5dee\u503c\u6700\u5927\u7684\u4e00\u5bf9\u3002\u6253\u5f00\u4e24\u884c\u7ed3\u679c\uff0c\u518d\u770b\u5404\u81ea\u6700\u9ad8\u5341\u4e2a\u57fa\u56e0\u5360\u4e86\u591a\u5c11 UMI\u3002\u6309\u5dee\u5f02\u6311\u51fa\u7684\u4f8b\u5b50\u9002\u5408\u89e3\u91ca\u673a\u5236\uff0c\u4e0d\u80fd\u7528\u6765\u4f30\u8ba1\u5e38\u89c1\u7a0b\u5ea6\u3002<\/p>\n<p>\u9879\u76ee\u8f93\u5165\u3000qc.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-08.png\"><img decoding=\"async\" loading=\"lazy\" style=\"max-width:100%;height:auto\" src=\"\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-classroom-2026-fig-08.png\" alt=\"\u4e24\u6839\u67f1\u5b50\u5bf9\u5e94\u4e24\u4e2a\u6761\u7801\uff0c\u7eb5\u8f74\u4e3a\u68c0\u51fa\u57fa\u56e0\u6570\u3002\u56fe\u4e2d\u76f8\u540c\u7684\u6d4b\u5e8f\u603b\u91cf\u5728\u7ed3\u679c\u8868\u7684 umi \u5217\uff0ctop10_pct \u89e3\u91ca\u8ba1\u6570\u662f\u5426\u96c6\u4e2d\u3002\"><\/picture><figcaption>\u4e24\u6839\u67f1\u5b50\u5bf9\u5e94\u4e24\u4e2a\u6761\u7801\uff0c\u7eb5\u8f74\u4e3a\u68c0\u51fa\u57fa\u56e0\u6570\u3002\u56fe\u4e2d\u76f8\u540c\u7684\u6d4b\u5e8f\u603b\u91cf\u5728\u7ed3\u679c\u8868\u7684 umi \u5217\uff0ctop10_pct \u89e3\u91ca\u8ba1\u6570\u662f\u5426\u96c6\u4e2d\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\">\u76f8\u540c\u7684 UMI \u603b\u6570<\/th>\n<td>3490<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u4e24\u7ec6\u80de\u68c0\u51fa\u57fa\u56e0\u6570\u4e4b\u5dee<\/th>\n<td>422<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u4f4e\u590d\u6742\u5ea6\u7ec6\u80de\u524d\u5341\u57fa\u56e0\u5360\u6bd4 %<\/th>\n<td>17.51<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u9ad8\u590d\u6742\u5ea6\u7ec6\u80de\u524d\u5341\u57fa\u56e0\u5360\u6bd4 %<\/th>\n<td>15.24<\/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 compare_two_cells.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>t=read(&#x27;qc.csv.gz&#x27;).sort_values([&#x27;umi&#x27;,&#x27;barcode&#x27;]);pairs=[]\r\nfor umi,s in t.groupby(&#x27;umi&#x27;):\r\n    if len(s)&lt;2:continue<\/code><\/pre>\n<h2>\u4ea4\u4f5c\u4e1a<\/h2>\n<p>\u82e5\u6539\u4e3a\u968f\u673a\u62bd\u4e24\u4e2a\u540c UMI \u7684\u7ec6\u80de\uff0c\u57fa\u56e0\u6570\u5dee\u8ddd\u4e00\u5b9a\u4e00\u6837\u5927\u5417\uff1f<\/p>\n<details>\n<summary>\u5c55\u5f00\u53c2\u8003\u7b54\u6848<\/summary>\n<p>\u901a\u5e38\u4f1a\u53d8\u5c0f\uff0c\u672c\u8bfe\u7279\u610f\u5bfb\u627e\u4e86\u5dee\u8ddd\u6700\u5927\u7684\u4e00\u5bf9\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>\u89e3\u91ca\u4e00\u4e2a\u7ec6\u80de\u5185\u8bfb\u6570\u66f4\u96c6\u4e2d\u7684\u8bc1\u636e\uff0c\u5e76\u8bf4\u51fa\u4ecd\u9700\u67e5\u770b\u4ec0\u4e48\u3002<\/p>\n","protected":false},"author":1,"featured_media":79112,"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-79214","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-08.png?fit=1134%2C607&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79214","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=79214"}],"version-history":[{"count":2,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79214\/revisions"}],"predecessor-version":[{"id":79307,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/79214\/revisions\/79307"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/79112"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=79214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=79214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=79214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}