使用rMVP进行gwas分析
001、
library(rMVP) MVP.Data(fileBed="gwas_test",filePhe="phenotype.txt",fileKin=TRUE,filePC=TRUE,out="mvp") ## gwas_test为plink二进制格式的文件名, phenotype.txt为表型(个体 + phe) pheno <- read.table("mvp.phe", header = TRUE) head(pheno,3) geno <- attach.big.matrix("mvp.geno.desc") dim(geno) map <- read.table("mvp.geno.map", header = TRUE) head(map, 3) Kinship <- attach.big.matrix("mvp.kin.desc") dim(Kinship) Kinship[1:5, 1:5] Covariates <- attach.big.matrix("mvp.pc.desc") head(Covariates) MVP(phe=pheno,geno=geno,map=map,K=Kinship,CV.MLM=Covariates,priority="speed", ## 运行两次? vc.method="EMMA",method=c("MLM"))
不同模型:
MVP(phe=pheno, geno=geno, map=map, maxLoop=3, method = "GLM", file.output= TRUE, ncpus=1) MVP(phe=pheno, geno=geno, map=map, maxLoop=3, method = "MLM", file.output= TRUE, ncpus=1) MVP(phe=pheno, geno=geno, map=map, maxLoop=3, method = "FarmCPU", file.output= TRUE, ncpus=1)
主要生成文件:
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
2021-07-31 linux系统中scp命令实现服务器之间数据的传输
2021-07-31 SRA Toolkit的下载安装及使用
2021-07-31 NCBI中sra数据的下载
2018-07-31 linux 系统 grep 命令