{"id":78929,"date":"2026-11-28T13:58:30","date_gmt":"2026-11-28T05:58:30","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=78929"},"modified":"2026-11-28T14:10:16","modified_gmt":"2026-11-28T06:10:16","slug":"bioagent-singlecell-course-02","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/bioagent-singlecell-course-02\/","title":{"rendered":"\u5355\u7ec6\u80de\u5b9e\u6218\u8bfe 02\uff5c\u4ece\u5341\u884c\u5c0f\u8868\u8bfb\u61c2\u7ec6\u80de\u3001\u57fa\u56e0\u548c UMI"},"content":{"rendered":"<p>\u4e91\u751f\u4fe1 BioAgent \u5355\u7ec6\u80de\u5b9e\u6218\u8bfe\u3000\u00b7\u3000\u7b2c 02 \u7bc7\u3000\u00b7\u3000\u7ec3\u4e60<\/p>\n<p class=\"classroom-downloads\"><a href=\"https:\/\/www.biocloudservice.com\/bioagent\/\">\u6253\u5f00\u4e91\u751f\u4fe1 BioAgent<\/a>\u3000<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-classroom-2026-lab-02.zip\">\u4e0b\u8f7d\u672c\u7bc7\u6570\u636e\u4e0e\u4ee3\u7801 ZIP<\/a>\u3000<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-classroom-2026-slides-01.pptx\">\u4e0b\u8f7d\u4e24\u7bc7\u5171\u7528\u7684\u6388\u8bfe PPT<\/a><\/p>\n<p>\u7b2c 01 \u7bc7\u91cc\uff0c\u540c\u4e00\u4e2a\u7ec6\u80de\u540c\u65f6\u6709 UMI \u603b\u6570\u548c\u68c0\u51fa\u57fa\u56e0\u6570\u3002\u4eca\u5929\u628a\u8868\u7f29\u5230\u80fd\u7528\u7eb8\u7b14\u9a8c\u7b97\u7684\u5927\u5c0f\u3002\u8bf7\u5148\u5173\u6389\u7ed3\u679c\u6587\u4ef6\uff0c\u627e\u4e00\u5f20\u7eb8\u5199\u4e0b\u4e24\u4e2a\u95ee\u9898\uff1a\u8fd9\u4e00\u5217\u52a0\u8d77\u6765\u662f\u591a\u5c11\uff1f\u91cc\u9762\u6709\u51e0\u4e2a\u5927\u4e8e\u96f6\u7684\u683c\u5b50\uff1f<\/p>\n<h2>\u5341\u884c\u6570\u636e\uff0c\u56db\u5217\u7ec6\u80de<\/h2>\n<p>\u89e3\u538b <code>data\/toy_counts.csv<\/code>\u3002\u6bcf\u4e00\u884c\u662f\u4e00\u4e2a\u57fa\u56e0\uff0c\u56db\u5217\u662f\u4eba\u4e3a\u6784\u9020\u7684\u8bfe\u5802\u7ec6\u80de\u3002\u9009 <code>cell_A<\/code> \u4ece\u4e0a\u5f80\u4e0b\u8bfb\uff0c\u4f9d\u6b21\u662f 2\u30013\u30010\u30010\u30010\u30010\u30011\u30012\u30011\u30011\u3002\u524d\u4e24\u9879\u867d\u7136\u90fd\u5927\u4e8e\u96f6\uff0c\u4f46 2 \u548c 3 \u5408\u8ba1\u8d21\u732e\u4e86 5 \u4e2a UMI\uff0c\u53ea\u4ee3\u8868\u4e24\u4e2a\u68c0\u51fa\u7684\u57fa\u56e0\u3002<\/p>\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-02.png\"><img decoding=\"async\" style=\"width:auto;max-width:100%;height:auto;display:block;margin:0 auto\" src=\"\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-classroom-2026-fig-02.png\" alt=\"\u6559\u5b66\u6784\u9020\u77e9\u9635\u3002\u6bcf\u4e2a\u683c\u5b50\u662f UMI \u8ba1\u6570\uff0c\u6309\u5217\u8bfb\u4e00\u4e2a\u7ec6\u80de\uff0c\u989c\u8272\u8d8a\u6df1\u8868\u793a\u8ba1\u6570\u8d8a\u591a\u3002\"><\/picture><figcaption>\u6559\u5b66\u6784\u9020\u77e9\u9635\u3002\u6bcf\u4e2a\u683c\u5b50\u662f UMI \u8ba1\u6570\uff0c\u6309\u5217\u8bfb\u4e00\u4e2a\u7ec6\u80de\uff0c\u989c\u8272\u8d8a\u6df1\u8868\u793a\u8ba1\u6570\u8d8a\u591a\u3002<\/figcaption><\/figure>\n<h2>\u5148\u624b\u7b97\u4e24\u5217\uff0c\u518d\u628a\u9898\u4ea4\u7ed9 Agent<\/h2>\n<p>cell_A \u5168\u5217\u76f8\u52a0\u5f97\u5230 10\uff0c\u6709 6 \u4e2a\u975e\u96f6\u683c\u3002\u5bf9 cell_B \u91cd\u590d\u540c\u6837\u7684\u52a8\u4f5c\uff0c\u5f97\u5230 8 \u4e2a UMI\u30014 \u4e2a\u68c0\u51fa\u57fa\u56e0\u3002\u5982\u679c\u7b97\u51fa 10 \u4e2a\u68c0\u51fa\u57fa\u56e0\uff0c\u68c0\u67e5\u662f\u5426\u628a\u57fa\u56e0\u8868\u7684\u603b\u884c\u6570\u5f53\u4f5c\u6bcf\u5217\u7684\u975e\u96f6\u884c\u6570\u3002<\/p>\n<blockquote><p>\u8fd9\u662f\u4e00\u4e2a\u6784\u9020\u7684\u5341\u57fa\u56e0\u56db\u7ec6\u80de\u6559\u5b66\u77e9\u9635\u3002\u8bf7\u6309\u5217\u8ba1\u7b97 UMI \u603b\u6570\u548c\u5927\u4e8e\u96f6\u7684\u57fa\u56e0\u6570\uff0c\u628a A\u3001B \u4e24\u5217\u7684\u6c42\u548c\u8fc7\u7a0b\u5c55\u5f00\uff0c\u5bfc\u51fa\u6bcf\u683c\u6807\u6570\u5b57\u7684\u70ed\u56fe\u3001\u56db\u884c\u6c47\u603b\u8868\u548c\u4ee3\u7801\u3002<\/p><\/blockquote>\n<div style=\"overflow-x:auto\">\n<table style=\"width:100%;border-collapse:collapse\">\n<thead>\n<tr>\n<th scope=\"col\">\u7ec6\u80de<\/th>\n<th scope=\"col\">UMI \u5408\u8ba1<\/th>\n<th scope=\"col\">\u975e\u96f6\u57fa\u56e0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>A<\/td>\n<td>10<\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td>B<\/td>\n<td>8<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>C<\/td>\n<td>10<\/td>\n<td>7<\/td>\n<\/tr>\n<tr>\n<td>D<\/td>\n<td>10<\/td>\n<td>4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>\u7528\u4e00\u884c\u4ee3\u7801\u8bf4\u6e05\u4e24\u4e2a\u52a8\u4f5c<\/h2>\n<pre><code>umi = sum(col)\r\ndetected = sum(value &gt; 0 for value in col)<\/code><\/pre>\n<p>\u8fd9\u91cc\u7684 <code>col<\/code> \u662f\u4e00\u4e2a\u7ec6\u80de\u6240\u6709\u57fa\u56e0\u7684\u6574\u6570\u8ba1\u6570\u3002\u8981\u770b\u56db\u5217\u5b8c\u6574\u7ed3\u679c\uff0c\u5728\u672c\u5730\u6216\u670d\u52a1\u5668\u89e3\u538b\u8bfe\u7a0b\u5305\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u3002\u628a\u4f60\u5199\u7684\u4e24\u5217\u4e0e <code>results\/toy_summary.csv<\/code> \u9010\u9879\u5bf9\u7167\u3002<\/p>\n<pre><code>python -m pip install -r requirements.txt\r\npython count_by_hand.py<\/code><\/pre>\n<h2>\u7ec3\u900f\u4e00\u4e2a\u5224\u65ad<\/h2>\n<p>cell_C \u548c cell_D \u7684 UMI \u603b\u6570\u90fd\u662f 10\uff0c\u4e3a\u4ec0\u4e48\u68c0\u51fa\u7684\u57fa\u56e0\u6570\u53ef\u4ee5\u4e0d\u540c\uff1f\u5148\u7528\u7b14\u5708\u51fa\u975e\u96f6\u4f4d\u7f6e\uff0c\u518d\u5230\u70ed\u56fe\u91cc\u770b\u8f83\u6df1\u7684\u683c\u5b50\u96c6\u4e2d\u5728\u54ea\u4e9b\u884c\u3002\u5c06\u89c2\u5bdf\u5199\u6210\u4e00\u53e5\u8bdd\uff0c\u907f\u514d\u4ece\u5341\u884c\u6784\u9020\u8ba1\u6570\u63a8\u65ad\u7ec6\u80de\u8eab\u4efd\u3002<\/p>\n<details>\n<summary>\u5b8c\u6210\u540e\u6838\u5bf9<\/summary>\n<p>C \u6709 7 \u4e2a\u975e\u96f6\u57fa\u56e0\uff0cD \u6709 4 \u4e2a\u3002D \u7684 10 \u4e2a UMI \u4e2d\u6709 5 \u4e2a\u843d\u5728 LYZ \u8fd9\u4e00\u884c\u3002\u540c\u6837\u7684\u603b\u6570\u53ef\u4ee5\u66f4\u96c6\u4e2d\uff0c\u4e5f\u53ef\u4ee5\u5206\u6563\u5728\u66f4\u591a\u57fa\u56e0\u4e0a\u3002<\/p>\n<\/details>\n<p>\u8d44\u6599\u6765\u6e90\u3000\u5341\u884c\u5c0f\u8868\u4e3a\u8bfe\u7a0b\u6784\u9020\u3002<\/p>\n<p><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/bioagent-singlecell-course\/\">\u8fd4\u56de\u8bfe\u7a0b\u603b\u76ee\u5f55\uff0c\u9009\u62e9\u4e0b\u4e00\u7bc7<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u624b\u7b97\u4e24\u5217\uff0c\u9010\u5217\u5bf9\u4e0a\u811a\u672c\u8f93\u51fa\u3002<\/p>\n","protected":false},"author":1,"featured_media":78908,"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-78929","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-02.png?fit=1408%2C1496&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/78929","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=78929"}],"version-history":[{"count":2,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/78929\/revisions"}],"predecessor-version":[{"id":79301,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/78929\/revisions\/79301"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/78908"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=78929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=78929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=78929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}