{"id":68763,"date":"2026-12-05T09:10:34","date_gmt":"2026-12-05T01:10:34","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=68763"},"modified":"2026-12-05T09:10:34","modified_gmt":"2026-12-05T01:10:34","slug":"r-guide-matrixeqtl-practice","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/r-guide-matrixeqtl-practice\/","title":{"rendered":"MatrixEQTL \u4ece cis \u6269\u5230 trans\uff0c\u600e\u6837\u5148\u7b97\u6e05\u68c0\u9a8c\u6570\u3001\u5750\u6807\u548c\u8f93\u51fa\u91cf\uff1f"},"content":{"rendered":"<div class=\"ysx-r-practice\" id=\"ysx-r-matrixeqtl\" 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\">\u5341\u4e8c\u4e2a\u4f4d\u70b9\u548c\u4e94\u4e2a\u57fa\u56e0\u4f1a\u4ea7\u751f\u516d\u5341\u4e2a\u6f5c\u5728\u7ec4\u5408\u3002\u6269\u5230\u5168\u57fa\u56e0\u7ec4\u540e\uff0c\u5b9e\u9645\u505a\u8fc7\u7684\u68c0\u9a8c\u6570\u548c\u5199\u8fdb\u6587\u4ef6\u7684\u884c\u6570\u5f80\u5f80\u76f8\u5dee\u5f88\u591a\u3002Matrix eQTL \u7684\u5750\u6807\u3001\u90bb\u8fd1\u8ddd\u79bb\u548c\u8f93\u51fa\u9608\u503c\u9700\u8981\u5404\u81ea\u8bb0\u5f55\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">MatrixEQTL \u7684\u8f93\u5165\u548c\u5206\u6790\u5bf9\u8c61<\/h2>\n<p style=\"margin:.5em 0 1em\">snps\u3001gene\u3001cv \u4e3a\u5df2\u6309\u540c\u5e8f\u6837\u672c\u6784\u9020\u7684 SlicedData\u3002snp_pos \u548c gene_pos \u6ee1\u8db3 MatrixEQTL \u7684\u5750\u6807\u5217\u7ea6\u5b9a\u4e14\u7ec4\u88c5\u4e00\u81f4\uff0c\u793a\u4f8b\u8def\u5f84\u7528\u4e8e\u672c\u6b21\u65b0\u7ed3\u679c\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u8fdb\u884c\u77e9\u9635eQTL\u5206\u6790\u65f6\uff0c\u9700\u8981\u786e\u4fdd\u57fa\u56e0\u578b\u3001\u8868\u8fbe\u548c\u534f\u53d8\u91cf\u6570\u636e\u5728\u6837\u672c\u7ef4\u5ea6\u4e0a\u5b8c\u5168\u5bf9\u9f50\u3002\u6240\u6709\u8f93\u5165\u6570\u636e\u90fd\u5fc5\u987b\u6309\u7167\u76f8\u540c\u7684\u6837\u672c\u987a\u5e8f\u7ec4\u7ec7\uff0c\u4ee5\u907f\u514d\u56e0\u6837\u672c\u987a\u5e8f\u4e0d\u4e00\u81f4\u5bfc\u81f4\u7684\u9519\u8bef\u5173\u8054\u3002\u6837\u672c\u5bf9\u9f50\u540e\uff0c\u5c06\u6570\u636e\u8f6c\u6362\u4e3aSlicedData\u683c\u5f0f\uff0c\u8fd9\u662fMatrixEQTL\u5305\u5904\u7406\u6570\u636e\u7684\u6807\u51c6\u65b9\u5f0f\u3002\u8fd9\u79cd\u683c\u5f0f\u80fd\u591f\u9ad8\u6548\u5730\u5904\u7406\u5927\u89c4\u6a21\u77e9\u9635\u6570\u636e\uff0c\u540c\u65f6\u4fdd\u6301\u5185\u5b58\u4f7f\u7528\u5728\u5408\u7406\u8303\u56f4\u3002\u57fa\u56e0\u578b\u6570\u636e\u3001\u8868\u8fbe\u6570\u636e\u548c\u534f\u53d8\u91cf\u6570\u636e\u5206\u522b\u4ee5\u72ec\u7acb\u7684SlicedData\u5bf9\u8c61\u5f62\u5f0f\u5b58\u5728\uff0c\u5b83\u4eec\u7684\u6837\u672c\u987a\u5e8f\u5fc5\u987b\u4fdd\u6301\u4e00\u81f4\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u57fa\u56e0\u4f4d\u7f6e\u4fe1\u606f\u4e0e\u4f4d\u70b9\u4f4d\u7f6e\u4fe1\u606f\u662f\u5b9a\u4e49cis\u548ctrans\u5173\u8054\u7684\u5173\u952e\u4f9d\u636e\u3002\u8fd9\u4e9b\u4f4d\u7f6e\u4fe1\u606f\u5fc5\u987b\u4f7f\u7528\u7edf\u4e00\u7684\u57fa\u56e0\u7ec4\u7ec4\u88c5\u7248\u672c\uff0c\u5426\u5219\u4f1a\u5bfc\u81f4\u4f4d\u7f6e\u5224\u65ad\u9519\u8bef\u3002\u57fa\u56e0\u4f4d\u7f6e\u4fe1\u606f\u901a\u5e38\u5305\u542b\u67d3\u8272\u4f53\u7f16\u53f7\u548c\u8d77\u59cb\u4f4d\u7f6e\uff0c\u4f4d\u70b9\u4f4d\u7f6e\u4fe1\u606f\u5219\u5305\u542b\u67d3\u8272\u4f53\u7f16\u53f7\u548c\u78b1\u57fa\u4f4d\u7f6e\u3002\u8fd9\u4e9b\u4fe1\u606f\u5fc5\u987b\u7b26\u5408MatrixEQTL\u7684\u5750\u6807\u5217\u7ea6\u5b9a\uff0c\u5373\u67d3\u8272\u4f53\u5217\u4e3a\u5b57\u7b26\u578b\uff0c\u4f4d\u7f6e\u5217\u4e3a\u6570\u503c\u578b\u3002\u5728\u5b9e\u9645\u5206\u6790\u4e2d\uff0c\u57fa\u56e0\u4f4d\u7f6e\u4fe1\u606f\u7528\u4e8e\u5224\u65ad\u662f\u5426\u4e3acis\u5173\u8054\uff0c\u4f4d\u70b9\u4f4d\u7f6e\u4fe1\u606f\u7528\u4e8e\u5b9a\u4f4d\u57fa\u56e0\u8868\u8fbe\u8c03\u63a7\u533a\u57df\u3002\u5728\u8bbe\u5b9a\u5206\u6790\u53c2\u6570\u65f6\uff0c\u9700\u8981\u660e\u786e\u6307\u5b9acis\u8ddd\u79bb\u9608\u503c\uff0c\u8be5\u9608\u503c\u51b3\u5b9a\u4e86\u54ea\u4e9b\u4f4d\u70b9\u4e0e\u57fa\u56e0\u88ab\u5b9a\u4e49\u4e3acis\u5173\u8054\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u8f93\u51fa\u9608\u503c\u7684\u8bbe\u5b9a\u76f4\u63a5\u5f71\u54cd\u5206\u6790\u7ed3\u679c\u7684\u8303\u56f4\u3002\u8bbe\u5b9a\u7684P\u503c\u9608\u503c\u4ec5\u63a7\u5236\u6700\u7ec8\u8f93\u51fa\u6587\u4ef6\u4e2d\u4fdd\u5b58\u7684\u5173\u8054\u7ed3\u679c\uff0c\u800c\u4e0d\u662f\u63a7\u5236\u5b9e\u9645\u8fdb\u884c\u7684\u68c0\u9a8c\u6570\u91cf\u3002\u5982\u679c\u5c06\u8f93\u51fa\u9608\u503c\u8bbe\u4e3a1e-5\uff0c\u90a3\u4e48\u6240\u6709P\u503c\u5c0f\u4e8e1e-5\u7684\u5173\u8054\u7ed3\u679c\u90fd\u4f1a\u88ab\u4fdd\u5b58\uff0c\u4f46\u5b9e\u9645\u68c0\u9a8c\u7684\u7ec4\u5408\u6570\u91cf\u4e0d\u4f1a\u56e0\u6b64\u51cf\u5c11\u3002\u8f93\u51fa\u9608\u503c\u7684\u8bbe\u5b9a\u9700\u8981\u7ed3\u5408\u7814\u7a76\u76ee\u7684\u548c\u591a\u91cd\u68c0\u9a8c\u6821\u6b63\u7b56\u7565\u7efc\u5408\u8003\u8651\u3002\u5728\u8fdb\u884c\u5206\u6790\u524d\uff0c\u5e94\u660e\u786e\u68c0\u9a8c\u7684\u8303\u56f4\uff0c\u5305\u62ec\u54ea\u4e9b\u4f4d\u70b9\u4e0e\u57fa\u56e0\u7684\u7ec4\u5408\u9700\u8981\u68c0\u9a8c\u3002\u82e5\u4e0d\u9884\u5148\u8bbe\u5b9a\u68c0\u9a8c\u8303\u56f4\uff0c\u53ef\u80fd\u5bfc\u81f4\u5927\u91cf\u4e0d\u5fc5\u8981\u7684\u68c0\u9a8c\uff0c\u589e\u52a0\u5206\u6790\u65f6\u95f4\u548c\u8ba1\u7b97\u8d1f\u62c5\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5bf9\u9f50\u6837\u672c\u540e\u5c06\u57fa\u56e0\u578b\u3001\u8868\u8fbe\u53ca\u534f\u53d8\u91cf\u8bfb\u5165 <code>SlicedData<\/code>\uff0c\u5411 <code>Matrix_eQTL_main()<\/code> \u63d0\u4f9b\u4f4d\u70b9\u4e0e\u57fa\u56e0\u5750\u6807\uff0c\u8bbe\u5b9a cis \u8ddd\u79bb\u548c\u7ed3\u679c\u8f93\u51fa\u9608\u503c\u3002 <a href=\"https:\/\/cran.r-project.org\/web\/packages\/MatrixEQTL\/refman\/MatrixEQTL.html#Matrix_eQTL_main\" style=\"color:#185CB7;text-decoration:underline;\">MatrixEQTL 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;\">o &lt;- MatrixEQTL::Matrix_eQTL_main(snps=snps,gene=gene,cvrt=cv,output_file_name=tempfile(),pvOutputThreshold=1e-5,output_file_name.cis=tempfile(),pvOutputThreshold.cis=1e-3,snpspos=snp_pos,genepos=gene_pos,cisDist=1e6)\nnames(o)\n<\/code><\/pre>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u4e09\u767e\u4e2a\u4f4d\u70b9\u548c\u4e8c\u5341\u4e2a\u57fa\u56e0<\/h2>\n<p style=\"margin:.5em 0 1em\">\u7406\u8bba\u5168\u90e8\u516d\u5343\u5bf9\uff0c\u82e5\u56db\u5341\u4e94\u5bf9\u7b26\u5408\u672c\u9879\u76ee cis \u5b9a\u4e49\uff0c\u5176\u4f59\u4e94\u5343\u4e5d\u767e\u4e94\u5341\u4e94\u5bf9\u3002\u8f93\u51fa\u9608\u503c\u53ea\u63a7\u5236\u4fdd\u5b58\u8303\u56f4\uff0c\u4e0d\u4f1a\u81ea\u52a8\u628a\u672a\u5199\u51fa\u7684\u7ec4\u5408\u53d8\u6210\u672a\u68c0\u9a8c\u3002\u7528\u8f83\u5c0f\u533a\u57df\u6838\u5bf9\u7ec4\u88c5\u53ca\u8ddd\u79bb\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(300*20,45,300*20-45)\nnames(v) &lt;- c(\"\u5168\u90e8\u7ec4\u5408\", \"\u90bb\u8fd1\u7ec4\u5408\u793a\u4f8b\", \"\u5176\u4f59\u7ec4\u5408\")\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;\">\u5168\u90e8\u7ec4\u5408<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">6,000<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">\u90bb\u8fd1\u7ec4\u5408\u793a\u4f8b<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">45<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">\u5176\u4f59\u7ec4\u5408<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">5,955<\/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-matrixeqtl-practice-68937b9f.png?resize=1120%2C690&#038;ssl=1\" alt=\"\u4e09\u767e\u4e2a\u4f4d\u70b9\u548c\u4e8c\u5341\u4e2a\u57fa\u56e0\u3002\u5168\u90e8\u7ec4\u5408 6,000\uff0c\u90bb\u8fd1\u7ec4\u5408\u793a\u4f8b 45\uff0c\u5176\u4f59\u7ec4\u5408 5,955\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;\">\u4e3a\u4ec0\u4e48\u8f93\u51fa\u4e2d\u53ea\u6709\u5c11\u6570\u884c\u4e5f\u53ef\u80fd\u505a\u8fc7\u6d77\u91cf\u68c0\u9a8c\uff1f<\/h2>\n<p style=\"margin:.5em 0 1em\">\u5728\u8fd9\u4e2a\u56db\u9879\u6559\u5b66\u5411\u91cf\u91cc\u5168\u90e8\u68c0\u9a8c\u90fd\u5b58\u5728\uff0c\u6309\u95e8\u69db\u53ea\u4fdd\u5b58\u4e00\u9879\u3002\u4fdd\u5b58\u9608\u503c\u3001\u51b3\u5b9a\u662f\u5426\u5206\u6790\u7684\u89c4\u5219\u548c\u63a7\u5236\u591a\u91cd\u9519\u8bef\u7387\u5c5e\u4e8e\u4e0d\u540c\u73af\u8282\u3002\u518d\u6309\u8f93\u51fa\u6587\u4ef6\u884c\u6570\u4fee\u6b63\u5168\u90e8\u6d4b\u8bd5\uff0c\u4f1a\u9057\u6f0f\u672a\u5199\u51fa\u7684\u68c0\u9a8c\u8303\u56f4\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;\">p &lt;- c(.0001,.02,.2,.8)\nc(tested=length(p),saved=sum(p&lt;.01))\n<\/code><\/pre>\n<p style=\"margin:.5em 0 1em\">\u5728\u672c\u4f8b\u4e2d\uff0c\u4e09\u767e\u4e2a\u4f4d\u70b9\u4e0e\u4e8c\u5341\u4e2a\u57fa\u56e0\u7684\u7ec4\u5408\u6784\u6210\u4e86\u516d\u5343\u4e2a\u6f5c\u5728\u7684\u68c0\u9a8c\u5bf9\u3002\u5176\u4e2d\u56db\u5341\u4e94\u4e2a\u7ec4\u5408\u88ab\u5b9a\u4e49\u4e3acis\u5173\u8054\uff0c\u5176\u4f59\u4e94\u5343\u4e5d\u767e\u4e94\u5341\u4e94\u4e2a\u7ec4\u5408\u4e3atrans\u5173\u8054\u3002\u8fd9\u4e2a\u6bd4\u4f8b\u53cd\u6620\u4e86\u5b9e\u9645\u5206\u6790\u4e2dcis\u4e0etrans\u5173\u8054\u7684\u5178\u578b\u5206\u5e03\u3002cis\u8ddd\u79bb\u9608\u503c\u8bbe\u5b9a\u4e3a100\u4e07\u78b1\u57fa\u5bf9\uff0c\u7b26\u5408\u4e00\u822c\u7814\u7a76\u4e2d\u7684\u5e38\u89c1\u8bbe\u5b9a\u3002\u5728\u5b9e\u9645\u5206\u6790\u4e2d\uff0ccis\u5173\u8054\u7684\u5b9a\u4e49\u4f9d\u8d56\u4e8e\u57fa\u56e0\u4f4d\u7f6e\u4fe1\u606f\u548c\u4f4d\u70b9\u4f4d\u7f6e\u4fe1\u606f\u7684\u51c6\u786e\u5339\u914d\u3002\u5982\u679c\u7ec4\u88c5\u7248\u672c\u4e0d\u4e00\u81f4\uff0c\u53ef\u80fd\u5bfc\u81f4\u90e8\u5206cis\u5173\u8054\u88ab\u9519\u8bef\u5730\u5f52\u7c7b\u4e3atrans\u5173\u8054\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u5206\u6790\u7ed3\u679c\u4e2d\uff0c\u53ef\u4ee5\u89c2\u5bdf\u5230cis\u548ctrans\u5173\u8054\u7684\u5206\u5e03\u7279\u5f81\u3002cis\u5173\u8054\u7684P\u503c\u901a\u5e38\u4f1a\u66f4\u5c0f\uff0c\u4e14\u5728\u7edf\u8ba1\u5b66\u4e0a\u66f4\u663e\u8457\u3002trans\u5173\u8054\u7684P\u503c\u5206\u5e03\u5219\u66f4\u5206\u6563\uff0c\u9700\u8981\u66f4\u4e25\u683c\u7684\u9608\u503c\u624d\u80fd\u7b5b\u9009\u51fa\u663e\u8457\u7ed3\u679c\u3002\u5728\u5b9e\u9645\u5206\u6790\u4e2d\uff0c\u5e94\u7279\u522b\u6ce8\u610f\u7ed3\u679c\u7684\u5206\u5e03\u7279\u5f81\uff0c\u4ee5\u5224\u65ad\u5206\u6790\u662f\u5426\u5408\u7406\u3002\u5982\u679c\u53d1\u73b0cis\u5173\u8054\u7684P\u503c\u5206\u5e03\u5f02\u5e38\uff0c\u53ef\u80fd\u9700\u8981\u91cd\u65b0\u68c0\u67e5\u7ec4\u88c5\u7248\u672c\u548c\u4f4d\u7f6e\u4fe1\u606f\u7684\u51c6\u786e\u6027\u3002\u5982\u679ctrans\u5173\u8054\u7684P\u503c\u5206\u5e03\u4e0d\u5408\u7406\uff0c\u53ef\u80fd\u9700\u8981\u91cd\u65b0\u8003\u8651\u591a\u91cd\u68c0\u9a8c\u6821\u6b63\u7b56\u7565\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u8fd0\u884c\u4e00\u4e2a\u5c0f\u578b Matrix eQTL \u7ebf\u6027\u626b\u63cf<\/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(8)\nx&lt;-matrix(rbinom(12*16,2,.4),12,16,dimnames=list(paste0(\"v\",1:12),paste0(\"s\",1:16)))\ny&lt;-matrix(rnorm(5*16),5,16,dimnames=list(paste0(\"g\",1:5),colnames(x)))\na&lt;-MatrixEQTL::SlicedData$new()\nb&lt;-MatrixEQTL::SlicedData$new()\na$CreateFromMatrix(x)\nb$CreateFromMatrix(y)\nh&lt;-MatrixEQTL::Matrix_eQTL_main(snps=a,gene=b,cvrt=MatrixEQTL::SlicedData$new(),output_file_name=tempfile(),pvOutputThreshold=1,useModel=MatrixEQTL::modelLINEAR,verbose=FALSE)\nc(nrow(x),nrow(y),h$all$ntests)\n<\/code><\/pre>\n<p style=\"margin:.5em 0 1em\">\u5728 R 4.5.2\u3001MatrixEQTL 2.4 \u4e2d\u8fd0\u884c\uff0c\u8f93\u51fa\u4f9d\u6b21\u4e3a\u53d8\u5f02\u6570 12\uff0c\u57fa\u56e0\u6570 5\uff0c\u6267\u884c\u7684\u7ec4\u5408 60\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\u7ec4\u88c5\u3001\u57fa\u56e0\u4f4d\u7f6e\u3001\u6837\u672c\u987a\u5e8f\u4e0e\u534f\u53d8\u91cf\u3002\u653e\u5bbd\u8f93\u51fa\u9608\u503c\u4f1a\u5199\u51fa\u6d77\u91cf\u5173\u8054\uff0c\u9884\u5148\u5b9a\u4e49\u68c0\u9a8c\u8303\u56f4\u548c\u591a\u91cd\u68c0\u9a8c\u65b9\u6848\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u5206\u6790\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u53d1\u73b0\u7ed3\u679c\u4e0e\u9884\u671f\u4e0d\u7b26\uff0c\u9996\u5148\u5e94\u68c0\u67e5\u8f93\u5165\u6570\u636e\u7684\u7ec4\u88c5\u7248\u672c\u662f\u5426\u4e00\u81f4\u3002\u57fa\u56e0\u4f4d\u7f6e\u4fe1\u606f\u548c\u4f4d\u70b9\u4f4d\u7f6e\u4fe1\u606f\u5fc5\u987b\u4f7f\u7528\u76f8\u540c\u7684\u57fa\u56e0\u7ec4\u7ec4\u88c5\u7248\u672c\uff0c\u5426\u5219\u4f1a\u5bfc\u81f4\u4f4d\u7f6e\u5224\u65ad\u9519\u8bef\u3002\u5982\u679c\u7ec4\u88c5\u7248\u672c\u4e0d\u4e00\u81f4\uff0c\u5e94\u91cd\u65b0\u4e0b\u8f7d\u5bf9\u5e94\u7248\u672c\u7684\u6570\u636e\u5e76\u91cd\u65b0\u5904\u7406\u3002\u5728\u68c0\u67e5\u7ec4\u88c5\u7248\u672c\u65f6\uff0c\u5e94\u7279\u522b\u6ce8\u610f\u67d3\u8272\u4f53\u7f16\u53f7\u7684\u8868\u793a\u65b9\u5f0f\u662f\u5426\u4e00\u81f4\uff0c\u5982&#8221;1&#8243;\u4e0e&#8221;chr1&#8243;\u7684\u533a\u522b\u3002\u5982\u679c\u53d1\u73b0\u7ec4\u88c5\u7248\u672c\u4e0d\u4e00\u81f4\uff0c\u9700\u8981\u91cd\u65b0\u8fdb\u884c\u6570\u636e\u5bf9\u9f50\u548c\u683c\u5f0f\u8f6c\u6362\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u5206\u6790\u7ed3\u679c\u7684\u8fb9\u754c\u5904\u7406\u65b9\u9762\uff0c\u9700\u8981\u660e\u786e\u54ea\u4e9b\u7ed3\u679c\u662f\u771f\u6b63\u663e\u8457\u7684\uff0c\u54ea\u4e9b\u662f\u7531\u4e8e\u591a\u91cd\u68c0\u9a8c\u5bfc\u81f4\u7684\u5047\u9633\u6027\u3002\u5728\u5b9e\u9645\u5206\u6790\u4e2d\uff0c\u5e94\u6839\u636eFDR\u6821\u6b63\u7b56\u7565\u6765\u5224\u65ad\u7ed3\u679c\u7684\u663e\u8457\u6027\u3002\u5982\u679c\u4f7f\u7528Benjamini-Hochberg\u65b9\u6cd5\u8fdb\u884cFDR\u6821\u6b63\uff0c\u9700\u8981\u7279\u522b\u6ce8\u610f\u6821\u6b63\u540e\u7684q\u503c\u7684\u89e3\u91ca\u3002\u5982\u679cq\u503c\u5c0f\u4e8e0.05\uff0c\u5219\u8ba4\u4e3a\u8be5\u5173\u8054\u5177\u6709\u7edf\u8ba1\u5b66\u663e\u8457\u6027\u3002\u5728\u7ed3\u679c\u89e3\u91ca\u65f6\uff0c\u5e94\u7279\u522b\u6ce8\u610f\u7ed3\u679c\u7684\u751f\u7269\u5b66\u610f\u4e49\uff0c\u907f\u514d\u4ec5\u4ece\u7edf\u8ba1\u5b66\u89d2\u5ea6\u5224\u65ad\u7ed3\u679c\u7684\u91cd\u8981\u6027\u3002\u5982\u679c\u7ed3\u679c\u5728\u751f\u7269\u5b66\u4e0a\u6ca1\u6709\u5408\u7406\u89e3\u91ca\uff0c\u5e94\u8003\u8651\u662f\u5426\u5b58\u5728\u6570\u636e\u8d28\u91cf\u95ee\u9898\u6216\u5206\u6790\u65b9\u6cd5\u95ee\u9898\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\">\u4f30\u7b97\u5168\u57fa\u56e0\u7ec4\u8f93\u51fa\u65f6\uff0c\u5e94\u628a\u68c0\u9a8c\u603b\u6570\u3001\u8fbe\u5230\u4fdd\u5b58\u9608\u503c\u7684\u884c\u6570\u4e0e\u78c1\u76d8\u6587\u4ef6\u5927\u5c0f\u5206\u5f00\u3002\u5927\u91cf\u57fa\u56e0\u548c\u53d8\u5f02\u4e24\u4e24\u914d\u5bf9\u65f6\uff0c\u5373\u4f7f\u4ec5\u5c11\u6570\u7ed3\u679c\u5199\u51fa\uff0c\u4e5f\u53ef\u80fd\u8981\u8bc4\u4f30\u5e7f\u6cdb\u7684\u7ec4\u5408\u3002\u4ece\u540c\u4e00\u67d3\u8272\u4f53\u6311\u4e00\u57fa\u56e0\u3001\u4e00\u8fd1\u4e00\u8fdc\u4e24\u4e2a\u53d8\u5f02\uff0c\u6309\u6ce8\u91ca\u548c\u7a97\u53e3\u624b\u7b97\u5176\u987a\u53cd\u5206\u7c7b\u3002\u82e5\u8868\u8fbe\u4e0e\u57fa\u56e0\u578b\u6837\u672c\u987a\u5e8f\u4e0d\u540c\uff0c\u5168\u90e8\u56de\u5f52\u4ecd\u53ef\u80fd\u83b7\u5f97\u6570\u503c\uff0c\u56e0\u800c\u5e94\u5148\u7528\u540d\u79f0\u5bf9\u9f50\u5e76\u6838\u5bf9\u534f\u53d8\u91cf\u77e9\u9635\u5217\u5e8f\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5148\u7ed9\u4e0b\u4e00\u6b65\u8fd0\u7b97\u5b9a\u4e00\u4e2a\u80fd\u591f\u72ec\u7acb\u7b97\u51fa\u7b54\u6848\u7684\u5c0f\u533a\u57df\u3002\u8fde\u7eed\u8bfb\u53d6\u4e00\u5757\u65f6\u8bb0\u5f55\u5b83\u7684\u884c\u5217\u540d\u79f0\u548c\u7b2c\u4e00\u4e2a\u3001\u6700\u540e\u4e00\u4e2a\u4f4d\u7f6e\uff0c\u518d\u9009\u4e00\u70b9\u8de8\u8d8a\u4e24\u5757\u7684\u8303\u56f4\u3002\u82e5\u4e24\u6bb5\u5206\u522b\u7d2f\u52a0\u548c\u4e00\u6b21\u8bfb\u53d6\u5f97\u5230\u4e0d\u540c\u7b54\u6848\uff0c\u5dee\u5f02\u901a\u5e38\u80fd\u5728\u5757\u8fb9\u754c\u4e0a\u7684\u90a3\u51e0\u884c\u627e\u5230\u3002\u5e38\u89c1\u6210\u56e0\u5305\u62ec\u540c\u4e00\u8bb0\u5f55\u88ab\u4e24\u6b21\u7eb3\u5165\u3001\u672b\u5c3e\u4e0d\u6ee1\u4e00\u5757\u88ab\u820d\u5f03\u3001\u6216\u8005\u7f3a\u5931\u6807\u8bb0\u5728\u5408\u5e76\u65f6\u88ab\u5f53\u4f5c\u96f6\u3002\u7528\u5c11\u91cf\u6570\u636e\u9010\u6761\u5199\u51fa\u53c2\u4e0e\u7edf\u8ba1\u7684\u5bf9\u8c61\uff0c\u6bd4\u770b\u4e00\u4e2a\u5f88\u5927\u7684\u603b\u6570\u66f4\u5bb9\u6613\u627e\u51fa\u54ea\u4e00\u9879\u7b97\u91cd\u6216\u7b97\u6f0f\u4e86\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u6c47\u603b\u65f6\u8fd8\u6709\u4e00\u4e2a\u5bb9\u6613\u5ffd\u7565\u7684\u7ec6\u8282\u3002\u6bcf\u5757\u7684\u603b\u91cf\u548c\u6709\u6548\u5206\u6bcd\u90fd\u5e94\u4fdd\u5b58\uff0c\u6700\u540e\u7528\u603b\u5206\u5b50\u9664\u4ee5\u603b\u5206\u6bcd\u3002\u53ea\u6709\u5404\u5757\u6743\u91cd\u76f8\u7b49\u65f6\uff0c\u76f4\u63a5\u5e73\u5747\u5404\u5757\u7684\u5747\u503c\u624d\u4f1a\u5f97\u5230\u76f8\u540c\u7b54\u6848\u3002\u82e5\u8f93\u51fa\u672c\u6765\u5c31\u662f\u9010\u4f4d\u7f6e\u6216\u9010\u6837\u672c\u6307\u6807\uff0c\u5219\u6cbf\u5bf9\u5e94\u7684\u8f74\u5408\u5e76\u5e76\u4fdd\u7559\u539f\u540d\u79f0\u3002\u6700\u540e\u7528\u4e00\u4e2a\u80fd\u5355\u72ec\u6838\u9a8c\u7684\u5c40\u90e8\u7ed3\u679c\u505a\u56de\u5f52\u68c0\u67e5\uff0c\u5c06\u6765\u5373\u4f7f\u6362\u5b58\u50a8\u65b9\u5f0f\u6216\u6539\u53d8\u5207\u5206\u5bbd\u5ea6\uff0c\u76f8\u540c\u8f93\u5165\u4f4d\u7f6e\u4ecd\u5e94\u7ed9\u51fa\u76f8\u5bb9\u7684\u7ed3\u679c\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\/080-matrixeqtl-code-23554a3cf3f6c0a8.zip\">\u4e0b\u8f7d\u672c\u7bc7 R \u4ee3\u7801\uff08ZIP\uff0c4.3 KiB\uff09<\/a> \u00b7 <a style=\"color:#1458a5;text-decoration:underline;\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/r-practice-labs\/080-matrixeqtl-data-480f3b04b1a9f439.zip\">\u4e0b\u8f7d\u914d\u5957\u793a\u4f8b\u6570\u636e\uff08ZIP\uff0c5.4 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;\">080-matrixeqtl<\/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\u8fd0\u884c\u4e00\u4e2a\u5c0f\u578b Matrix eQTL \u7ebf\u6027\u626b\u63cf\u201d\u3002Linux x86_64\u3001R 4.5.2\u3001MatrixEQTL 2.3 \u7684\u8f93\u51fa\u4e3a\u53d8\u5f02\u6570 12\uff0c\u57fa\u56e0\u6570 5\uff0c\u6267\u884c\u7684\u7ec4\u5408 60\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5c0f\u4f8b\u628a\u8f93\u51fa\u95e8\u69db\u653e\u5bbd\u5230\u4e00\uff0c\u53ef\u4ee5\u5c06\u6a21\u578b\u68c0\u9a8c\u7684\u7ec4\u5408\u6570\u4e0e\u53d8\u5f02\u6570\u4e58\u57fa\u56e0\u6570\u76f4\u63a5\u5bf9\u7167\u3002\u5728\u6b63\u5f0f\u5206\u6790\u91cc\u8bbe\u66f4\u4e25\u683c\u7684\u5bfc\u51fa\u9608\u503c\u65f6\uff0c\u7ed3\u679c\u6587\u4ef6\u7684\u884c\u6570\u53ea\u8868\u793a\u5199\u51fa\u7684\u7ec4\u5408\uff0c\u4e0d\u4ee3\u8868\u5b9e\u9645\u53ea\u68c0\u9a8c\u4e86\u8fd9\u4e48\u591a\u5bf9\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\">\u5341\u4e8c\u4e2a\u4f4d\u70b9\u4e0e\u4e94\u4e2a\u57fa\u56e0\u7ec4\u5408\uff0c\u7a0b\u5e8f\u5b9e\u9645\u6267\u884c\u4e86\u516d\u5341\u4e2a\u68c0\u9a8c\uff0c\u6070\u597d\u7b49\u4e8e\u4e24\u4e2a\u8f93\u5165\u7ef4\u5ea6\u76f8\u4e58\u3002\u8fd9\u4e2a\u68c0\u67e5\u6bd4\u6839\u636e\u8f93\u51fa\u6587\u4ef6\u5927\u5c0f\u731c\u6d4b\u66f4\u53ef\u9760\u3002\u8f6c\u5230\u771f\u5b9e cis \u4e0e trans \u5206\u6790\u65f6\u5e94\u5728\u751f\u6210\u7ed3\u679c\u524d\u5199\u6e05\u5750\u6807\u3001\u90bb\u8fd1\u754c\u9650\u548c\u5404\u81ea\u7684\u68c0\u9a8c\u5168\u96c6\u3002<\/p>\n<p style=\"border-top:1px solid #DAE6F2;margin-top:2em;padding-top:1em;\">\u5c0f\u6837\u672c\u7684\u8ba1\u6570\u548c\u5224\u65ad\u6807\u51c6\u6838\u5bf9\u6e05\u695a\u540e\uff0c\u82e5\u8981\u628a\u540c\u4e00\u6d41\u7a0b\u7528\u4e8e\u6574\u6279\u6837\u672c\uff0c\u53ef\u4ee5\u5e26\u4e0a\u8f93\u5165\u89c4\u6a21\u548c\u5df2\u7ecf\u8dd1\u901a\u7684 R \u811a\u672c\uff0c\u6309\u9879\u76ee\u5468\u671f\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>\u7406\u8bba\u5168\u90e8\u516d\u5343\u5bf9\uff0c\u82e5\u56db\u5341\u4e94\u5bf9\u7b26\u5408\u672c\u9879\u76ee cis \u5b9a\u4e49\uff0c\u5176\u4f59\u4e94\u5343\u4e5d\u767e\u4e94\u5341\u4e94\u5bf9\u3002<\/p>\n","protected":false},"author":1,"featured_media":68762,"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":[805,728,796],"class_list":["post-68763","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-r","category-part","tag-matrixeqtl","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-matrixeqtl-practice-68937b9f.png?fit=1120%2C690&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68763","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=68763"}],"version-history":[{"count":2,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68763\/revisions"}],"predecessor-version":[{"id":70875,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68763\/revisions\/70875"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/68762"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=68763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=68763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=68763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}