{"id":80053,"date":"2026-12-05T10:00:00","date_gmt":"2026-12-05T02:00:00","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=80053"},"modified":"2026-11-28T21:41:12","modified_gmt":"2026-11-28T13:41:12","slug":"bioagent-multiome-paired-course-17","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/bioagent-multiome-paired-course-17\/","title":{"rendered":"RNA \u4e0e ATAC \u914d\u5bf9\u5b9e\u6218 17\uff5c\u4e24\u5957\u5206\u7fa4\u5728\u5168\u5c40\u4e0a\u6709\u591a\u4e00\u81f4"},"content":{"rendered":"<article style=\"overflow-wrap:anywhere;min-width:0\">\n<p>12 \u6708 5 \u65e5\u3000\uff5c\u3000\u7b2c 17 \u7bc7 \u00b7 \u5fc5\u4fee\u3000<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/bioagent-multiome-paired-course\/\">\u4e03\u5929\u8bfe\u7a0b\u76ee\u5f55<\/a><\/p>\n<p>\u628a RNA \u7684\u7c07\u53f7\u5168\u90e8\u6362\u6210\u5b57\u6bcd\uff0c\u771f\u5b9e\u7684\u5bf9\u5e94\u5173\u7cfb\u5e94\u8be5\u53d8\u5316\u5417\uff1f\u8fd9\u9053\u9898\u4ece\u4e24\u4e2a\u51bb\u7ed3\u6587\u4ef6\u5f00\u59cb\uff0c\u6bcf\u4e2a\u6761\u7801\u5404\u5e26\u4e00\u4e2a\u72ec\u7acb\u7c07\u53f7\u3002<\/p>\n<h2>RNA \u7684\u7b2c 2 \u7c07\u4e0e ATAC \u7684\u7b2c 2 \u7c07\u6709\u4f55\u5bf9\u5e94\u5173\u7cfb\uff1f<\/h2>\n<p>\u6309\u552f\u4e00\u6838\u6761\u7801\u5408\u5e76\uff0c\u5148\u6570\u6bcf\u4e2a RNA \u7c07\u5728\u5404 ATAC \u7c07\u4e2d\u843d\u4e86\u591a\u5c11\u6838\u3002\u5217\u8054\u8868\u4fdd\u7559\u5177\u4f53\u5bf9\u5e94\u5173\u7cfb\uff1b\u8c03\u6574\u5170\u5fb7\u6307\u6570 ARI \u6982\u62ec\u4e24\u5957\u5212\u5206\u5728\u6838\u5bf9\u5c42\u9762\u7684\u6574\u4f53\u4e00\u81f4\u7a0b\u5ea6\uff0c\u5e76\u5bf9\u968f\u673a\u4e00\u81f4\u4f5c\u6821\u6b63\u3002\u68c0\u67e5\u884c\u548c\u3001\u5217\u548c\u4e0e\u603b\u6570\uff0c\u6bd4\u76f4\u63a5\u6bd4\u7c07\u53f7\u53ef\u9760\u3002<\/p>\n<p>\u6309\u6761\u7801\u5408\u5e76\u4e24\u4efd\u51bb\u7ed3\u7684\u7c07\u7ed3\u679c\uff0c\u7528\u539f\u59cb\u7c07\u7f16\u53f7\u5efa\u7acb RNA\u00d7ATAC \u8ba1\u6570\u8868\uff0c\u5bf9\u539f\u59cb\u5212\u5206\u8ba1\u7b97\u8c03\u6574\u5170\u5fb7\u6307\u6570 ARI\u3002\u6253\u4e71\u7f16\u53f7\u540d\u79f0\u540e\u91cd\u65b0\u8ba1\u7b97\uff0c\u5e76\u68c0\u67e5\u884c\u5217\u548c\u3002<\/p>\n<h2>\u5728 BioAgent \u5173\u8054\u670d\u52a1\u5668\u4e0a\u6267\u884c<\/h2>\n<ol>\n<li><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-pairedmultiome26-lab-17.zip\">\u4e0b\u8f7d\u672c\u7bc7\u4ee3\u7801\u3001\u8bf4\u660e\u548c\u53c2\u8003\u7ed3\u679c<\/a>\uff0c\u5b8c\u6574\u89e3\u538b\u3002\u672c\u8bfe\u8f93\u5165\u5df2\u653e\u5728 data \u76ee\u5f55\u3002<\/li>\n<li><a href=\"https:\/\/www.biocloudservice.com\/bioagent\/\">\u6253\u5f00\u4e91\u751f\u4fe1 BioAgent<\/a>\uff0c\u5728\u7814\u7a76\u4f1a\u8bdd\u9009\u62e9\u81ea\u5df1\u7684\u670d\u52a1\u5668\uff0c\u628a\u672c\u8bfe ZIP \u52a0\u5165\u6d88\u606f\u3002<\/li>\n<li>\u590d\u5236\u4e0b\u9762\u7684\u4efb\u52a1\u3002\u590d\u67e5\u8fd4\u56de\u7684\u4e3b\u8868\u3001\u6307\u6807\u548c\u56fe\uff0c\u518d\u505a\u968f\u5802\u9898\u3002<\/li>\n<\/ol>\n<blockquote><p>\u8bf7\u89e3\u538b\u7b2c 17 \u7bc7\u8bfe\u5305\uff0c\u5728\u5173\u8054\u670d\u52a1\u5668\u8fd0\u884c <code>python lesson_17.py data results<\/code>\u3002\u5bf9\u5171\u540c\u6761\u7801\u6784\u5efa\u7c07\u00d7\u7c07\u5217\u8054\u8868\uff0c\u540c\u65f6\u8ba1\u7b97\u539f\u59cb\u7c07\u7684\u8c03\u6574\u5170\u5fb7\u6307\u6570\uff08ARI\uff09\u3002 \u8fd4\u56de\u5b9e\u9645\u6587\u4ef6\uff0c\u5e76\u6307\u51fa\u53ef\u4ee5\u5728\u4e3b\u8868\u6838\u5bf9\u7684\u4e00\u884c\u3002<\/p><\/blockquote>\n<details>\n<summary>\u81ea\u5df1\u5728\u7ec8\u7aef\u8fd0\u884c<\/summary>\n<p>Python 3.11\u3002\u53ef\u4f7f\u7528\u72ec\u7acb\u73af\u5883\uff0c\u5b89\u88c5\u4f9d\u8d56\uff1apython -m pip install matplotlib numpy pandas scikit-learn scipy\u3002<\/p>\n<pre><code>python lesson_17.py data results<\/code><\/pre>\n<\/details>\n<h2>RNA \u7c07\u4e0e ATAC \u7c07\u7684\u91cd\u53e0<\/h2>\n<figure><picture><source type=\"image\/png\" srcset=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-pairedmultiome26-fig-17.png\"><img decoding=\"async\"  src=\"\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-pairedmultiome26-fig-17.png\" alt=\"RNA \u7c07\u4e0e ATAC \u7c07\u7684\u91cd\u53e0\" style=\"max-width:100%;height:auto\"><\/picture><figcaption>\u4e00\u683c\u662f\u4e24\u4e2a\u7c07\u5171\u6709\u7684\u6838\u6570\u3002\u5148\u770b\u884c\u5408\u8ba1\u4e0e\u5217\u5408\u8ba1\uff0c\u518d\u8bfb\u5168\u5c40 ARI\u3002\u4e24\u8fb9\u90fd\u53eb 2 \u53f7\u7c07\u5e76\u4e0d\u610f\u5473\u7740\u751f\u7269\u8eab\u4efd\u76f8\u540c\u3002<\/figcaption><\/figure>\n<h2>\u4ece\u56fe\u56de\u5230\u8868<\/h2>\n<p>RNA \u5206\u51fa 10 \u4e2a\u7c07\uff0cATAC \u5206\u51fa 12 \u4e2a\u7c07\u30022,501 \u6838\u4e24\u79cd\u72ec\u7acb\u5206\u533a\u7684 ARI \u4e3a 0.6401\uff1b\u66ff\u6362\u4e00\u4fa7\u7684\u7f16\u53f7\u540e\u4e3a 0.6401\u3002<\/p>\n<div style=\"max-width:100%;overflow-x:auto\">\n<table>\n<thead>\n<tr>\n<th>\u6307\u6807<\/th>\n<th>\u5b57\u6bb5<\/th>\n<th>\u672c\u6b21\u5b9e\u8dd1\u503c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5171\u540c\u4fdd\u7559\u6838\u6570<\/td>\n<td>common_nuclei<\/td>\n<td>2,501<\/td>\n<\/tr>\n<tr>\n<td>\u72ec\u7acb RNA \u7c07\u6570<\/td>\n<td>rna_clusters<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>\u72ec\u7acb ATAC \u7c07\u6570<\/td>\n<td>atac_clusters<\/td>\n<td>12<\/td>\n<\/tr>\n<tr>\n<td>\u4e24\u79cd\u72ec\u7acb\u5206\u533a\u7684 ARI<\/td>\n<td>adjusted_rand_index<\/td>\n<td>0.6401<\/td>\n<\/tr>\n<tr>\n<td>\u6539\u7c07\u540d\u540e\u7684 ARI<\/td>\n<td>ari_after_renaming<\/td>\n<td>0.6401<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<details>\n<summary>\u67e5\u770b\u4e3b\u8868\u5f00\u5934\u7684\u6837\u4f8b\u884c<\/summary>\n<div style=\"max-width:100%;overflow-x:auto\">\n<table>\n<thead>\n<tr>\n<th>rna_cluster<\/th>\n<th>atac_cluster<\/th>\n<th>n_nuclei<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>0<\/td>\n<td>0<\/td>\n<td>99<\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>1<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>2<\/td>\n<td>2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u5b8c\u6574\u5b57\u6bb5\u548c\u539f\u59cb\u7cbe\u5ea6\u89c1 <code>reference\/result_17.csv<\/code>\u3002\u6307\u6807\u6765\u81ea <code>metrics_17.csv<\/code>\u3002<\/p>\n<\/details>\n<p>\u672c\u7bc7\u56fe\u8868\u7531\u4e91\u751f\u4fe1 BioAgent \u5bf9\u8bdd\u8c03\u7528\u5173\u8054\u670d\u52a1\u5668\u6267\u884c\u6559\u5b66\u4ee3\u7801\u751f\u6210\u3002\u4e0b\u8f7d\u5305\u7684 <code>provenance.json<\/code> \u8bb0\u5f55\u8f93\u5165\u3001\u811a\u672c\u4e0e\u4e3b\u8981\u8f93\u51fa\u7684 SHA-256 \u6307\u7eb9\u3002<\/p>\n<div data-course-field-guide=\"1\">\n<p><strong>\u8bfb\u4e3b\u8868\u5148\u770b\u8fd9\u4e9b\u5217\u3002<\/strong>\u3000<code>rna_cluster<\/code> RNA \u5206\u7fa4\u7684\u7c07\u53f7\u3000<code>atac_cluster<\/code> ATAC \u5206\u7fa4\u7684\u7c07\u53f7\u3000<code>n_nuclei<\/code> \u5f53\u524d\u4ea4\u53c9\u683c\u5305\u542b\u7684\u6838\u6570<\/p>\n<details>\n<summary>\u67e5\u770b\u5b9e\u9645\u6e90\u7801\u4e2d\u7684\u4e00\u5904\u8ba1\u7b97<\/summary>\n<p>\u8282\u9009\u81ea <code>lesson_17.py<\/code> \u7b2c 92 \u884c\u3002\u8bfb\u8fd9\u6bb5\u65f6\uff0c\u53ef\u5728\u5b8c\u6574\u811a\u672c\u4e2d\u5bf9\u7167\u8f93\u5165\u53d8\u91cf\u548c\u8f93\u51fa\u5217\u3002<\/p>\n<pre style=\"white-space:pre-wrap;overflow-wrap:anywhere\"><code>    renamed=adjusted_rand_score(both.rna_cluster,both.atac_cluster.map(reverse));assert np.isclose(ari,renamed)<\/code><\/pre>\n<\/details>\n<p>\u8fd9\u4e24\u8def\u5728\u4e0d\u540c BioAgent \u7814\u7a76\u4f1a\u8bdd\u4e2d\u5b8c\u6210\u3002\u5148\u5c01\u5b58\u7b2c 10 \u7bc7\u7684 RNA \u6807\u7b7e\u548c\u7b2c 14 \u7bc7\u7684 ATAC \u6807\u7b7e\uff0c\u518d\u5728\u8fd9\u91cc\u6309\u7edf\u4e00\u6761\u7801\u8fde\u63a5\u3002\u53ef\u7528\u8f93\u5165\u6e05\u5355\u7684\u6307\u7eb9\u5bf9\u7167\u5404\u5206\u652f\u5bfc\u51fa\u7684\u6587\u4ef6\u3002<\/p>\n<\/div>\n<h2>\u968f\u5802\u7ec3\u4e60<\/h2>\n<p>ARI \u4e3a\u67d0\u4e2a\u503c\uff0c\u80fd\u636e\u6b64\u5217\u51fa\u201c\u5224\u65ad\u9519\u7684\u6838\u201d\u5417\uff1f<\/p>\n<details>\n<summary>\u505a\u5b8c\u540e\u67e5\u770b\u53c2\u8003\u7b54\u6848<\/summary>\n<p>ARI \u662f\u4e24\u5957\u5206\u533a\u7684\u6574\u4f53\u6bd4\u8f83\u3002\u8981\u5b9a\u4f4d\u5177\u4f53\u6838\uff0c\u5e94\u56de\u5230\u4ea4\u53c9\u8868\u3001\u5bbd\u8c31\u7cfb\u6807\u7b7e\u548c\u9010\u6838\u8bc1\u636e\uff1b\u4ec5\u4ece\u4e00\u4e2a\u5168\u5c40\u5206\u6570\u65e0\u6cd5\u8fd8\u539f\u5019\u9009\u540d\u5355\u3002<\/p>\n<\/details>\n<p><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-pairedmultiome26-lab-17.zip\">\u4e0b\u8f7d\u672c\u7bc7\u5b9e\u9a8c\u5305<\/a>\u3000<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-pairedmultiome26-slides-17.pptx\">\u4e0b\u8f7d\u672c\u7ec4\u4e24\u7bc7\u7684\u53ef\u7f16\u8f91 PPT<\/a><\/p>\n<p>\u6570\u636e\u4e0e\u65b9\u6cd5\u3000<a href=\"https:\/\/www.10xgenomics.com\/datasets\/pbmc-from-a-healthy-donor-granulocytes-removed-through-cell-sorting-3-k-1-standard-1-0-0\">10x Genomics \u00b7 \u672c\u8bfe 3k \u914d\u5bf9\u6570\u636e\uff08CC BY 4.0\uff09<\/a>\u3000<a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.metrics.adjusted_rand_score.html\">\u8c03\u6574\u5170\u5fb7\u6307\u6570\u7684\u5b9a\u4e49<\/a><\/p>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>\u628a RNA \u7684\u7c07\u53f7\u5168\u90e8\u6362\u6210\u5b57\u6bcd\uff0c\u771f\u5b9e\u7684\u5bf9\u5e94\u5173\u7cfb\u5e94\u8be5\u53d8\u5316\u5417\uff1f\u8fd9\u9053\u9898\u4ece\u4e24\u4e2a\u51bb\u7ed3\u6587\u4ef6\u5f00\u59cb\uff0c\u6bcf\u4e2a\u6761\u7801\u5404\u5e26\u4e00\u4e2a\u72ec\u7acb\u7c07\u53f7\u3002<\/p>\n","protected":false},"author":1,"featured_media":79980,"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":[2123],"tags":[],"class_list":["post-80053","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bioagent-multiome-paired-class-2026"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-pairedmultiome26-fig-17.png?fit=1057%2C763&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/80053","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=80053"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/80053\/revisions"}],"predecessor-version":[{"id":80082,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/80053\/revisions\/80082"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/79980"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=80053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=80053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=80053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}