{"id":116,"date":"2023-07-26T15:40:16","date_gmt":"2023-07-26T07:40:16","guid":{"rendered":"http:\/\/www.alearnerlin.top\/?p=116"},"modified":"2026-05-29T10:43:42","modified_gmt":"2026-05-29T02:43:42","slug":"r%e5%ad%a6%e4%b9%a0","status":"publish","type":"post","link":"https:\/\/www.alearnerlin.top\/index.php\/2023\/07\/26\/r%e5%ad%a6%e4%b9%a0\/","title":{"rendered":"R\u5b66\u4e60"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u76ee\u7684\uff1a\u5229\u7528\u722c\u53d6\u7684\u75be\u75c5\u7684\u6570\u636e\uff0c\u5b8c\u6210\u6570\u636e\u7684\u76f8\u5173\u5904\u7406<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">\u65b9\u6cd5\uff1a<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GWAS cFDR<\/li>\n\n\n\n<li>\u53c2\u8003\u6587\u732e\uff1a[\u4f7f\u7528\u591a\u6548\u6027cFDR\u65b9\u6cd5\u6539\u8fdb\u5bf9\u51a0\u72b6\u52a8\u8109\u75be\u75c5\u548c\u8840\u538b\u5e38\u89c1\u53d8\u5f02\u7684\u68c0\u6d4b](<a href=\"https:\/\/www.nature.com\/articles\/s41598-019-46808-2\">\u4f7f\u7528\u591a\u6548\u6027cFDR\u65b9\u6cd5\u6539\u8fdb\u5bf9\u51a0\u72b6\u52a8\u8109\u75be\u75c5\u548c\u8840\u538b\u5e38\u89c1\u53d8\u5f02\u7684\u68c0\u6d4b |\u79d1\u5b66\u62a5\u544a (nature.com)<\/a>)<\/li>\n\n\n\n<li>\u6761\u4ef6\u9519\u8bef\u53d1\u73b0\u7387\uff08cFDR)\uff0c\u53ea\u9700\u8981\u76f8\u5173\u6027\u72b6\/\u75be\u75c5\u7684\u72ec\u7acbGWAS\u6570\u636e\u96c6\u7684\u6c47\u603b\u7edf\u8ba1\u7ed3\u679c\u3002\u57fa\u4e8e\u9057\u4f20\u591a\u6548\u6027\uff0c\u901a\u8fc7\u5408\u5e76\u4e24\u4e2aGWAS\u6570\u636e\u96c6\uff0c\u5c06\u5927\u5927\u63d0\u9ad8\u9057\u4f20\u4f4d\u70b9\u7684\u7edf\u8ba1\u80fd\u529b\u548c\u8bc6\u522b\u80fd\u529b\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u76f8\u5173\u51fd\u6570<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">package<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>data.table<\/code> \u6570\u636e\u8bfb\u53d6<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">setwd()<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8bbe\u7f6e\u8def\u5f84\u9700\u8981\u63d0\u524d\u521b\u5efa\u4e00\u4e2a\u5b58\u5728\u7684\u8def\u5f84<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">fread()<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8bfb\u53d6\u5927\u6587\u4ef6<\/li>\n\n\n\n<li>\u7528\u6cd5\uff1a<code>xx &lt;- fread(\"xx\/xx\/xx.txt\", header = ?,)<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">names()<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">ls()<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u663e\u793a\u5f53\u524d\u5df2\u6709\u7684\u6240\u6709\u904d\u5386<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">rm()<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6e05\u7a7a\u53d8\u91cf<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>rm(list=ls())<\/code> \u6e05\u7a7a\u5f53\u524d\u6240\u6709\u53d8\u91cf<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">merge\uff08\uff09<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5408\u5e76\u4e24\u4e2a\u6570\u636e\u6846\u7684\u6570\u636e,\u5728\u4e8e\u5728\u4e24\u4e2a\u4e0d\u540c\u7684\u6570\u636e\u6846\u4e2d\u6807\u8bc6\u5171\u540c\u7684\u5217\u6216\u884c\u3002<\/li>\n\n\n\n<li>\u7528\u6cd5\uff1amerge(x, y, by=xxx, all=?)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u95ee\u9898<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>Winkler\/GCST010723_buildGRCh37.tsv<\/code> \u8be5\u8def\u5f84\u4e0b\u6587\u4ef6\u4e0d\u5b58\u5728<\/li>\n\n\n\n<li><code>library(GWAScFDR)<\/code>\u8be5package\u65e0\u6cd5\u5bfc\u5165<\/li>\n\n\n\n<li>\u62a5\u9519\uff1a<code>A version of this package for your version of R might be avai7ab1e elsewhere<\/code><ol><li>\u5904\u7406\u63aa\u65bd\uff1a<code>library(BiocManager)<\/code> \u7ed3\u679c\uff1a\u6ca1\u6709\u5e2e\u52a9<\/li><li>\u89e3\u51b3\u529e\u6cd5\uff1a\u4eceGitHub\u4e0a\u5bfc\u5165GWAScFDR\u5305\uff0c\u6307\u4ee4\uff1a<\/li><\/ol><code>install.packages(\"devtools\") devtools::install_github(\"KehaoWu\/GWAScFDR\")<\/code>\n<ul class=\"wp-block-list\">\n<li>devtools \u5df2\u7ecf\u5b89\u88c5\u540e\u53ef\u4ee5\u5ffd\u7565\u6b64\u884c<\/li>\n\n\n\n<li><em>GWAScFDR<\/em> \u4e3a\u96c6\u6210\u7684\u5305\uff0c\u5176\u4e2d\u5305\u62ec\uff1a<em>RColorBrewer<\/em> <em>ggplot2<\/em> \u7b49<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u7684\uff1a\u5229\u7528\u722c\u53d6\u7684\u75be\u75c5\u7684\u6570\u636e\uff0c\u5b8c\u6210\u6570\u636e\u7684\u76f8\u5173\u5904\u7406 \u65b9\u6cd5\uff1a \u76f8\u5173\u51fd\u6570 package setwd() fread( [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-116","post","type-post","status-publish","format-standard","hentry","category-r"],"_links":{"self":[{"href":"https:\/\/www.alearnerlin.top\/index.php\/wp-json\/wp\/v2\/posts\/116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.alearnerlin.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.alearnerlin.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.alearnerlin.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alearnerlin.top\/index.php\/wp-json\/wp\/v2\/comments?post=116"}],"version-history":[{"count":2,"href":"https:\/\/www.alearnerlin.top\/index.php\/wp-json\/wp\/v2\/posts\/116\/revisions"}],"predecessor-version":[{"id":118,"href":"https:\/\/www.alearnerlin.top\/index.php\/wp-json\/wp\/v2\/posts\/116\/revisions\/118"}],"wp:attachment":[{"href":"https:\/\/www.alearnerlin.top\/index.php\/wp-json\/wp\/v2\/media?parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.alearnerlin.top\/index.php\/wp-json\/wp\/v2\/categories?post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.alearnerlin.top\/index.php\/wp-json\/wp\/v2\/tags?post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}