{"id":72141,"date":"2026-11-17T13:34:33","date_gmt":"2026-11-17T05:34:33","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=72141"},"modified":"2026-11-17T13:34:33","modified_gmt":"2026-11-17T05:34:33","slug":"ysx-sc-practice-070-hdwgcna-metacell-donors","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/ysx-sc-practice-070-hdwgcna-metacell-donors\/","title":{"rendered":"\u5355\u7ec6\u80de\u6570\u636e\u592a\u7a00\u758f\uff0c\u600e\u6837\u7528 metacell \u627e\u5171\u8868\u8fbe\u6a21\u5757\uff0c\u53c8\u4fdd\u4f4f\u4f9b\u8005\u5dee\u5f02\uff1f"},"content":{"rendered":"<div style=\"max-width:820px;margin:0 auto;color:#263a47;font-size:17px;line-height:1.85;overflow-wrap:break-word\">\n<p>\u540c\u4e00\u4f4d\u4f9b\u8005\u3001\u540c\u4e00\u7c7b\u5355\u6838\u7ec6\u80de\u91cc\uff0c\u4e24\u4e2a\u5e72\u6270\u7d20\u76f8\u5173\u57fa\u56e0\u6709\u65f6\u50cf\u662f\u8f6e\u6d41\u51fa\u73b0\u3002\u4f60\u80fd\u5728\u8fd9\u9897\u7ec6\u80de\u91cc\u8bfb\u5230\u5176\u4e2d\u4e00\u4e2a\uff0c\u5728\u65c1\u8fb9\u90a3\u9897\u53c8\u53ea\u8bfb\u5230\u53e6\u4e00\u4e2a\u3002\u82e5\u628a\u6240\u6709\u7ec6\u80de\u6df7\u5728\u4e00\u8d77\u7b97\u76f8\u5173\uff0c\u7a00\u758f\u6027\u3001\u5b9e\u9a8c\u6761\u4ef6\u548c\u4f9b\u8005\u5dee\u5f02\u90fd\u4f1a\u5f71\u54cd\u76f8\u5173\u7cfb\u6570\u3002\u628a\u76f8\u8fd1\u7ec6\u80de\u805a\u6210 metacell \u53ef\u4ee5\u589e\u52a0\u5171\u540c\u89c2\u6d4b\uff0c\u4f46\u5982\u679c\u540c\u4e00\u4e2a\u805a\u5408\u91cc\u5df2\u7ecf\u6df7\u5165\u4e0d\u540c\u4f9b\u8005\uff0c\u60f3\u518d\u8ffd\u95ee\u6bcf\u4f4d\u4f9b\u8005\u662f\u5426\u90fd\u51fa\u73b0\u540c\u6837\u7684\u6a21\u5757\u5c31\u5f88\u96be\u4e86\u3002\u672c\u6587\u4ece\u516b\u4f4d\u4f9b\u8005\u7684\u771f\u5b9e\u5355\u6838\u7ec6\u80de\u51fa\u53d1\uff0c\u5148\u9650\u5b9a\u8c01\u53ef\u4ee5\u805a\u5728\u4e00\u8d77\uff0c\u518d\u628a\u5171\u8868\u8fbe\u6a21\u5757\u4e00\u76f4\u8ffd\u5230\u5b83\u6765\u81ea\u54ea\u4e9b\u539f\u59cb\u7ec6\u80de\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1240\" height=\"800\" style=\"width:100%;height:auto;display:block;border-radius:12px\" alt=\"\u4e00\u767e\u56db\u5341\u516b\u4e2a metacell \u4e2d\u7684\u4e5d\u5341\u56db\u57fa\u56e0\u6a21\u5757\uff0c\u5728\u516b\u540d\u4f9b\u8005\u523a\u6fc0\u540e\u5747\u5347\u9ad8\uff0c\u6ce8\u610f\u539f\u6761\u7801\u590d\u7528\u4e0e\u6df1\u5ea6\u76f8\u5173\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-070-hdwgcna-metacell-donors.png?resize=1240%2C800&#038;ssl=1\" \/><\/p>\n<p><a download style=\"display:inline-block;margin:3px;padding:4px 10px;border:1px solid #bad0dd;border-radius:5px\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-070-hdwgcna-metacell-donors.zip\">\u4e0b\u8f7d\u5b8c\u6574\u4ee3\u7801\u3001\u793a\u4f8b\u6570\u636e\u4e0e\u53c2\u8003\u8f93\u51fa\uff08ZIP\uff09<\/a> \u00b7 <a download style=\"display:inline-block;margin:3px;padding:4px 10px;border:1px solid #bad0dd;border-radius:5px\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-070-hdwgcna-metacell-donors.pdf\">\u4e0b\u8f7d\u56fe\u6587\u64cd\u4f5c\u624b\u518c\uff08PDF\uff09<\/a><\/p>\n<h2>\u4ece\u54ea\u4e00\u6279\u7ec6\u80de\u5efa\u7f51<\/h2>\n<p>\u516c\u5f00\u5b9e\u9a8c\u5bf9\u591a\u540d\u4f9b\u8005\u7684\u514d\u75ab\u7ec6\u80de\u5206\u522b\u4fdd\u7559\u5bf9\u7167\uff0c\u5e76\u8fdb\u884c\u5e72\u6270\u7d20\u523a\u6fc0\u3002\u7ec3\u4e60\u4f7f\u7528\u539f\u6ce8\u91ca\u91cc\u7684\u7ecf\u5178\u5355\u6838\u7ec6\u80de\uff0c\u6bcf\u4e2a\u4f9b\u8005\u3001\u6bcf\u4e2a\u6761\u4ef6\u56fa\u5b9a\u968f\u673a\u62bd\u4e03\u5341\u4e8c\u4e2a\u6761\u7801\uff0c\u5171\u4e00\u5343\u4e00\u767e\u4e94\u5341\u4e8c\u9897\u3002\u539f\u59cb\u8ba1\u6570\u6765\u81ea\u540c\u4e00\u4e2a\u516c\u5f00\u5bf9\u8c61\uff0c\u53e6\u5916\u4fdd\u7559\u6309\u6240\u6709\u57fa\u56e0\u8ba1\u7b97\u7684\u6bcf\u4e2a\u7ec6\u80de\u6587\u5e93\u6df1\u5ea6\u3002\u5728\u914d\u5957\u5c0f\u8868\u91cc\uff0c\u6211\u4eec\u6709\u610f\u7f29\u5c0f\u57fa\u56e0\u80cc\u666f\uff0c\u9009\u5165\u5e38\u89c1\u57fa\u56e0\u3001\u4e00\u7ec4\u9884\u5148\u58f0\u660e\u7684\u5e72\u6270\u7d20\u6807\u8bb0\u548c\u90e8\u5206\u968f\u673a\u62bd\u53d6\u7684\u5176\u4ed6\u57fa\u56e0\uff0c\u5171\u4e8c\u767e\u4e94\u5341\u4e03\u4e2a\u3002\u8fd9\u4e2a\u8bbe\u8ba1\u8ba9\u8bfb\u8005\u80fd\u5feb\u901f\u91cd\u5efa\u7f51\u7edc\uff0c\u4e5f\u610f\u5473\u7740\u6807\u8bb0\u57fa\u56e0\u5bb9\u6613\u88ab\u770b\u5230\uff1b\u540e\u9762\u7684\u6a21\u5757\u4e0d\u80fd\u76f4\u63a5\u5f53\u4f5c\u5728\u5168\u8f6c\u5f55\u7ec4\u4e2d\u65e0\u504f\u53d1\u73b0\u7684\u6e05\u5355\u3002<a href=\"https:\/\/doi.org\/10.1038\/nbt.4042\">Kang \u7b49\u7684\u539f\u59cb\u5b9e\u9a8c<\/a><\/p>\n<p>\u5148\u5728\u7ec6\u80de\u8868\u91cc\u4ea4\u53c9\u7edf\u8ba1\u4f9b\u8005\u548c\u5904\u7406\u6761\u4ef6\uff0c\u518d\u770b\u7ec6\u80de\u7c7b\u578b\u6709\u65e0\u6df7\u5165\u5176\u4ed6\u8c31\u7cfb\u3002\u6bcf\u4e00\u683c\u80fd\u53d6\u5230\u76f8\u540c\u7684\u7ec6\u80de\u6570\uff0c\u662f\u56e0\u4e3a\u8fd9\u91cc\u5b9e\u884c\u4e86\u5e73\u8861\u62bd\u6837\u3002\u81ea\u5df1\u5b9e\u9a8c\u4e2d\u6ca1\u6709\u6d4b\u5230\u7684\u90a3\u4e00\u683c\u4f1a\u7559\u7a7a\uff0c\u4e0d\u80fd\u968f\u673a\u4ece\u522b\u7684\u4f9b\u8005\u53d6\u51e0\u9897\u8865\u8fdb\u53bb\u3002\u539f\u5bf9\u8c61\u4e00\u9897\u7ec6\u80de\u7684\u5168\u5e93\u5206\u5b50\u6570\u4e5f\u8981\u8ddf\u968f\u6761\u7801\u4fdd\u7559\uff1b\u7f29\u6210\u4e8c\u767e\u591a\u4e2a\u57fa\u56e0\u4e4b\u540e\u624d\u6c42\u884c\u548c\uff0c\u4f1a\u628a\u5f88\u591a\u5df2\u88ab\u79fb\u9664\u7684\u5206\u5b50\u5f53\u4f5c\u6ca1\u6709\u6d4b\u5230\uff0c\u523a\u6fc0\u65f6\u96c6\u4f53\u5347\u9ad8\u7684\u57fa\u56e0\u8fd8\u4f1a\u6539\u53d8\u9762\u677f\u5185\u90e8\u7684\u5206\u6bcd\u3002\u8fd9\u4e2a\u5bb9\u6613\u6f0f\u6389\u7684\u7ec6\u8282\u4e5f\u4f1a\u6539\u53d8\u4e0b\u9762\u7528\u4e8e\u805a\u5408\u7684\u4e3b\u6210\u5206\u3002<\/p>\n<h2>\u805a\u5408\u524d\uff0c\u5148\u660e\u786e\u5141\u8bb8\u8c01\u6210\u4e3a\u90bb\u5c45<\/h2>\n<p>\u6211\u4eec\u7528\u6574\u4e2a\u6587\u5e93\u7684\u539f\u59cb\u5206\u5b50\u603b\u6570\u5f52\u4e00\u5316\u9762\u677f\uff0c\u518d\u7f29\u653e\u5e76\u8ba1\u7b97\u4e3b\u6210\u5206\u3002\u5728\u7ec6\u80de\u7c7b\u578b\u3001\u4f9b\u8005\u548c\u523a\u6fc0\u6761\u4ef6\u4e09\u5217\u5b8c\u5168\u76f8\u540c\u7684\u8303\u56f4\u5185\uff0chdWGCNA \u624d\u7528\u524d\u5341\u4e2a\u4e3b\u6210\u5206\u5bfb\u627e\u90bb\u8fd1\u72b6\u6001\u3002\u6bcf\u4e2a\u805a\u5408\u7528\u5341\u4e8c\u9897\u7ec6\u80de\uff0c\u8ba1\u6570\u6309\u57fa\u56e0\u76f8\u52a0\uff0c\u540c\u4e00\u5206\u7ec4\u5185\u4e24\u4efd\u805a\u5408\u6700\u591a\u5171\u4eab\u56db\u9897\u539f\u59cb\u7ec6\u80de\u3002\u51fd\u6570\u4e2d\u7684\u76ee\u6807\u805a\u5408\u6570\u662f\u5c1d\u8bd5\u8fbe\u5230\u7684\u76ee\u6807\uff0c\u5b9e\u9645\u83b7\u5f97\u591a\u5c11\u8981\u770b\u90bb\u57df\u7ed3\u6784\u548c\u91cd\u53e0\u9650\u5236\u3002\u8fc7\u65e9\u628a\u4e0d\u540c\u5904\u7406\u6761\u4ef6\u6d88\u9664\u6389\uff0c\u4f1a\u8ba9\u540c\u4e00\u805a\u5408\u540c\u65f6\u4ee3\u8868\u5bf9\u7167\u548c\u523a\u6fc0\uff0c\u4e5f\u5c31\u65e0\u6cd5\u518d\u7528\u8fd9\u4e2a\u805a\u5408\u5224\u65ad\u523a\u6fc0\u540e\u7684\u53d8\u5316\u3002<a href=\"https:\/\/smorabit.github.io\/hdWGCNA\/articles\/basic_tutorial.html\">hdWGCNA \u4f5c\u8005\u7684\u5206\u7ec4\u805a\u5408\u793a\u4f8b<\/a><\/p>\n<pre style=\"max-width:100%;overflow:auto;padding:14px;box-sizing:border-box;background:#f1f6fa;line-height:1.6;font-size:0.9em\"><code class=\"language-r\">obj &lt;- MetacellsByGroups(obj, group.by=c(&quot;cell_type&quot;,&quot;donor&quot;,&quot;condition&quot;),\n                         ident.group=&quot;cell_type&quot;, reduction=&quot;pca&quot;, dims=1:10,\n                         k=12, min_cells=40, max_shared=4, target_metacells=12,\n                         mode=&quot;sum&quot;, max_iter=1500)\nmc &lt;- GetMetacellObject(obj)\n<\/code><\/pre>\n<p>\u672c\u6b21\u4ea7\u751f\u4e00\u767e\u56db\u5341\u516b\u4e2a metacell\uff0c\u6bcf\u4e2a\u6b63\u597d\u542b\u5341\u4e8c\u9897\uff0c\u5171\u6709\u4e00\u5343\u4e03\u767e\u4e03\u5341\u516d\u6761\u6210\u5458\u8bb0\u5f55\u3002\u6309\u6761\u7801\u53bb\u91cd\u540e\u5374\u53ea\u8986\u76d6\u4e5d\u767e\u4e5d\u5341\u4e03\u9897\u7ec6\u80de\u3002\u4e00\u4e2a\u539f\u59cb\u7ec6\u80de\u53ef\u4ee5\u5728\u540c\u4e00\u5206\u7ec4\u7684\u591a\u4e2a\u805a\u5408\u4e2d\u51fa\u73b0\uff0c\u4e5f\u4f1a\u6709\u7ec6\u80de\u6ca1\u6709\u88ab\u4efb\u4f55\u4e00\u4e2a\u805a\u5408\u9009\u4e2d\u3002\u82e5\u6709\u4eba\u628a\u4e00\u5343\u4e03\u767e\u4e03\u5341\u516d\u5199\u6210\u201c\u53c2\u52a0\u5206\u6790\u7684\u4e00\u5343\u4e03\u767e\u4e03\u5341\u516d\u4e2a\u7ec6\u80de\u201d\uff0c\u8fd9\u5f20\u6210\u5458\u8868\u5c31\u80fd\u7ea0\u6b63\u8ba1\u6570\u3002\u4e0b\u8f7d\u7684\u8f93\u51fa\u6309\u6bcf\u4e2a\u8f93\u5165\u6761\u7801\u5217\u51fa\u5165\u9009\u6b21\u6570\uff0c\u5305\u542b\u4e00\u6b21\u4e5f\u6ca1\u51fa\u73b0\u7684\u7ec6\u80de\u3002\u5c06\u5b83\u63a5\u56de\u4f4e\u6df1\u5ea6\u533a\u57df\u6216\u7f55\u89c1\u4e9a\u7fa4\uff0c\u80fd\u53d1\u73b0\u54ea\u4e9b\u72b6\u6001\u5728\u5efa\u7f51\u65f6\u88ab\u4f4e\u4f30\u3002<\/p>\n<h2>\u6838\u5b9e\u6bcf\u4e2a\u805a\u5408\u786e\u5b9e\u6765\u81ea\u4e00\u4e2a\u4f9b\u8005<\/h2>\n<p>\u805a\u5408\u7ed3\u679c\u4e2d\u7684\u540d\u5b57\u5e26\u6709\u4f9b\u8005\uff0c\u4ecd\u503c\u5f97\u505a\u4e00\u6b21\u72ec\u7acb\u9a8c\u8bc1\u3002\u6211\u4eec\u628a\u6210\u5458\u6e05\u5355\u6309\u539f\u6761\u7801\u63a5\u56de\u7ec6\u80de\u8868\uff0c\u7ed9\u6bcf\u4e2a\u805a\u5408\u91cd\u65b0\u8ba1\u7b97\u4f9b\u8005\u3001\u6761\u4ef6\u3001\u7c7b\u578b\u7684\u4e0d\u540c\u53d6\u503c\u6570\uff0c\u4e09\u5217\u90fd\u5e94\u53ea\u6709\u4e00\u4e2a\u53d6\u503c\u3002\u63a5\u7740\u628a\u5341\u4e8c\u9897\u7ec6\u80de\u7684\u5168\u5e93\u6df1\u5ea6\u76f8\u52a0\uff0c\u4e0e\u805a\u5408\u8868\u91cc\u7684\u6df1\u5ea6\u9010\u4e2a\u5bf9\u7167\u3002\u8fd9\u6837\u505a\u4e5f\u80fd\u53d1\u73b0\u4e24\u4efd\u6837\u672c\u590d\u7528\u4e86\u77ed\u6761\u7801\u3001\u5728\u5408\u5e76\u8f93\u5165\u65f6\u4e22\u5931\u6837\u672c\u524d\u7f00\u7b49\u95ee\u9898\u3002\u5047\u5982\u540c\u4e00\u4e2a\u77ed\u6761\u7801\u5728\u4e24\u4efd\u6587\u5e93\u91cc\u90fd\u5b58\u5728\uff0c\u5e94\u5148\u521b\u5efa\u5305\u542b\u6837\u672c\u8eab\u4efd\u7684\u952e\uff0c\u518d\u8fdb\u884c\u5339\u914d\u3002\u6587\u672b\u4e0b\u8f7d\u5305\u4e2d\u4fdd\u7559\u4e86\u8fd9\u6bb5\u53ef\u4ee5\u76f4\u63a5\u79fb\u7528\u7684\u68c0\u67e5\u3002<\/p>\n<pre style=\"max-width:100%;overflow:auto;padding:14px;box-sizing:border-box;background:#f1f6fa;line-height:1.6;font-size:0.9em\"><code class=\"language-python\">def validate_membership(members, cells, metacells):\n    if members.duplicated([&quot;metacell&quot;, &quot;barcode&quot;]).any():\n        raise ValueError(&quot;A cell occurs twice in one metacell&quot;)\n    joined = members.join(cells[[&quot;donor&quot;, &quot;condition&quot;, &quot;cell_type&quot;, &quot;original_total_umi&quot;]], on=&quot;barcode&quot;, validate=&quot;many_to_one&quot;)\n    if joined.isna().any().any():\n        raise ValueError(&quot;A barcode in membership is missing from sample metadata&quot;)\n    by = joined.groupby(&quot;metacell&quot;)\n    if (by[[&quot;donor&quot;, &quot;condition&quot;, &quot;cell_type&quot;]].nunique() != 1).any().any():\n        raise ValueError(&quot;A metacell crosses a biological stratum&quot;)\n    if set(metacells.index) != set(by.groups):\n        raise ValueError(&quot;Metacell identifiers differ&quot;)\n    for col in [&quot;donor&quot;, &quot;condition&quot;]:\n        if not (by[col].first() == metacells[col].sort_index()).all():\n            raise ValueError(&quot;Metacell origin differs from its constituent barcodes&quot;)\n    if not np.array_equal(by.original_total_umi.sum(), metacells.library_sum.sort_index()):\n        raise ValueError(&quot;Library totals are inconsistent&quot;)\n    return joined\n<\/code><\/pre>\n<div style=\"overflow:auto\">\n<table style=\"width:100%;border-collapse:collapse\">\n<thead>\n<tr>\n<th style=\"padding:9px;text-align:left;background:#ffe1e8\">\u8f93\u51fa<\/th>\n<th style=\"padding:9px;text-align:left;background:#ffe1e8\">\u5728\u8fd9\u6b21\u8fd0\u884c\u91cc\u770b\u4ec0\u4e48<\/th>\n<th style=\"padding:9px;text-align:left;background:#ffe1e8\">\u80fd\u53d1\u73b0\u7684\u95ee\u9898<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">membership_totals.tsv<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u539f\u59cb 1,152 \u9897\uff0c\u53bb\u91cd\u8986\u76d6 997 \u9897<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u7528\u6210\u5458\u6570\u5145\u5f53\u539f\u7ec6\u80de\u6570<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">barcode_reuse.tsv<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u6bcf\u4e2a\u539f\u59cb\u6761\u7801\u5206\u522b\u8d21\u732e\u591a\u5c11\u6b21<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u67d0\u79cd\u72b6\u6001\u5f88\u5c11\u88ab\u805a\u5408\u9009\u4e2d<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">module_inventory.tsv<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u5df2\u5206\u914d\u6a21\u5757\u4e0e\u7070\u8272\u672a\u5206\u914d\u96c6\u5408<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u628a\u6240\u6709\u57fa\u56e0\u90fd\u89e3\u91ca\u6210\u6a21\u5757<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">paired_donors.tsv<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u6bcf\u4f4d\u4f9b\u8005\u5404\u81ea\u7684\u5bf9\u7167\u3001\u523a\u6fc0\u548c\u5dee<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u603b\u4f53\u8d8b\u52bf\u7531\u5355\u4e2a\u4f9b\u8005\u4e3b\u5bfc<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>\u4ece\u6709\u7b26\u53f7\u7f51\u7edc\u5f97\u5230\u4e00\u4e2a\u53ef\u4ee5\u56de\u67e5\u7684\u6a21\u5757<\/h2>\n<p>\u805a\u5408\u540e\u7684\u9762\u677f\u6309\u5341\u4e8c\u9897\u7ec6\u80de\u7684\u5168\u5e93\u603b\u5206\u5b50\u6570\u91cd\u65b0\u5f52\u4e00\u5316\uff0c\u968f\u540e\u7528\u540c\u4e00\u7c7b\u578b\u7684 metacell \u6784\u5efa\u6709\u7b26\u53f7\u7f51\u7edc\u3002\u6211\u4eec\u56fa\u5b9a\u8f6f\u9608\u503c\u5e42\u516d\u3001\u6700\u5c0f\u6a21\u5757\u5341\u4e8c\u4e2a\u57fa\u56e0\uff0c\u7528\u62d3\u6251\u91cd\u53e0\u548c\u5c42\u6b21\u805a\u7c7b\u8bc6\u522b\u5171\u540c\u53d8\u5316\u7684\u57fa\u56e0\u3002\u5e42\u516d\u662f\u672c\u6b21\u5c0f\u9762\u677f\u7ec3\u4e60\u7684\u6307\u5b9a\u53c2\u6570\u3002\u6b63\u5f0f\u6570\u636e\u5e94\u67e5\u770b\u5019\u9009\u5e42\u4e0b\u7684\u8fde\u63a5\u5ea6\u4e0e\u7f51\u7edc\u62df\u5408\u8868\u73b0\uff0c\u540c\u65f6\u6539\u53d8\u5408\u7406\u53c2\u6570\u68c0\u67e5\u6a21\u5757\u662f\u5426\u53cd\u590d\u51fa\u73b0\u3002\u7ed9\u7f51\u7edc\u8f93\u5165\u8868\u8fbe\u77e9\u9635\u65f6\u4e5f\u8981\u786e\u8ba4\u65b9\u5411\uff0c\u884c\u4ee3\u8868\u4f5c\u4e3a\u89c2\u5bdf\u7684\u805a\u5408\uff0c\u5217\u4ee3\u8868\u57fa\u56e0\u3002\u628a\u77e9\u9635\u8f6c\u53cd\u4ecd\u53ef\u80fd\u7b97\u51fa\u805a\u7c7b\u6811\uff0c\u4f46\u6811\u53f6\u4fbf\u4e0d\u518d\u5bf9\u5e94\u4f60\u60f3\u7814\u7a76\u7684\u5206\u5b50\u3002<a href=\"https:\/\/doi.org\/10.1016\/j.crmeth.2023.100498\">hdWGCNA \u539f\u59cb\u65b9\u6cd5<\/a><\/p>\n<pre style=\"max-width:100%;overflow:auto;padding:14px;box-sizing:border-box;background:#f1f6fa;line-height:1.6;font-size:0.9em\"><code class=\"language-r\">obj &lt;- ConstructNetwork(obj, soft_power=6, networkType=&quot;signed&quot;, TOMType=&quot;signed&quot;,\n                        deepSplit=2, minModuleSize=12, mergeCutHeight=.20,\n                        tom_name=&quot;monocytes&quot;, tom_outdir=tempdir(), overwrite_tom=TRUE,\n                        nThreads=1)\nmods &lt;- GetModules(obj)[,c(&quot;gene_name&quot;,&quot;module&quot;,&quot;color&quot;)]\n<\/code><\/pre>\n<p>\u5f97\u5230\u7684\u4e24\u4e2a\u6709\u8272\u6a21\u5757\u5206\u522b\u542b\u4e5d\u5341\u56db\u548c\u4e00\u767e\u4e8c\u5341\u4e09\u4e2a\u57fa\u56e0\uff0c\u53e6\u6709\u56db\u5341\u4e2a\u7070\u8272\u672a\u5206\u914d\u57fa\u56e0\u3002\u9884\u5148\u58f0\u660e\u7684\u4e8c\u5341\u4e8c\u4e2a\u5e72\u6270\u7d20\u6807\u8bb0\u90fd\u5728\u4e5d\u5341\u56db\u57fa\u56e0\u7684\u84dd\u8272\u6a21\u5757\u4e2d\u3002\u989c\u8272\u53ea\u662f\u8fd9\u6b21\u8fd0\u884c\u7ed9\u6a21\u5757\u5206\u914d\u7684\u540d\u5b57\u3002\u6362\u4e00\u6279\u7ec6\u80de\u540e\uff0c\u5373\u4f7f\u540c\u4e00\u7ec4\u57fa\u56e0\u518d\u6b21\u805a\u5728\u4e00\u8d77\uff0c\u989c\u8272\u4e5f\u53ef\u80fd\u53d8\u5316\uff0c\u5e94\u8be5\u4ee5\u5171\u4eab\u57fa\u56e0\u548c\u6210\u5458\u8986\u76d6\u6765\u8ba4\u540c\u4e00\u6a21\u5757\u3002\u6311\u9009\u8fd9\u4e2a\u6a21\u5757\u4f7f\u7528\u7684\u662f\u9884\u8bbe\u6807\u8bb0\u547d\u4e2d\u6570\uff0c\u6240\u4ee5\u4e0b\u4e00\u6b65\u5728\u540c\u4e00\u9762\u677f\u770b\u5230\u8fd9\u4e9b\u6807\u8bb0\u5bcc\u96c6\uff0c\u53ea\u80fd\u7528\u6765\u8bf4\u660e\u6211\u4eec\u5728\u63cf\u8ff0\u54ea\u4e2a\u6a21\u5757\uff1b\u82e5\u8981\u58f0\u79f0\u53d1\u73b0\u65b0\u7684\u523a\u6fc0\u54cd\u5e94\u7a0b\u5e8f\uff0c\u8fd8\u9700\u8981\u72ec\u7acb\u7684\u6837\u672c\u6216\u53e6\u5916\u51bb\u7ed3\u7684\u57fa\u56e0\u6e05\u5355\u3002<\/p>\n<h2>\u628a\u6a21\u5757\u5206\u522b\u8fd8\u7ed9\u516b\u4f4d\u4f9b\u8005<\/h2>\n<p>\u4e3a\u4fbf\u4e8e\u8bfb\u8005\u624b\u7b97\uff0c\u6211\u4eec\u5c06\u6bcf\u4e2a\u805a\u5408\u4e2d\u7684\u4e5d\u5341\u56db\u4e2a\u5f52\u4e00\u5316\u5bf9\u6570\u8868\u8fbe\u53d6\u7b97\u672f\u5e73\u5747\uff0c\u660e\u786e\u5b9a\u4e49\u4e3a\u6a21\u5757\u5747\u5206\u3002\u8fd9\u91cc\u6ca1\u6709\u5c06\u7b2c\u4e00\u4e3b\u6210\u5206\u7684\u6a21\u5757\u7279\u5f81\u5411\u91cf\u6216\u8de8\u4f9b\u8005\u6821\u6b63\u540e\u7684\u5206\u6570\u5192\u5145\u4e3a\u7b97\u672f\u5e73\u5747\u3002\u518d\u5728\u6bcf\u4f4d\u4f9b\u8005\u7684\u540c\u4e00\u6761\u4ef6\u4e0b\u53d6\u805a\u5408\u5206\u6570\u7684\u4e2d\u4f4d\u6570\uff0c\u914d\u5bf9\u76f8\u51cf\u3002\u516b\u4f4d\u4f9b\u8005\u5747\u4e3a\u523a\u6fc0\u540e\u5347\u9ad8\u3002\u4f8b\u5982\u7f16\u53f7\u4e00\u96f6\u4e00\u7684\u4f9b\u8005\u4ece\u7ea6\u4e00\u70b9\u4e09\u4e5d\u5347\u5230\u4e8c\u70b9\u56db\u4e09\uff0c\u4e00\u96f6\u4e00\u516d\u4ece\u7ea6\u4e00\u70b9\u516d\u4e8c\u5347\u5230\u4e8c\u70b9\u56db\u516d\u3002\u9009\u4e00\u4f4d\u4f9b\u8005\u3001\u9009\u4e00\u4e2a\u805a\u5408\uff0c\u4ece\u5bfc\u51fa\u7684\u8868\u8fbe\u8868\u6309\u6a21\u5757\u57fa\u56e0\u5217\u8868\u624b\u52a8\u53d6\u5747\u503c\uff0c\u5c31\u80fd\u6838\u5bf9\u6574\u5f20\u56fe\u90fd\u5728\u753b\u4ec0\u4e48\u3002<\/p>\n<p>\u7136\u540e\u628a\u540c\u4e00\u5206\u6570\u5bf9\u4e0a\u5341\u4e8c\u9897\u7ec6\u80de\u539f\u59cb\u6587\u5e93\u6df1\u5ea6\u4e4b\u548c\u3002\u5168\u90e8\u805a\u5408\u4e2d\uff0c\u4e24\u8005\u7684\u79e9\u76f8\u5173\u7ea6\u96f6\u70b9\u56db\u4e00\uff0c\u5355\u770b\u5bf9\u7167\u7ea6\u96f6\u70b9\u4e94\u4e94\uff0c\u5355\u770b\u523a\u6fc0\u7ea6\u96f6\u70b9\u4e03\u4e00\u3002\u5206\u7ec4\u540e\u4ecd\u76f8\u5173\uff0c\u63d0\u793a\u57fa\u56e0\u68c0\u51fa\u3001\u7ec6\u80de\u5927\u5c0f\u6216\u5176\u4ed6\u4e0e\u6df1\u5ea6\u4e00\u8d77\u53d8\u5316\u7684\u56e0\u7d20\u4ecd\u53ef\u80fd\u5f71\u54cd\u5747\u5206\uff1b\u5149\u6709\u5f52\u4e00\u5316\u8fd9\u4e00\u6b65\u4e0d\u80fd\u8bc1\u660e\u8fd9\u4e9b\u5f71\u54cd\u5df2\u7ecf\u6e05\u9664\u3002\u8bfb\u8005\u53ef\u4ee5\u6309\u4f9b\u8005\u753b\u6563\u70b9\uff0c\u5728\u76f8\u8fd1\u6df1\u5ea6\u8303\u56f4\u5185\u91cd\u590d\u6bd4\u8f83\uff0c\u6216\u91cd\u65b0\u5206\u5c42\u62bd\u6837\uff0c\u518d\u770b\u914d\u5bf9\u7ed3\u679c\u662f\u5426\u4e00\u81f4\u3002\u8fd9\u9879\u68c0\u67e5\u4e5f\u63d0\u9192\u6211\u4eec\uff0c\u867d\u7136\u6709\u4e00\u767e\u56db\u5341\u516b\u4e2a\u805a\u5408\uff0c\u53ef\u7528\u4e8e\u8bc4\u4f30\u8de8\u4eba\u4e00\u81f4\u6027\u7684\u4ecd\u6765\u81ea\u516b\u4f4d\u4f9b\u8005\u3002<\/p>\n<pre style=\"max-width:100%;overflow:auto;padding:14px;box-sizing:border-box;background:#f1f6fa;line-height:1.6;font-size:0.9em\"><code class=\"language-sh\">python -m pip install -r requirements.txt\npython run.py --input example --out results\nRscript fit_hdwgcna.R example rebuilt-fit\n<\/code><\/pre>\n<p>\u5982\u679c\u4f60\u51c6\u5907\u628a\u8fd9\u6bb5\u7ed3\u679c\u4ea4\u7ed9\u5408\u4f5c\u8005\uff0c\u53ef\u4ee5\u7ed9\u5bf9\u65b9\u4e09\u4efd\u5c0f\u8868\uff1a\u5e26\u539f\u59cb\u6761\u7801\u7684\u6210\u5458\u8868\u3001\u5e26\u660e\u786e\u57fa\u56e0\u540d\u5b57\u7684\u6a21\u5757\u8868\uff0c\u4ee5\u53ca\u4f9b\u8005\u5404\u81ea\u7684\u6761\u4ef6\u5dee\u4e0e\u6df1\u5ea6\u3002\u5408\u4f5c\u8005\u53ef\u4ee5\u5148\u5224\u65ad\u6784\u6210\u548c\u8986\u76d6\uff0c\u518d\u51b3\u5b9a\u662f\u5426\u503c\u5f97\u6269\u5230\u5b8c\u6574\u80cc\u666f\uff0c\u6216\u5bf9\u67d0\u4e2a\u53ef\u80fd\u53d7\u6df1\u5ea6\u5f71\u54cd\u7684\u57fa\u56e0\u505a\u72ec\u7acb\u9a8c\u8bc1\u3002\u968f\u5305\u5c0f\u9762\u677f\u53ef\u4ee5\u5728\u672c\u673a\u91cd\u7b97\uff1b\u9700\u8981\u5bf9\u6574\u6279\u7ec6\u80de\u6bd4\u8f83\u591a\u4e2a\u8f6f\u9608\u503c\u3001\u4fdd\u5b58\u5927\u578b\u62d3\u6251\u91cd\u53e0\u77e9\u9635\u65f6\uff0c\u53ef\u4ee5\u628a\u56fa\u5b9a\u7684\u9009\u6837\u8868\u548c\u805a\u5408\u89c4\u5219\u5e26\u5230<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/compute-services\/\">\u4e91\u751f\u4fe1\u79d1\u7814\u670d\u52a1\u5668\u79df\u8d41<\/a>\u4e0a\u91cd\u5efa\u5404\u7248\u7f51\u7edc\uff0c\u518d\u7528\u540c\u4e00\u4efd\u57fa\u56e0\u6e05\u5355\u9010\u4e00\u6bd4\u5bf9\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u628a\u516b\u4f4d\u4f9b\u8005\u7684\u771f\u5b9e\u5355\u6838\u7ec6\u80de\u5728\u4f9b\u8005\u548c\u523a\u6fc0\u6761\u4ef6\u5185\u805a\u5408\uff0c\u7528 hdWGCNA \u627e\u5230\u5b9e\u9645\u5171\u8868\u8fbe\u6a21\u5757\uff0c\u968f\u540e\u56de\u5230\u539f\u6761\u7801\u6838\u67e5\u6210\u5458\u590d\u7528\u3001\u4f9b\u8005\u53d8\u5316\u53ca\u6d4b\u5e8f\u6df1\u5ea6\u3002<\/p>\n","protected":false},"author":1,"featured_media":72138,"comment_status":"closed","ping_status":"","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":[71],"tags":[],"class_list":["post-72141","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","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-sc-practice-070-hdwgcna-metacell-donors.png?fit=1240%2C800&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72141","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=72141"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72141\/revisions"}],"predecessor-version":[{"id":73709,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72141\/revisions\/73709"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/72138"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=72141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=72141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=72141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}