{"id":68761,"date":"2026-12-05T09:10:34","date_gmt":"2026-12-05T01:10:34","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=68761"},"modified":"2026-12-05T09:10:34","modified_gmt":"2026-12-05T01:10:34","slug":"r-guide-coloc-practice","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/r-guide-coloc-practice\/","title":{"rendered":"coloc.susie \u6bd4\u8f83\u7684\u662f\u54ea\u4e00\u5bf9\u4fe1\u53f7\uff1f\u600e\u6837\u8bfb\u591a\u4fe1\u53f7\u5171\u5b9a\u4f4d\u7ed3\u679c\uff1f"},"content":{"rendered":"<div class=\"ysx-r-practice\" id=\"ysx-r-coloc\" style=\"max-width:820px;margin:0 auto;color:#203449;font-size:17px;line-height:1.88;overflow-wrap:break-word;\">\n<p style=\"margin:.5em 0 1em\">\u4e00\u4e2a\u6027\u72b6\u5728\u533a\u57df\u5185\u6709\u4e24\u4e2a\u4fe1\u53f7\uff0c\u53e6\u4e00\u4e2a\u6709\u4e09\u4e2a\uff0c\u6bd4\u8f83\u5bf9\u8c61\u5c31\u4e0d\u518d\u662f\u6574\u4e2a\u533a\u57df\u7684\u4e00\u884c\u540e\u9a8c\u3002\u5148\u786e\u8ba4\u5404\u81ea\u7684\u4fe1\u53f7\u4e0e LD\uff0c\u518d\u9010\u5bf9\u9605\u8bfb\u5171\u4eab\u548c\u4e0d\u540c\u4fe1\u53f7\u7684\u8bc1\u636e\uff0c\u80fd\u907f\u514d\u7528\u4e00\u9879\u5f3a\u5339\u914d\u6982\u62ec\u6574\u4e2a\u57fa\u56e0\u5ea7\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">coloc \u7684\u8f93\u5165\u548c\u5206\u6790\u5bf9\u8c61<\/h2>\n<p style=\"margin:.5em 0 1em\">d1\u3001d2 \u662f\u7b26\u5408 coloc \u8981\u6c42\u7684\u6027\u72b6\u6570\u636e\u5217\u8868\uff0c\u5404\u542b\u5339\u914d\u53d8\u5f02\u6807\u8bc6\u3001\u6709\u7b26\u53f7 LD\u3001\u533a\u95f4\u7edf\u8ba1\u91cf\u3001\u6837\u672c\u91cf\u53ca\u9002\u5408\u6027\u72b6\u7684\u989d\u5916\u5b57\u6bb5\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u6027\u72b6\u95f4\u5171\u5b9a\u4f4d\u5206\u6790\u7684\u6838\u5fc3\u5728\u4e8e\u8bc6\u522b\u4e24\u4e2a\u7279\u5f81\u5728\u9057\u4f20\u533a\u57df\u4e2d\u662f\u5426\u5171\u4eab\u540c\u4e00\u56e0\u679c\u53d8\u5f02\uff0c\u5c24\u5176\u5728\u591a\u4e2a\u4fe1\u53f7\u5b58\u5728\u65f6\uff0c\u9700\u8981\u660e\u786e\u6bd4\u8f83\u7684\u662f\u54ea\u4e00\u5bf9\u4fe1\u53f7\u3002\u5728\u5b9e\u9645\u64cd\u4f5c\u4e2d\uff0c\u4e24\u4e2a\u6027\u72b6\u9700\u5206\u522b\u6784\u5efa\u4e00\u81f4\u7684\u53d8\u5f02\u96c6\u548c\u5bf9\u5e94\u7684LD\u77e9\u9635\uff0c\u518d\u7528<code>runsusie()<\/code>\u5206\u522b\u62df\u5408\u6bcf\u4e2a\u6027\u72b6\u7684\u4fe1\u53f7\u3002\u8fd9\u4e9b\u62df\u5408\u7ed3\u679c\u4f5c\u4e3a\u8f93\u5165\u4f20\u5165<code>coloc.susie()<\/code>\u51fd\u6570\uff0c\u5b8c\u6210\u4fe1\u53f7\u5bf9\u7684\u6bd4\u8f83\u3002\u8fd9\u79cd\u8bbe\u8ba1\u4f7f\u5f97\u5206\u6790\u7ed3\u679c\u66f4\u8d34\u8fd1\u5b9e\u9645\u56e0\u679c\u63a8\u65ad\u7684\u9700\u6c42\uff0c\u800c\u975e\u7b80\u5355\u7edf\u8ba1\u76f8\u5173\u6027\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u8f93\u5165\u6570\u636e\u5fc5\u987b\u5305\u62ec\u6bcf\u4e2a\u6027\u72b6\u7684\u53d8\u5f02\u6807\u8bc6\u3001\u6548\u5e94\u65b9\u5411\u3001\u6837\u672c\u91cf\u53caLD\u4fe1\u606f\uff0c\u8fd9\u4e9b\u6570\u636e\u9700\u6ee1\u8db3<code>coloc<\/code>\u51fd\u6570\u7684\u683c\u5f0f\u8981\u6c42\u3002\u6bcf\u4e2a\u6027\u72b6\u7684\u6570\u636e\u5217\u8868\u5e94\u5305\u542bLD\u77e9\u9635\u3001\u533a\u95f4\u7edf\u8ba1\u91cf\u3001\u6837\u672c\u91cf\u7b49\u5b57\u6bb5\uff0c\u4ee5\u652f\u6301\u540e\u7eed\u5206\u6790\u3002<code>runsusie()<\/code>\u51fd\u6570\u6839\u636e\u8fd9\u4e9b\u8f93\u5165\u6570\u636e\u62df\u5408\u6bcf\u4e2a\u6027\u72b6\u7684\u4fe1\u53f7\uff0c\u8f93\u51fa\u7ed3\u679c\u5305\u62ec\u6bcf\u4e2a\u4fe1\u53f7\u7684\u540e\u9a8c\u6982\u7387\u3001\u7f6e\u4fe1\u533a\u95f4\u7b49\u4fe1\u606f\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5f53\u4fe1\u53f7\u5bf9\u7684\u6bd4\u8f83\u51fa\u73b0\u5f02\u5e38\u65f6\uff0c\u9996\u5148\u5e94\u68c0\u67e5\u6570\u636e\u8f93\u5165\u662f\u5426\u4e00\u81f4\uff0c\u5305\u62ec\u53d8\u5f02ID\u3001\u6548\u5e94\u65b9\u5411\u548cLD\u77e9\u9635\u3002\u82e5\u53d1\u73b0\u4fe1\u53f7\u5bf9\u7684\u540e\u9a8c\u6982\u7387\u5f02\u5e38\uff0c\u5e94\u68c0\u67e5\u662f\u5426\u56e0\u4fe1\u53f7\u5339\u914d\u9519\u8bef\u5bfc\u81f4\u3002\u4f8b\u5982\uff0c\u82e5\u67d0\u4e2a\u6027\u72b6\u7684\u4fe1\u53f7\u672a\u6b63\u786e\u5339\u914d\uff0c\u53ef\u80fd\u5bfc\u81f4\u540e\u9a8c\u6982\u7387\u504f\u9ad8\u6216\u504f\u4f4e\u3002\u6b64\u65f6\u5e94\u91cd\u65b0\u6838\u5bf9LD\u77e9\u9635\u548c\u6548\u5e94\u65b9\u5411\uff0c\u786e\u8ba4\u4fe1\u53f7\u662f\u5426\u771f\u6b63\u5bf9\u5e94\u3002\u82e5\u95ee\u9898\u6301\u7eed\u5b58\u5728\uff0c\u5e94\u68c0\u67e5<code>runsusie()<\/code>\u7684\u62df\u5408\u8fc7\u7a0b\uff0c\u786e\u8ba4\u662f\u5426\u56e0\u53c2\u6570\u8bbe\u7f6e\u4e0d\u5f53\u5bfc\u81f4\u4fe1\u53f7\u4f30\u8ba1\u504f\u5dee\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u4e3a\u4e24\u9879\u6027\u72b6\u51c6\u5907\u4e00\u81f4\u53d8\u5f02\u53ca\u5404\u81ea\u5339\u914d\u7684 LD\uff0c\u5206\u522b\u7528 <code>runsusie()<\/code> \u62df\u5408\uff0c\u518d\u5c06\u7ed3\u679c\u4f20\u7ed9 <code>coloc.susie()<\/code> \u6bd4\u8f83\u4fe1\u53f7\u5bf9\u3002 <a href=\"https:\/\/cran.r-project.org\/web\/packages\/coloc\/refman\/coloc.html#coloc.susie\" style=\"color:#185CB7;text-decoration:underline;\">coloc CRAN \u51fd\u6570\u624b\u518c<\/a><\/p>\n<pre style=\"white-space:pre;overflow:auto;max-width:100%;padding:14px;background:#F0F7FF;border:1px solid #D1E7FF;border-radius:8px;color:#183551;font-size:14px;line-height:1.6;box-sizing:border-box;\"><code class=\"language-r\" style=\"font-family:Consolas,monospace;white-space:pre;overflow-wrap:normal;word-break:normal;\">s1 &lt;- coloc::runsusie(d1)\ns2 &lt;- coloc::runsusie(d2)\nco &lt;- coloc::coloc.susie(s1,s2)\nco$summary\n<\/code><\/pre>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u4e24\u4e2a\u533a\u57df\u6709\u51e0\u7ec4\u5019\u9009\u4fe1\u53f7\u5bf9<\/h2>\n<p style=\"margin:.5em 0 1em\">\u82e5\u7532\u6709\u4e24\u4e2a\u53ef\u5206\u8fa8\u4fe1\u53f7\u3001\u4e59\u6709\u4e09\u4e2a\uff0c\u7406\u8bba\u4e0a\u6709\u516d\u4e2a\u4fe1\u53f7\u914d\u5bf9\u3002\u6bcf\u884c\u540e\u9a8c\u89e3\u91ca\u7684\u662f\u76f8\u5e94\u4fe1\u53f7\u5bf9\u3002\u4e00\u4e2a\u5f3a\u5339\u914d\u4e0d\u80fd\u66ff\u4ee3\u5176\u4f59\u5404\u884c\uff0c\u533a\u57df\u5171\u4eab\u4fe1\u53f7\u4e5f\u4e0d\u7b49\u4e8e\u786e\u5b9a\u67d0\u57fa\u56e0\u4ecb\u5bfc\u53e6\u4e00\u6027\u72b6\u3002<\/p>\n<pre style=\"white-space:pre;overflow:auto;max-width:100%;padding:14px;background:#F0F7FF;border:1px solid #D1E7FF;border-radius:8px;color:#183551;font-size:14px;line-height:1.6;box-sizing:border-box;\"><code class=\"language-r\" style=\"font-family:Consolas,monospace;white-space:pre;overflow-wrap:normal;word-break:normal;\">v &lt;- c(2,3,2*3)\nnames(v) &lt;- c(\"\u6027\u72b6\u7532\u4fe1\u53f7\", \"\u6027\u72b6\u4e59\u4fe1\u53f7\", \"\u6210\u5bf9\u6bd4\u8f83\")\nprint(v)\n<\/code><\/pre>\n<table style=\"width:100%;border-collapse:collapse;margin:1em 0;font-size:15px\">\n<thead>\n<tr>\n<th style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#ECF6FF;\">\u8f93\u5165\u6216\u6bd4\u8f83\u9879<\/th>\n<th style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#ECF6FF;\">R \u8ba1\u7b97\u7ed3\u679c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">\u6027\u72b6\u7532\u4fe1\u53f7<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">2<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">\u6027\u72b6\u4e59\u4fe1\u53f7<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">3<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">\u6210\u5bf9\u6bd4\u8f83<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<figure style=\"margin:1.5em 0;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/r-guide-coloc-practice-1a321ed9.png?resize=1120%2C690&#038;ssl=1\" alt=\"\u4e24\u4e2a\u533a\u57df\u6709\u51e0\u7ec4\u5019\u9009\u4fe1\u53f7\u5bf9\u3002\u6027\u72b6\u7532\u4fe1\u53f7 2\uff0c\u6027\u72b6\u4e59\u4fe1\u53f7 3\uff0c\u6210\u5bf9\u6bd4\u8f83 6\u3002\" width=\"1120\" height=\"690\" style=\"max-width:100%;width:100%;height:auto;display:block\"><figcaption style=\"font-size:14px;color:#455970;line-height:1.6;\">\u6559\u5b66\u7b97\u4f8b\uff0c\u6570\u636e\u4e0e\u8ba1\u7b97\u5f0f\u89c1\u56fe\u4e0a\u65b9\u3002<\/figcaption><\/figure>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u4e24\u4e2a\u6027\u72b6\u7684 SNP \u6570\u76f8\u540c\uff0c\u5171\u4eab\u96c6\u5408\u4e5f\u76f8\u540c\u5417\uff1f<\/h2>\n<p style=\"margin:.5em 0 1em\">\u4e24\u4fa7\u5404\u6709\u56db\u4e2a\u4f4d\u70b9\uff0c\u4ea4\u96c6\u53ea\u6709\u4e09\u4e2a\u3002\u82e5\u88ab\u6392\u9664\u7684\u4f4d\u70b9\u6070\u597d\u662f\u67d0\u4e2a\u53ef\u4fe1\u96c6\u7684\u4e3b\u8981\u6210\u5458\uff0c\u540e\u9a8c\u6bd4\u8f83\u7684\u53ef\u8fa8\u8bc6\u6027\u4f1a\u4e0b\u964d\u3002\u8bb0\u5f55\u5404\u4fe1\u53f7\u5728\u4ea4\u96c6\u4e0a\u7684\u8986\u76d6\uff0c\u6bd4\u53ea\u62a5\u544a\u4e24\u4e2a\u6c47\u603b\u6587\u4ef6\u884c\u6570\u66f4\u80fd\u8bf4\u660e\u5206\u6790\u6761\u4ef6\u3002<\/p>\n<pre style=\"white-space:pre;overflow:auto;max-width:100%;padding:14px;background:#F0F7FF;border:1px solid #D1E7FF;border-radius:8px;color:#183551;font-size:14px;line-height:1.6;box-sizing:border-box;\"><code class=\"language-r\" style=\"font-family:Consolas,monospace;white-space:pre;overflow-wrap:normal;word-break:normal;\">s1 &lt;- c(\"v1\",\"v2\",\"v3\",\"v4\")\ns2 &lt;- c(\"v2\",\"v3\",\"v4\",\"v5\")\nlist(common=intersect(s1,s2),only1=setdiff(s1,s2),only2=setdiff(s2,s1))\n<\/code><\/pre>\n<p style=\"margin:.5em 0 1em\">\u5728\u5b9e\u9645\u5206\u6790\u4e2d\uff0c<code>coloc.susie()<\/code>\u7684\u8f93\u51fa\u7ed3\u679c\u9700\u4ed4\u7ec6\u89e3\u8bfb\uff0c\u7279\u522b\u662f<code>summary<\/code>\u90e8\u5206\u3002\u8be5\u90e8\u5206\u5305\u542b\u6bcf\u5bf9\u4fe1\u53f7\u7684\u540e\u9a8c\u6982\u7387\uff0c\u7528\u4e8e\u5224\u65ad\u662f\u5426\u5171\u4eab\u56e0\u679c\u53d8\u5f02\u3002\u82e5\u67d0\u5bf9\u4fe1\u53f7\u540e\u9a8c\u6982\u7387\u663e\u8457\u9ad8\u4e8e\u5176\u4ed6\u5bf9\uff0c\u5e94\u8fdb\u4e00\u6b65\u5206\u6790\u5176\u7f6e\u4fe1\u5ea6\u548c\u6548\u5e94\u65b9\u5411\u662f\u5426\u4e00\u81f4\u3002\u82e5\u591a\u4e2a\u4fe1\u53f7\u5bf9\u540e\u9a8c\u6982\u7387\u76f8\u8fd1\uff0c\u5219\u9700\u8003\u8651\u662f\u5426\u5b58\u5728\u591a\u4e2a\u56e0\u679c\u53d8\u5f02\u540c\u65f6\u5f71\u54cd\u4e24\u4e2a\u6027\u72b6\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u4fe1\u53f7\u5bf9\u7684\u6bd4\u8f83\u4e2d\uff0c\u82e5\u51fa\u73b0\u4fe1\u53f7\u5339\u914d\u9519\u8bef\uff0c\u5e94\u9996\u5148\u6838\u5bf9\u6bcf\u4e2a\u6027\u72b6\u7684\u53d8\u5f02ID\u662f\u5426\u4e00\u81f4\uff0c\u518d\u786e\u8ba4LD\u77e9\u9635\u662f\u5426\u6b63\u786e\u3002\u82e5\u95ee\u9898\u6301\u7eed\u5b58\u5728\uff0c\u5e94\u8c03\u6574<code>runsusie()<\/code>\u7684\u53c2\u6570\uff0c\u4f8b\u5982\u589e\u52a0\u6700\u5927\u8fed\u4ee3\u6b21\u6570\u6216\u8bbe\u7f6e\u91cd\u590d\u6536\u655b\u3002\u6b64\u5916\uff0c\u8fd8\u5e94\u68c0\u67e5\u5148\u9a8c\u53c2\u6570\u662f\u5426\u5408\u7406\uff0c\u4f8b\u5982<code>prior_variance<\/code>\u7684\u8bbe\u5b9a\u662f\u5426\u7b26\u5408\u6027\u72b6\u7c7b\u578b\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5171\u5b9a\u4f4d\u5206\u6790\u4e2d\uff0c\u82e5\u7ed3\u679c\u51fa\u73b0\u4e0d\u4e00\u81f4\u6216\u5f02\u5e38\uff0c\u5e94\u4ece\u6570\u636e\u8f93\u5165\u5f00\u59cb\u9010\u5c42\u6392\u67e5\u3002\u9996\u5148\u786e\u8ba4\u6bcf\u4e2a\u6027\u72b6\u7684\u6570\u636e\u662f\u5426\u7b26\u5408<code>coloc<\/code>\u8981\u6c42\uff0c\u5305\u62ecLD\u77e9\u9635\u3001\u6548\u5e94\u65b9\u5411\u548c\u6837\u672c\u91cf\u7b49\u5b57\u6bb5\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u5171\u5b9a\u4f4d\u5206\u6790\u4e2d\uff0c\u82e5\u4e24\u4e2a\u6027\u72b6\u7684\u4fe1\u53f7\u5339\u914d\u51fa\u73b0\u504f\u5dee\uff0c\u4f1a\u5bfc\u81f4\u9519\u8bef\u7684\u540e\u9a8c\u6982\u7387\u4f30\u8ba1\u3002\u4f8b\u5982\uff0c\u82e5\u6027\u72b6\u7532\u7684\u4fe1\u53f7\u4e0e\u6027\u72b6\u4e59\u7684\u4fe1\u53f7\u5728\u53d8\u5f02ID\u4e0a\u4e0d\u4e00\u81f4\uff0c\u5c3d\u7ba1\u5176\u5728LD\u7ed3\u6784\u4e0a\u63a5\u8fd1\uff0c\u4ecd\u53ef\u80fd\u88ab\u9519\u8bef\u5730\u914d\u5bf9\u3002\u8fd9\u79cd\u9519\u8bef\u914d\u5bf9\u4f1a\u4f7f\u5f97\u540e\u9a8c\u6982\u7387\u504f\u9ad8\uff0c\u4ece\u800c\u8bef\u5bfc\u7814\u7a76\u8005\u8ba4\u4e3a\u5b58\u5728\u5f3a\u5171\u5b9a\u4f4d\u5173\u7cfb\u3002\u56e0\u6b64\uff0c\u5fc5\u987b\u5728\u5206\u6790\u524d\u6838\u5bf9\u6bcf\u4e2a\u6027\u72b6\u7684\u53d8\u5f02\u6807\u8bc6\uff0c\u786e\u4fdd\u5176\u5728\u4e24\u4e2a\u6027\u72b6\u4e2d\u5177\u6709\u4e00\u81f4\u6027\u3002\u8fd9\u79cd\u6838\u67e5\u6b65\u9aa4\u662f\u907f\u514d\u8bef\u5224\u7684\u7b2c\u4e00\u9053\u9632\u7ebf\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u7528 coloc \u68c0\u67e5\u4e24\u4e2a\u6027\u72b6\u7684\u533a\u57df\u540e\u9a8c\u8f93\u51fa<\/h2>\n<pre style=\"white-space:pre;overflow:auto;max-width:100%;padding:14px;background:#F0F7FF;border:1px solid #D1E7FF;border-radius:8px;color:#183551;font-size:14px;line-height:1.6;box-sizing:border-box;\"><code class=\"language-r\" style=\"font-family:Consolas,monospace;white-space:pre;overflow-wrap:normal;word-break:normal;\">set.seed(22)\nsn&lt;-paste0(\"s\",1:30)\nbb&lt;-c(.45,rep(0,29))\nD&lt;-list(snp=sn,beta=bb,varbeta=rep(.01,30),type=\"quant\",sdY=1,N=200,position=1:30)\nz&lt;-coloc::coloc.abf(D,D)$summary\nc(length(sn),sum(z[grep(\"^PP\",names(z))]),unname(z[\"PP.H4.abf\"]))\n<\/code><\/pre>\n<p style=\"margin:.5em 0 1em\">\u5728 R 4.5.2\u3001coloc 5.2.3 \u4e2d\u8fd0\u884c\uff0c\u8f93\u51fa\u4f9d\u6b21\u4e3a\u5019\u9009 SNP 30\uff0c\u4e94\u9879\u5047\u8bbe\u540e\u9a8c\u548c 1\uff0c\u5171\u4eab\u540e\u9a8c 0.77\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u9047\u5230\u5f02\u5e38\uff0c\u5148\u6838\u5bf9\u54ea\u4e00\u9879<\/h2>\n<p style=\"margin:.5em 0 1em\">\u4e24\u4e2a\u6027\u72b6\u90fd\u8981\u6709\u8db3\u591f\u533a\u57df\u8986\u76d6\u548c\u53ef\u4fe1\u4fe1\u53f7\uff0c\u6838\u5bf9\u53d8\u5f02 ID\u3001\u6548\u5e94\u65b9\u5411\u4e0e\u5148\u9a8c\u654f\u611f\u6027\uff0c\u518d\u89e3\u91ca\u5171\u4eab\u4fe1\u53f7\u7684\u540e\u9a8c\u6982\u7387\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u8fd9\u79cd\u8bbe\u5b9a\u5dee\u5f02\u53ef\u80fd\u4f7f\u67d0\u4e9b\u4fe1\u53f7\u5bf9\u7684\u540e\u9a8c\u6982\u7387\u5347\u9ad8\u6216\u964d\u4f4e\uff0c\u8fdb\u800c\u5f71\u54cd\u5171\u5b9a\u4f4d\u5224\u65ad\u3002\u56e0\u6b64\uff0c\u5728\u5206\u6790\u4e2d\u5e94\u5c1d\u8bd5\u4e0d\u540c\u7684\u53c2\u6570\u7ec4\u5408\uff0c\u89c2\u5bdf\u7ed3\u679c\u662f\u5426\u7a33\u5b9a\u3002\u901a\u8fc7\u5bf9\u6bd4\u4e0d\u540c\u53c2\u6570\u8bbe\u5b9a\u4e0b\u7684\u7ed3\u679c\uff0c\u53ef\u4ee5\u8bc4\u4f30\u5206\u6790\u6d41\u7a0b\u7684\u9c81\u68d2\u6027\uff0c\u907f\u514d\u56e0\u53c2\u6570\u8bbe\u5b9a\u4e0d\u5f53\u5bfc\u81f4\u7684\u7ed3\u8bba\u504f\u5dee\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u5b9e\u9645\u5206\u6790\u4e2d\uff0c\u82e5\u53d1\u73b0\u5171\u5b9a\u4f4d\u7ed3\u679c\u4e0e\u9884\u671f\u4e0d\u7b26\uff0c\u5e94\u9996\u5148\u9a8c\u8bc1\u662f\u5426\u56e0\u5148\u9a8c\u8bbe\u5b9a\u4e0d\u5f53\u5bfc\u81f4\u3002\u4f8b\u5982\uff0c\u82e5\u6027\u72b6\u4e3a\u5b9a\u91cf\u6027\u72b6\uff0c\u4f46\u4f7f\u7528\u4e86\u75c5\u4f8b\u5bf9\u7167\u7684\u5148\u9a8c\u8bbe\u5b9a\uff0c\u53ef\u80fd\u5bfc\u81f4\u4fe1\u53f7\u4f30\u8ba1\u504f\u79fb\u3002\u6b64\u65f6\u5e94\u91cd\u65b0\u8bbe\u5b9a\u5148\u9a8c\u53c2\u6570\uff0c\u518d\u8fdb\u884c\u5206\u6790\uff0c\u89c2\u5bdf\u7ed3\u679c\u662f\u5426\u53d1\u751f\u53d8\u5316\u3002\u82e5\u7ed3\u679c\u7a33\u5b9a\uff0c\u8bf4\u660e\u539f\u8bbe\u5b9a\u786e\u5b9e\u5b58\u5728\u504f\u5dee\u3002\u82e5\u7ed3\u679c\u4ecd\u4e0d\u4e00\u81f4\uff0c\u5e94\u8fdb\u4e00\u6b65\u68c0\u67e5\u6570\u636e\u8f93\u5165\u548c\u4fe1\u53f7\u5339\u914d\u8fc7\u7a0b\uff0c\u786e\u4fdd\u5206\u6790\u6d41\u7a0b\u65e0\u8bef\u3002\u8fd9\u79cd\u654f\u611f\u6027\u6d4b\u8bd5\u662f\u8bc4\u4f30\u5206\u6790\u8d28\u91cf\u7684\u91cd\u8981\u624b\u6bb5\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u6b64\u65f6\u5e94\u91cd\u65b0\u6bd4\u5bf9LD\u77e9\u9635\u548c\u6548\u5e94\u65b9\u5411\uff0c\u786e\u8ba4\u4fe1\u53f7\u662f\u5426\u771f\u6b63\u5339\u914d\u3002\u901a\u8fc7\u9010\u5c42\u9a8c\u8bc1\uff0c\u53ef\u786e\u4fdd\u5206\u6790\u7ed3\u679c\u7684\u7a33\u5065\u6027\uff0c\u9632\u6b62\u56e0\u5c40\u90e8\u8bef\u5dee\u5bfc\u81f4\u6574\u4f53\u5224\u65ad\u5931\u8bef\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u82e5\u53c2\u6570\u8bbe\u7f6e\u4e0d\u5f53\uff0c\u53ef\u80fd\u5bfc\u81f4\u4fe1\u53f7\u4f30\u8ba1\u4e0d\u51c6\u786e\uff0c\u8fdb\u800c\u5f71\u54cd\u5171\u5b9a\u4f4d\u7ed3\u679c\u3002\u901a\u8fc7\u8fd9\u79cd\u591a\u5c42\u7ea7\u9a8c\u8bc1\u673a\u5236\uff0c\u53ef\u4ee5\u6709\u6548\u964d\u4f4e\u8bef\u5224\u98ce\u9669\uff0c\u63d0\u5347\u5206\u6790\u7ed3\u8bba\u7684\u53ef\u4fe1\u5ea6\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u5e26\u56de\u539f\u59cb\u89c2\u6d4b\u518d\u68c0\u67e5\u4e00\u6b21<\/h2>\n<p style=\"margin:.5em 0 1em\">\u591a\u4fe1\u53f7\u533a\u57df\u5e94\u5148\u7ed9\u6027\u72b6\u4e00\u3001\u6027\u72b6\u4e8c\u7684\u6bcf\u4e2a\u5019\u9009\u5206\u522b\u7f16\u53f7\uff0c\u518d\u5efa\u7acb\u6210\u5bf9\u6bd4\u8f83\u8868\u3002\u4e00\u4e2a\u6027\u72b6\u4e2d\u8f83\u5f31\u7684\u7b2c\u4e8c\u4fe1\u53f7\u53ef\u80fd\u4e0e\u53e6\u4e00\u4e2a\u6027\u72b6\u7684\u7b2c\u4e00\u4fe1\u53f7\u76f8\u5bb9\uff0c\u5982\u679c\u53ea\u770b\u533a\u57df\u5404\u81ea\u7684\u5934\u53f7\u4f4d\u70b9\u4fbf\u4f1a\u9519\u8fc7\u8fd9\u4e00\u5bf9\u3002\u68c0\u67e5\u4e24\u4efd\u8f93\u5165\u7b5b\u9009\u540e\u7684\u5171\u540c\u53d8\u5f02\u4e0e\u7b49\u4f4d\u65b9\u5411\uff0c\u786e\u8ba4\u540e\u9a8c\u6458\u8981\u7a76\u7adf\u9488\u5bf9\u54ea\u4e00\u5bf9\u4fe1\u53f7\u3002\u5171\u4eab\u4fe1\u53f7\u7684\u8bc1\u636e\u4e5f\u4e0d\u76f4\u63a5\u8868\u793a\u5176\u4e2d\u4e00\u4e2a\u6027\u72b6\u5bfc\u81f4\u53e6\u4e00\u4e2a\u6027\u72b6\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u6311\u4e00\u4e2a\u6709\u8db3\u591f\u8986\u76d6\u3001\u6807\u8bc6\u660e\u786e\u7684\u4f4d\u7f6e\uff0c\u628a\u8be5\u4f4d\u7f6e\u7684\u4e24\u4e2a\u7b49\u4f4d\u3001\u4f7f\u7528\u7684\u53c2\u8003\u7248\u672c\u548c\u6837\u672c\u987a\u5e8f\u9010\u9879\u6838\u5bf9\u3002\u82e5\u8d44\u6599\u53ea\u6709\u6c47\u603b\u7edf\u8ba1\uff0c\u4e5f\u8981\u628a\u6548\u5e94\u65b9\u5411\u8ffd\u5230\u5177\u4f53\u7684\u7b49\u4f4d\u5b9a\u4e49\u3002\u4e00\u4e2a\u7b49\u4f4d\u540d\u79f0\u5199\u53cd\uff0c\u5e38\u4f1a\u7559\u4e0b\u770b\u4f3c\u5408\u7406\u7684\u7edd\u5bf9\u503c\uff0c\u5374\u628a\u65b9\u5411\u98a0\u5012\u3002\u5bf9\u6765\u81ea\u4e0d\u540c\u53c2\u8003\u9762\u677f\u7684\u8d44\u6599\uff0c\u9891\u7387\u76f8\u8fd1\u662f\u4e00\u79cd\u652f\u6301\uff0c\u9891\u7387\u4e0d\u76f8\u8fd1\u8fd8\u53ef\u80fd\u6d89\u53ca\u7956\u6e90\u3001\u6d4b\u5e8f\u8303\u56f4\u548c\u6837\u672c\u9009\u62e9\uff0c\u4e0d\u80fd\u5355\u51ed\u4e00\u5217\u9891\u7387\u81ea\u52a8\u7ffb\u8f6c\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u518d\u628a\u8be5\u4f4d\u70b9\u653e\u56de\u5468\u56f4\u7684\u8bc1\u636e\u4e2d\u3002\u82e5\u4f9d\u8d56\u90bb\u8fd1\u6807\u8bb0\u6216\u6210\u7247\u4fe1\u53f7\uff0c\u8bb0\u5f55\u90bb\u8fd1\u6807\u8bb0\u7684\u5bc6\u5ea6\u3001\u53ef\u7528\u89c2\u6d4b\u6570\u53ca\u79bb\u6700\u8fd1\u4e00\u4e2a\u6709\u6548\u4f4d\u7f6e\u591a\u8fdc\u3002\u82e5\u4f9d\u8d56\u4e2a\u4f53\u5c42\u91cd\u590d\u6216\u8868\u578b\u5173\u8054\uff0c\u5219\u6309\u4eba\u7edf\u8ba1\u5b9e\u9645\u53c2\u4e0e\u4f30\u8ba1\u7684\u6837\u672c\u6570\u3002\u8fd9\u6837\u80fd\u8bc6\u522b\u4e00\u79cd\u5f88\u5e38\u89c1\u7684\u843d\u5dee\uff0c\u6587\u4ef6\u6709\u8bb8\u591a\u884c\u6216\u6a21\u578b\u7ed9\u51fa\u5f88\u7a84\u7684\u5019\u9009\u5217\u8868\uff0c\u4f46\u652f\u6491\u8fd9\u4e2a\u5c40\u90e8\u7ed3\u8bba\u7684\u72ec\u7acb\u89c2\u6d4b\u5e76\u6ca1\u6709\u770b\u8d77\u6765\u90a3\u4e48\u591a\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u4e0b\u8f7d\u4ee3\u7801\u548c\u793a\u4f8b\u6570\u636e\uff0c\u5728 Linux \u4e0a\u590d\u73b0<\/h2>\n<p style=\"margin:.5em 0 1em\"><a style=\"color:#1458a5;text-decoration:underline;\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/r-practice-labs\/079-coloc-code-3990d9a1a43e4256.zip\">\u4e0b\u8f7d\u672c\u7bc7 R \u4ee3\u7801\uff08ZIP\uff0c4.4 KiB\uff09<\/a> \u00b7 <a style=\"color:#1458a5;text-decoration:underline;\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/r-practice-labs\/079-coloc-data-634e2f0902fb6101.zip\">\u4e0b\u8f7d\u914d\u5957\u793a\u4f8b\u6570\u636e\uff08ZIP\uff0c4.7 KiB\uff09<\/a><\/p>\n<p style=\"margin:.5em 0 1em\">\u5c06\u4e24\u4e2a ZIP \u89e3\u538b\u5230\u540c\u4e00\u4f4d\u7f6e\uff0c\u8fdb\u5165 <code style=\"background:#edf5fc;padding:.05em .25em;border-radius:3px;\">079-coloc<\/code> \u76ee\u5f55\uff0c\u8fd0\u884c <code style=\"background:#edf5fc;padding:.05em .25em;border-radius:3px;\">Rscript --vanilla run.R<\/code>\u3002\u6253\u5f00 <code style=\"background:#edf5fc;padding:.05em .25em;border-radius:3px;\">results\/metrics.tsv<\/code> \u67e5\u770b\u7ed3\u679c\uff0c\u4ee3\u7801\u5305\u4e2d\u7684 <code style=\"background:#edf5fc;padding:.05em .25em;border-radius:3px;\">expected\/metrics.tsv<\/code> \u53ef\u4f9b\u9010\u884c\u6838\u5bf9\u3002\u8981\u91cd\u505a\u6587\u4e2d\u7684\u4e24\u4e2a\u6570\u503c\u7ec3\u4e60\uff0c\u53ef\u7ee7\u7eed\u8fd0\u884c <code style=\"background:#edf5fc;padding:.05em .25em;border-radius:3px;\">Rscript --vanilla checks.R<\/code>\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u672c\u6b21\u4ece\u4e0b\u8f7d\u5305\u590d\u73b0\u7684\u6b65\u9aa4\u662f\u201c\u7528 coloc \u68c0\u67e5\u4e24\u4e2a\u6027\u72b6\u7684\u533a\u57df\u540e\u9a8c\u8f93\u51fa\u201d\u3002Linux x86_64\u3001R 4.5.2\u3001coloc 5.2.3 \u7684\u8f93\u51fa\u4e3a\u5019\u9009 SNP 30\uff0c\u4e94\u9879\u5047\u8bbe\u540e\u9a8c\u548c 1\uff0c\u5171\u4eab\u540e\u9a8c 0.77008256\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u793a\u4f8b\u628a\u540c\u4e00\u4efd\u5173\u8054\u6570\u636e\u540c\u65f6\u4f20\u7ed9\u4e24\u4e2a\u8f93\u5165\uff0c\u7528\u4e8e\u68c0\u67e5\u4e94\u79cd\u5047\u8bbe\u540e\u9a8c\u4e4b\u548c\u4ee5\u53ca H4 \u7684\u8bfb\u6cd5\u3002\u771f\u5b9e\u7814\u7a76\u8981\u4f7f\u7528\u5404\u81ea\u7684\u6837\u672c\u91cf\u3001\u6548\u5e94\u53ca\u65b9\u5dee\uff0c\u5e76\u8bb0\u5f55\u5171\u540c\u8986\u76d6\u7684\u4f4d\u70b9\uff0c\u518d\u89e3\u91ca\u5171\u4eab\u4fe1\u53f7\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u5b9e\u8dd1\u540e\u7684\u7ecf\u9a8c\u603b\u7ed3<\/h2>\n<p style=\"margin:.5em 0 1em\">\u5bf9\u540c\u4e00\u5957\u6a21\u62df\u6c47\u603b\u6570\u636e\u505a\u5355\u4fe1\u53f7\u5171\u5b9a\u4f4d\u65f6\uff0c\u4e94\u4e2a\u5047\u8bbe\u7684\u540e\u9a8c\u76f8\u52a0\u4e3a\u4e00\uff0c\u4f46\u5171\u4eab\u5047\u8bbe\u4ecd\u672a\u5fc5\u8fbe\u5230\u4e00\u3002\u8fd9\u6bb5\u5b9e\u8dd1\u7ed9\u591a\u4fe1\u53f7\u5206\u6790\u63d0\u4f9b\u4e00\u4e2a\u4f4e\u590d\u6742\u5ea6\u5bf9\u7167\u3002\u6b63\u5f0f coloc.susie \u7684\u6bcf\u4e00\u884c\u5bf9\u5e94\u4e0d\u540c\u7684\u4fe1\u53f7\u914d\u5bf9\uff0c\u9700\u8981\u4fdd\u7559\u4fe1\u53f7\u8eab\u4efd\u548c\u533a\u57df\u8986\u76d6\u3002<\/p>\n<p style=\"border-top:1px solid #DAE6F2;margin-top:2em;padding-top:1em;\">\u5f53\u6570\u636e\u4e0e\u4ee3\u7801\u5df2\u7ecf\u5728\u5c0f\u89c4\u6a21\u8f93\u5165\u4e0a\u5bf9\u9f50\uff0c\u540e\u9762\u9700\u8981\u6309\u540c\u4e00\u53e3\u5f84\u5206\u6790\u6574\u6279\u9879\u76ee\u65f6\uff0c\u53ef\u4ee5\u6309\u5b9e\u9645\u4efb\u52a1\u4f7f\u7528<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/compute-services\/\" style=\"color:#185CB7;text-decoration:underline;\" data-ysx-event=\"contact_click\">\u4e91\u751f\u4fe1\u751f\u7269\u4fe1\u606f\u5b66\u5206\u6790\u670d\u52a1\u5668<\/a>\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u82e5\u7532\u6709\u4e24\u4e2a\u53ef\u5206\u8fa8\u4fe1\u53f7\u3001\u4e59\u6709\u4e09\u4e2a\uff0c\u7406\u8bba\u4e0a\u6709\u516d\u4e2a\u4fe1\u53f7\u914d\u5bf9\u3002<\/p>\n","protected":false},"author":1,"featured_media":68760,"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":[47,1],"tags":[804,728,796],"class_list":["post-68761","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-r","category-part","tag-coloc","tag-r","tag-796"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/r-guide-coloc-practice-1a321ed9.png?fit=1120%2C690&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68761","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=68761"}],"version-history":[{"count":3,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68761\/revisions"}],"predecessor-version":[{"id":70874,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68761\/revisions\/70874"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/68760"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=68761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=68761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=68761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}