Open Feng560 opened 3 years ago
Hi Feng,
Thank you for using rMVP. Below please find some answers to your questions.
All columns of principal components in 'Covariates' were added as covariates by your attached scripts. If there are five columns of principal components in the 'Covariates' file, all of them were added as covariates in MLM.
Does the 'variance‘ mean phenotypic variance or total variance of principal components?
Xiaolei
Dear Xiaolei,
Thank you very much for your answer.
Best! Feng
We will think about adding the function to meet your second requirement. Thank you for your nice questions and suggestions.
Thank you very much! Best! Feng
Dear Xiaolei, Recenlty, I use the rMVP to carry out the GWAS. I have some questions about the PCA analysis (my scripts are attached in below).
Best! Feng
MVP.Data(fileHMP = "Arabidopsis_2029_Maf001_Filter95_my_ecos.full.hmp.txt", sep.hmp="\t", SNP.effect="Add", filePhe=phenotype_file, sep.phe="\t", filePC= T, #original was: 'PC_file.txt' type.pc="double", sep.pc="\t", fileKin=T, #original was: fileKin='Kinship_vanRaden.txt' type.kin="double", sep.kin="\t", out="mvp.hmp", priority="speed"
maxLine=10000
)
genotype <- attach.big.matrix("mvp.hmp.geno.desc") Kinship <- attach.big.matrix("mvp.hmp.kin.desc") Covariates <- attach.big.matrix('mvp.hmp.pc.desc')
map <- read.delim(file = "Arabidopsis_2029_Maf001_Filter95_my_ecos.full.hmp.txt", sep = "\t") map <- map[,c(1,3,4)]
write.table(map,"mvp.hmp.map")
met <- read.table("mvp.hmp.phe",head=TRUE)
name <- colnames(met) for(i in 2:length(name)){ gc() imMVP <- MVP( phe=met[, c(1,i)], geno=genotype, map=map, K=Kinship,
CV.GLM=Covariates,
}
warnings()