{"id":68751,"date":"2026-12-05T09:10:34","date_gmt":"2026-12-05T01:10:34","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=68751"},"modified":"2026-12-05T09:10:34","modified_gmt":"2026-12-05T01:10:34","slug":"r-guide-saige-practice","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/r-guide-saige-practice\/","title":{"rendered":"SAIGE \u4e24\u6b65 GWAS\uff0c\u600e\u6837\u786e\u8ba4\u6bcf\u6761\u67d3\u8272\u4f53\u786e\u5b9e\u7528\u4e86\u540c\u4e00\u8868\u578b\u7684\u6a21\u578b\uff1f"},"content":{"rendered":"<div class=\"ysx-r-practice\" id=\"ysx-r-saige\" 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\">\u540c\u4e00\u5343\u4f4d\u53d7\u8bd5\u8005\u53ef\u4ee5\u6709\u591a\u4e2a\u5b8c\u5168\u4e0d\u540c\u7684\u75c5\u4f8b\u5b9a\u4e49\u3002\u67d3\u8272\u4f53\u626b\u63cf\u8bfb\u5230\u4e00\u4efd\u5b58\u5728\u7684\u6a21\u578b\u6587\u4ef6\uff0c\u4e0d\u4ee3\u8868\u8be5\u6a21\u578b\u6765\u81ea\u6b63\u786e\u7684\u8868\u578b\u3002SAIGE \u4e24\u6b65\u4e4b\u95f4\u5e94\u4fdd\u7559\u6837\u672c\u3001\u7ed3\u5c40\u3001\u65b9\u5dee\u6bd4\u4e0e\u67d3\u8272\u4f53\u5904\u7406\u65b9\u5f0f\u7684\u5bf9\u5e94\u5173\u7cfb\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">SAIGE \u7684\u8f93\u5165\u548c\u5206\u6790\u5bf9\u8c61<\/h2>\n<p style=\"margin:.5em 0 1em\">\u4f7f\u7528\u5df2\u7ecf\u5b89\u88c5\u7684 SAIGE \u547d\u4ee4\u884c R \u811a\u672c\u3002\u5148\u4ee5 &#8211;help \u68c0\u67e5\u5f53\u524d\u7248\u672c\u7684\u53c2\u6570\u8868\uff0c\u518d\u51c6\u5907\u914d\u5957 modelFile\u3001varianceRatioFile \u548c\u6240\u6d4b\u67d3\u8272\u4f53\u7684\u7d22\u5f15\u5316\u8f93\u5165\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u7b2c\u4e8c\u6b65\u7684 <code>step2_SPAtests.R<\/code> \u811a\u672c\u8bfb\u53d6\u7b2c\u4e00\u6b65\u751f\u6210\u7684\u6a21\u578b\u6587\u4ef6\u548c\u65b9\u5dee\u6bd4\u6587\u4ef6\uff0c\u5e76\u6839\u636e\u67d3\u8272\u4f53\u5206\u522b\u8fdb\u884c\u5173\u8054\u68c0\u9a8c\u3002\u8be5\u811a\u672c\u4f1a\u8bfb\u53d6\u67d3\u8272\u4f53\u7d22\u5f15\u6587\u4ef6\uff0c\u4ee5\u786e\u5b9a\u6bcf\u4e2a\u67d3\u8272\u4f53\u7684\u57fa\u56e0\u578b\u6570\u636e\u8303\u56f4\u3002\u8bfb\u53d6\u65f6\u9700\u68c0\u67e5\u6837\u672c ID \u662f\u5426\u4e0e\u7b2c\u4e00\u6b65\u4e00\u81f4\uff0c\u8868\u578b\u7f16\u7801\u662f\u5426\u4e3a\u4e8c\u5206\u7c7b\uff0c\u4ee5\u53ca\u6548\u5e94\u7b49\u4f4d\u57fa\u56e0\u662f\u5426\u6b63\u786e\u3002\u6b64\u5916\uff0c\u8fd8\u9700\u786e\u8ba4 LOCO\uff08leave-one-chromosome-out\uff09\u8bbe\u7f6e\u662f\u5426\u4e0e\u7b2c\u4e00\u6b65\u4e00\u81f4\uff0c\u4ee5\u907f\u514d\u56e0\u6a21\u578b\u8bbe\u7f6e\u4e0d\u540c\u5bfc\u81f4\u7684\u504f\u5dee\u3002\u811a\u672c\u4f1a\u8f93\u51fa\u6bcf\u6761\u67d3\u8272\u4f53\u7684\u68c0\u9a8c\u7ed3\u679c\uff0c\u5305\u62ec\u6548\u5e94\u4f30\u8ba1\u503c\u3001\u6807\u51c6\u8bef\u548c p \u503c\u3002\u82e5\u53d1\u73b0\u67d0\u4e9b\u67d3\u8272\u4f53\u7684\u8f93\u51fa\u5f02\u5e38\uff0c\u5e94\u9996\u5148\u68c0\u67e5\u8f93\u5165\u6587\u4ef6\u662f\u5426\u5b8c\u6574\uff0c\u518d\u786e\u8ba4\u6a21\u578b\u548c\u65b9\u5dee\u6bd4\u6587\u4ef6\u662f\u5426\u5339\u914d\u3002\u8fd9\u4e9b\u6587\u4ef6\u7684\u8bfb\u53d6\u987a\u5e8f\u548c\u5185\u5bb9\u4e00\u81f4\u6027\uff0c\u76f4\u63a5\u5f71\u54cd\u6700\u7ec8\u5206\u6790\u7ed3\u679c\u7684\u51c6\u786e\u6027\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u4ee5\u4e00\u4e2a\u5305\u542b\u4e00\u5343\u4eba\u7684\u6837\u672c\u4e3a\u4f8b\uff0c\u5047\u8bbe\u8be5\u6837\u672c\u4e2d\u8868\u578b\u7532\u6709\u4e8c\u5341\u540d\u75c5\u4f8b\uff0c\u8868\u578b\u4e59\u6709\u516b\u5341\u540d\u75c5\u4f8b\u3002\u5c3d\u7ba1\u6837\u672c\u603b\u6570\u76f8\u540c\uff0c\u4f46\u4e24\u4e2a\u8868\u578b\u7684\u5206\u5e03\u4e0d\u540c\uff0c\u56e0\u6b64\u4e0d\u80fd\u590d\u7528\u5bf9\u65b9\u7684\u6a21\u578b\u548c\u65b9\u5dee\u6bd4\u6587\u4ef6\u3002\u82e5\u9519\u8bef\u5730\u4f7f\u7528\u4e86\u8868\u578b\u7532\u7684\u6a21\u578b\u6765\u5206\u6790\u8868\u578b\u4e59\uff0c\u5c06\u5bfc\u81f4\u4f30\u8ba1\u504f\u5dee\u3002\u5728\u5206\u6790\u4e2d\uff0c\u9700\u7279\u522b\u6ce8\u610f\u7a00\u6709\u53d8\u5f02\u7684\u7b49\u4f4d\u57fa\u56e0\u7f16\u7801\u548c\u643a\u5e26\u8005\u4fe1\u606f\u3002\u82e5\u67d0\u4e00\u8868\u578b\u7684\u75c5\u4f8b\u6570\u8f83\u5c11\uff0c\u5e94\u68c0\u67e5\u5176\u662f\u5426\u5728\u6a21\u578b\u4e2d\u88ab\u6b63\u786e\u8bc6\u522b\uff0c\u907f\u514d\u56e0\u5c0f\u8ba1\u6570\u7c7b\u522b\u672a\u88ab\u8bc6\u522b\u5bfc\u81f4\u7684\u9519\u8bef\u4f30\u8ba1\u3002\u901a\u8fc7\u5bf9\u6bd4\u4e0d\u540c\u8868\u578b\u7684\u6a21\u578b\u8f93\u51fa\uff0c\u53ef\u4ee5\u53d1\u73b0\u5176\u4f30\u8ba1\u503c\u548c\u6807\u51c6\u8bef\u7684\u5dee\u5f02\uff0c\u4ece\u800c\u5224\u65ad\u662f\u5426\u4f7f\u7528\u4e86\u9519\u8bef\u7684\u6a21\u578b\u3002\u8fd9\u79cd\u5dee\u5f02\u5728\u5b9e\u9645\u5206\u6790\u4e2d\u662f\u5224\u65ad\u6a21\u578b\u4e00\u81f4\u6027\u7684\u91cd\u8981\u4f9d\u636e\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u7528\u5b98\u65b9 R \u811a\u672c <code>step1_fitNULLGLMM.R<\/code> \u6309\u8868\u578b\u62df\u5408\u96f6\u6a21\u578b\u5e76\u51c6\u5907\u65b9\u5dee\u6bd4\uff0c\u518d\u7528 <code>step2_SPAtests.R<\/code> \u8bfb\u5165\u914d\u5957\u6587\u4ef6\uff0c\u5206\u67d3\u8272\u4f53\u505a\u5173\u8054\u68c0\u9a8c\u3002 <a href=\"https:\/\/saigegit.github.io\/SAIGE-doc\/docs\/single_step1.html\" style=\"color:#185CB7;text-decoration:underline;\">SAIGE \u7b2c\u4e00\u6b65\u62df\u5408<\/a> <a href=\"https:\/\/saigegit.github.io\/SAIGE-doc\/docs\/single_step2.html\" style=\"color:#185CB7;text-decoration:underline;\">SAIGE \u7b2c\u4e8c\u6b65\u626b\u63cf<\/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;- Sys.which(\"step1_fitNULLGLMM.R\")\ns2 &lt;- Sys.which(\"step2_SPAtests.R\")\nstopifnot(nzchar(s1),nzchar(s2))\nsystem2(s2,\"--help\")\n<\/code><\/pre>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u6837\u672c\u6570\u91cf\u76f8\u540c\u4e0d\u80fd\u8bc6\u522b\u8868\u578b<\/h2>\n<p style=\"margin:.5em 0 1em\">\u540c\u4e00\u5343\u4eba\u6309\u4e24\u79cd\u4e0d\u540c\u8868\u578b\u53ef\u5206\u522b\u6709\u4e8c\u5341\u548c\u516b\u5341\u540d\u75c5\u4f8b\u3002\u6837\u672c\u540d\u5355\u5b8c\u5168\u76f8\u540c\u4e5f\u4e0d\u80fd\u590d\u7528\u53e6\u4e00\u79cd\u7ed3\u5c40\u7684\u96f6\u6a21\u578b\u548c\u65b9\u5dee\u6bd4\u3002\u7a00\u6709\u53d8\u5f02\u7ed3\u679c\u8fd8\u5e94\u7559\u6bcf\u7ec4\u643a\u5e26\u8005\u53ca\u7b49\u4f4d\u7f16\u7801\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(1000,20,80)\nnames(v) &lt;- c(\"\u603b\u4eba\u6570\", \"\u8868\u578b\u7532\u75c5\u4f8b\", \"\u8868\u578b\u4e59\u75c5\u4f8b\")\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;\">\u603b\u4eba\u6570<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">1,000<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">\u8868\u578b\u7532\u75c5\u4f8b<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">20<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">\u8868\u578b\u4e59\u75c5\u4f8b<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">80<\/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-saige-practice-fc6ba26d.png?resize=1120%2C690&#038;ssl=1\" alt=\"\u6837\u672c\u6570\u91cf\u76f8\u540c\u4e0d\u80fd\u8bc6\u522b\u8868\u578b\u3002\u603b\u4eba\u6570 1,000\uff0c\u8868\u578b\u7532\u75c5\u4f8b 20\uff0c\u8868\u578b\u4e59\u75c5\u4f8b 80\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;\">\u540c\u4e00\u7a00\u6709\u7b49\u4f4d\u53ef\u7531\u5c11\u6570\u75c5\u4f8b\u72ec\u81ea\u8d21\u732e<\/h2>\n<p style=\"margin:.5em 0 1em\">\u6559\u5b66\u6570\u636e\u552f\u4e00\u7684\u66ff\u4ee3\u7b49\u4f4d\u6765\u81ea\u4e00\u4f4d\u75c5\u4f8b\uff0c\u5bf9\u7167\u5b8c\u5168\u6ca1\u6709\u643a\u5e26\u8005\u3002\u603b\u4eba\u6570\u76f8\u5f53\u65f6\u7ed3\u679c\u4ecd\u53ef\u80fd\u7531\u6781\u5c11\u89c2\u6d4b\u51b3\u5b9a\u3002\u8981\u62a5\u544a\u6709\u6548\u6837\u672c\u3001\u75c5\u4f8b\u548c\u5bf9\u7167\u7684\u643a\u5e26\u60c5\u51b5\uff0c\u6838\u5bf9\u8f93\u5165\u7b49\u4f4d\u65b9\u5411\u53ca\u6240\u7528\u7a00\u6709\u53d8\u5f02\u8bbe\u7f6e\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;\">case &lt;- c(1,0,0,0)\nctrl &lt;- c(0,0,0,0,0,0)\nc(case_carriers=sum(case&gt;0),control_carriers=sum(ctrl&gt;0),mac=sum(case,ctrl))\n<\/code><\/pre>\n<p style=\"margin:.5em 0 1em\">\u4e3a\u9a8c\u8bc1\u6a21\u578b\u4e00\u81f4\u6027\uff0c\u53ef\u91c7\u7528\u72ec\u7acb\u65b9\u6cd5\u8fdb\u884c\u4ea4\u53c9\u9a8c\u8bc1\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u76f8\u540c\u6837\u672c\u7684\u4e0d\u540c\u8868\u578b\u5206\u522b\u751f\u6210\u6a21\u578b\u6587\u4ef6\uff0c\u518d\u5c06\u8fd9\u4e9b\u6a21\u578b\u7528\u4e8e\u4ea4\u53c9\u5206\u6790\u3002\u82e5\u4e24\u4e2a\u8868\u578b\u7684\u6a21\u578b\u5728\u4ea4\u53c9\u4f7f\u7528\u65f6\u7ed3\u679c\u5dee\u5f02\u663e\u8457\uff0c\u8bf4\u660e\u6a21\u578b\u4e0d\u4e00\u81f4\u3002\u8fd9\u79cd\u5bf9\u7167\u65b9\u6cd5\u80fd\u6709\u6548\u8bc6\u522b\u6a21\u578b\u8bef\u7528\u95ee\u9898\u3002\u540c\u65f6\uff0c\u5e94\u68c0\u67e5\u6a21\u578b\u8f93\u51fa\u4e2d\u7684\u534f\u53d8\u91cf\u7cfb\u6570\u662f\u5426\u4e0e\u9884\u671f\u4e00\u81f4\u3002\u82e5\u7cfb\u6570\u51fa\u73b0\u5f02\u5e38\u6ce2\u52a8\uff0c\u5e94\u6000\u7591\u6a21\u578b\u6587\u4ef6\u662f\u5426\u88ab\u9519\u8bef\u8c03\u7528\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u4e0d\u540c\u53c2\u6570\u8bbe\u7f6e\u4e0b\uff0c\u6a21\u578b\u7684\u7a33\u5065\u6027\u4e5f\u9700\u8fdb\u884c\u8bc4\u4f30\u3002\u4f8b\u5982\uff0c\u82e5\u5728 LOCO \u8bbe\u7f6e\u4e2d\u4f7f\u7528\u4e86\u4e0d\u540c\u7684\u67d3\u8272\u4f53\u5206\u7ec4\u65b9\u5f0f\uff0c\u53ef\u80fd\u5bfc\u81f4\u6a21\u578b\u62df\u5408\u7ed3\u679c\u51fa\u73b0\u504f\u5dee\u3002\u5e94\u786e\u4fdd\u6bcf\u4e00\u6b65\u5206\u6790\u7684\u53c2\u6570\u8bbe\u7f6e\u4e00\u81f4\uff0c\u5305\u62ec\u534f\u53d8\u91cf\u7684\u5904\u7406\u65b9\u5f0f\u3001\u57fa\u56e0\u578b\u7f16\u7801\u89c4\u5219\u7b49\u3002\u82e5\u53c2\u6570\u8bbe\u7f6e\u4e0d\u540c\uff0c\u5373\u4f7f\u6837\u672c\u548c\u8868\u578b\u4e00\u81f4\uff0c\u4e5f\u4f1a\u5bfc\u81f4\u6a21\u578b\u4f30\u8ba1\u7ed3\u679c\u5dee\u5f02\u3002\u56e0\u6b64\uff0c\u5e94\u5efa\u7acb\u53c2\u6570\u4e00\u81f4\u6027\u68c0\u67e5\u673a\u5236\uff0c\u786e\u4fdd\u6240\u6709\u5206\u6790\u6b65\u9aa4\u7684\u53c2\u6570\u8bbe\u7f6e\u7edf\u4e00\u3002\u901a\u8fc7\u8fd9\u79cd\u8bc4\u4f30\u65b9\u5f0f\uff0c\u53ef\u589e\u5f3a\u6a21\u578b\u5728\u4e0d\u540c\u6761\u4ef6\u4e0b\u7684\u9c81\u68d2\u6027\uff0c\u907f\u514d\u56e0\u53c2\u6570\u5dee\u5f02\u5bfc\u81f4\u7684\u5206\u6790\u504f\u5dee\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u4ece SAIGE \u4f5c\u8005\u7684\u793a\u4f8b\u8868\u578b\u590d\u6838\u75c5\u4f8b\u4e0e\u5bf9\u7167\u5206\u6bcd<\/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;\">p&lt;-tempfile()\nutils::download.file(\"https:\/\/raw.githubusercontent.com\/saigegit\/SAIGE\/365deeff9149fc2b5a66da8fa3799637bcb30af3\/extdata\/input\/Prev_0.1_nfam_1000.pheno_seed_31_tau_1_pheno.txt\",p,mode=\"wb\",quiet=TRUE)\na&lt;-utils::read.table(p,header=TRUE)\nstopifnot(!anyDuplicated(a$IID),all(a$y %in% c(0,1)))\nc(length(unique(a$IID)),sum(a$y==1),sum(a$y==0))\n<\/code><\/pre>\n<p style=\"margin:.5em 0 1em\">\u7528 R 4.5.2 \u8bfb\u53d6 SAIGE \u4f5c\u8005\u63d0\u4f9b\u7684\u6559\u7a0b\u6570\u636e\uff08365deeff\uff09\uff0c\u8f93\u51fa\u4f9d\u6b21\u4e3a\u72ec\u7acb\u4e2a\u4f53 10,000\uff0c\u7f16\u7801\u4e00\u7684\u8868\u578b 1,036\uff0c\u7f16\u7801\u96f6\u7684\u8868\u578b 8,964\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\">\u6838\u67e5\u6837\u672c ID\u3001\u4e8c\u5206\u7c7b\u8868\u578b\u7f16\u7801\u3001\u6548\u5e94\u7b49\u4f4d\u57fa\u56e0\u548c LOCO \u8bbe\u7f6e\u3002\u540c\u4e00\u8868\u578b\u7684\u6a21\u578b\u53ca\u65b9\u5dee\u6bd4\u6587\u4ef6\u8981\u80fd\u8ffd\u6eaf\u5230\u540c\u4e00\u6b21\u62df\u5408\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728 SAIGE \u5206\u6790\u4e2d\uff0c\u53c2\u6570\u8bbe\u7f6e\u7684\u5dee\u5f02\u53ef\u80fd\u5bf9\u6a21\u578b\u7a33\u5065\u6027\u4ea7\u751f\u663e\u8457\u5f71\u54cd\u3002\u4f8b\u5982\uff0c\u82e5\u5728 LOCO\uff08leave-one-chromosome-out\uff09\u6a21\u5f0f\u4e0b\u4f7f\u7528\u4e86\u4e0d\u540c\u7684\u67d3\u8272\u4f53\u5206\u7ec4\u65b9\u5f0f\uff0c\u5c06\u5bfc\u81f4\u6a21\u578b\u62df\u5408\u65f6\u7684\u534f\u53d8\u91cf\u5904\u7406\u65b9\u5f0f\u4e0d\u540c\u3002\u8fd9\u79cd\u5dee\u5f02\u5728\u6a21\u578b\u8f93\u51fa\u7684\u534f\u53d8\u91cf\u7cfb\u6570\u4e2d\u4f1a\u4f53\u73b0\u4e3a\u663e\u8457\u6ce2\u52a8\uff0c\u8fdb\u800c\u5f71\u54cd\u540e\u7eed\u7684\u5173\u8054\u68c0\u9a8c\u7ed3\u679c\u3002\u56e0\u6b64\uff0c\u5728\u5206\u6790\u524d\u5e94\u786e\u4fdd\u6240\u6709\u6b65\u9aa4\u7684\u53c2\u6570\u8bbe\u7f6e\u4e00\u81f4\uff0c\u5305\u62ec\u534f\u53d8\u91cf\u7684\u5904\u7406\u65b9\u5f0f\u3001\u57fa\u56e0\u578b\u7f16\u7801\u89c4\u5219\u7b49\u3002\u82e5\u53c2\u6570\u4e0d\u4e00\u81f4\uff0c\u5373\u4f7f\u6837\u672c\u548c\u8868\u578b\u76f8\u540c\uff0c\u4e5f\u53ef\u80fd\u5bfc\u81f4\u6a21\u578b\u4f30\u8ba1\u51fa\u73b0\u7cfb\u7edf\u6027\u504f\u5dee\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u53c2\u6570\u8bbe\u7f6e\u7684\u4e0d\u4e00\u81f4\u4e0d\u4ec5\u5f71\u54cd\u6a21\u578b\u62df\u5408\u8fc7\u7a0b\uff0c\u4e5f\u4f1a\u5f71\u54cd\u6700\u7ec8\u7684\u7edf\u8ba1\u63a8\u65ad\u3002\u4f8b\u5982\uff0c\u82e5\u5728\u7b2c\u4e00\u6b65\u4e2d\u4f7f\u7528\u4e86\u56fa\u5b9a\u534f\u53d8\u91cf\uff0c\u800c\u5728\u7b2c\u4e8c\u6b65\u4e2d\u4f7f\u7528\u4e86\u968f\u673a\u534f\u53d8\u91cf\uff0c\u6a21\u578b\u8f93\u51fa\u7684\u65b9\u5dee\u6bd4\u6587\u4ef6\u5c06\u4e0d\u4e00\u81f4\uff0c\u5bfc\u81f4\u5173\u8054\u68c0\u9a8c\u7ed3\u679c\u4e0d\u53ef\u6bd4\u3002\u8fd9\u79cd\u4e0d\u4e00\u81f4\u6027\u5728\u5b9e\u9645\u5206\u6790\u4e2d\u8868\u73b0\u4e3a\u67d0\u4e9b\u67d3\u8272\u4f53\u7684\u6548\u5e94\u4f30\u8ba1\u503c\u5f02\u5e38\u9ad8\u6216\u4f4e\uff0cp \u503c\u5206\u5e03\u504f\u79bb\u9884\u671f\u3002\u82e5\u53d1\u73b0\u6b64\u7c7b\u73b0\u8c61\uff0c\u5e94\u7acb\u5373\u6838\u67e5\u811a\u672c\u53c2\u6570\u8bbe\u7f6e\uff0c\u786e\u4fdd\u6bcf\u4e00\u6b65\u7684\u8f93\u5165\u53c2\u6570\u4e0e\u6a21\u578b\u751f\u6210\u65f6\u4e00\u81f4\u3002\u901a\u8fc7\u53c2\u6570\u4e00\u81f4\u6027\u68c0\u67e5\uff0c\u53ef\u907f\u514d\u56e0\u8bbe\u7f6e\u5dee\u5f02\u5f15\u53d1\u7684\u5206\u6790\u504f\u5dee\uff0c\u63d0\u5347\u6a21\u578b\u7684\u7a33\u5065\u6027\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u6362\u5230\u771f\u5b9e\u6837\u672c\u65f6\u600e\u4e48\u9a8c\u8bc1<\/h2>\n<p style=\"margin:.5em 0 1em\">\u5c06\u4e00\u4e2a\u67d3\u8272\u4f53\u7684\u7b2c\u4e8c\u6b65\u4efb\u52a1\u89c6\u4f5c\u72ec\u7acb\u9a8c\u6536\u5355\u4f4d\uff0c\u8bb0\u5f55\u5176\u96f6\u6a21\u578b\u6587\u4ef6\u3001\u65b9\u5dee\u6bd4\u6587\u4ef6\u3001\u6837\u672c\u6807\u8bc6\u3001\u57fa\u56e0\u578b\u7248\u672c\u53ca\u6548\u5e94\u7b49\u4f4d\u65b9\u5411\u3002\u9009\u4e00\u4e2a\u6709\u8db3\u591f\u643a\u5e26\u8005\u7684\u5df2\u77e5\u4f4d\u70b9\u624b\u7b97\u6709\u6548\u6837\u672c\u6570\u4e0e\u7b49\u4f4d\u8ba1\u6570\uff0c\u540c\u8f93\u51fa\u8868\u7684\u5206\u6bcd\u6838\u5bf9\u3002\u82e5\u4e0d\u540c\u67d3\u8272\u4f53\u6df7\u7528\u4e86\u53e6\u4e00\u4e2a\u8868\u578b\u7684\u6a21\u578b\uff0c\u6d41\u7a0b\u6709\u65f6\u4ecd\u4f1a\u7ed3\u675f\u3002\u67e5\u75c5\u4f8b\u6570\u3001\u534f\u53d8\u91cf\u548c\u8f93\u5165\u6765\u6e90\uff0c\u6bd4\u53ea\u786e\u8ba4\u8f93\u51fa\u6587\u4ef6\u975e\u7a7a\u66f4\u80fd\u53d1\u73b0\u8fd9\u79cd\u9519\u914d\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\/074-saige-code-2b64b6a511a0c10b.zip\">\u4e0b\u8f7d\u672c\u7bc7 R \u4ee3\u7801\uff08ZIP\uff0c3.3 KiB\uff09<\/a> \u00b7 <a style=\"color:#1458a5;text-decoration:underline;\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/r-practice-labs\/074-saige-data-d4090344bd8e2319.zip\">\u4e0b\u8f7d\u914d\u5957\u793a\u4f8b\u6570\u636e\uff08ZIP\uff0c126.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;\">074-saige<\/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\u4ece SAIGE \u4f5c\u8005\u7684\u793a\u4f8b\u8868\u578b\u590d\u6838\u75c5\u4f8b\u4e0e\u5bf9\u7167\u5206\u6bcd\u201d\u3002Linux x86_64\u3001R 4.3.3 \u7684\u8f93\u51fa\u4e3a\u72ec\u7acb\u4e2a\u4f53 10000\uff0c\u7f16\u7801\u4e00\u7684\u8868\u578b 1036\uff0c\u7f16\u7801\u96f6\u7684\u8868\u578b 8964\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5bf9\u540c\u4e00\u4efd\u8868\u6309 IID \u8ba1\u6570\uff0c\u518d\u5c06\u75c5\u4f8b\u6570\u4e0e\u5bf9\u7167\u6570\u76f8\u52a0\u6838\u5bf9\u3002\u5927\u961f\u5217\u8fd8\u5e94\u6309\u961f\u5217\u6216\u57fa\u56e0\u5206\u578b\u6279\u6b21\u5206\u522b\u5217\u51fa\u75c5\u4f8b\u6bd4\u4f8b\u3002\u4e00\u4e2a\u5206\u5c42\u4e2d\u53ea\u6709\u75c5\u4f8b\u65f6\uff0c\u540e\u7eed\u534f\u53d8\u91cf\u548c\u6837\u672c\u8bbe\u8ba1\u90fd\u9700\u8981\u91cd\u65b0\u6838\u67e5\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\">\u4f5c\u8005\u7684\u8868\u578b\u6587\u4ef6\u4e2d\u6bcf\u4e2a\u4e2a\u4f53\u90fd\u6709\u660e\u786e\u7684\u7f16\u53f7\uff0c\u96f6\u548c\u4e00\u4e24\u4e2a\u7c7b\u522b\u53ef\u4ece\u539f\u8868\u9010\u884c\u8ba1\u6570\u3002\u628a\u72ec\u7acb\u4eba\u6570\u4e0e\u4e24\u7c7b\u4eba\u6570\u5199\u5165\u4e24\u9636\u6bb5\u4efb\u52a1\u7684\u8f93\u5165\u6458\u8981\uff0c\u53ef\u4ee5\u8bc6\u522b\u62ff\u9519\u6587\u4ef6\u6216\u66f4\u6362\u8868\u578b\u9020\u6210\u7684\u5dee\u522b\u3002\u8fd9\u4e2a\u5b9e\u4f8b\u6ca1\u6709\u62df\u5408\u5168\u57fa\u56e0\u7ec4\u96f6\u6a21\u578b\u6216\u626b\u63cf\u4f4d\u70b9\u3002\u771f\u6b63\u8fc1\u79fb\u65f6\uff0c\u8fd8\u9700\u786e\u8ba4\u53c2\u4e0e\u5206\u6790\u8005\u4e0e\u57fa\u56e0\u578b\u6837\u672c\u7684\u4ea4\u96c6\u53ca\u6548\u5e94\u7b49\u4f4d\u65b9\u5411\u3002<\/p>\n<p style=\"border-top:1px solid #DAE6F2;margin-top:2em;padding-top:1em;\">\u5b8c\u6210\u4e00\u4e2a\u4ee3\u8868\u6837\u672c\u7684\u590d\u6838\u540e\uff0c\u82e5\u8981\u5bf9\u66f4\u591a\u6587\u5e93\u91cd\u590d\u76f8\u540c\u7684\u5904\u7406\uff0c\u53ef\u628a\u6837\u672c\u6e05\u5355\u3001\u53c2\u6570\u548c\u8f93\u51fa\u8def\u5f84\u4e00\u8d77\u8fc1\u5230<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>\u4e0a\u6309\u6279\u6b21\u8fd0\u884c\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u540c\u4e00\u5343\u4eba\u6309\u4e24\u79cd\u4e0d\u540c\u8868\u578b\u53ef\u5206\u522b\u6709\u4e8c\u5341\u548c\u516b\u5341\u540d\u75c5\u4f8b\u3002<\/p>\n","protected":false},"author":1,"featured_media":68750,"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":[728,799,796],"class_list":["post-68751","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-r","category-part","tag-r","tag-saige","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-saige-practice-fc6ba26d.png?fit=1120%2C690&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68751","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=68751"}],"version-history":[{"count":3,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68751\/revisions"}],"predecessor-version":[{"id":70861,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68751\/revisions\/70861"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/68750"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=68751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=68751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=68751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}