xiaolei-lab / rMVP

:postbox: A Memory-efficient, Visualization-enhanced, and Parallel-accelerated Tool For Genome-Wide Association Study
Apache License 2.0
268 stars 69 forks source link

Error in MVP.Data #60

Closed TinaNeik339 closed 3 years ago

TinaNeik339 commented 3 years ago

Hi, I encounter this error. Could you please help? What's the source of the error?

MVP.Data(fileHMP = "~/Downloads/MVP/MVPgenotype.hmp.txt", filePhe = "~/Downloads/MVP/Phenotype_ishaq.txt", sep.hmp = "t", sep.phe = "\t", SNP.effect = "Add", fileKin = FALSE, filePC = FALSE, out = "mvp.hmp") [1] "Preparing data for MVP..." [1] "Phenotype individuals: 201473530007_R01C01, 201473530007_R01C02, 201473530007_R02C01, 201473530007_R02C02, 201473530007_R03C01..." [1] "Genotype individuals: NA, NA, NA, NA, NA..." Error in MVP.Data(fileHMP = "~/Downloads/MVP/MVPgenotype.hmp.txt", filePhe = "~/Downloads/MVP/Phenotype_ishaq.txt", : No common individuals between phenotype and genotype!

YinLiLin commented 3 years ago

It seems that you have a typo for sep.hmp = "t", it should be "\t"?

TinaNeik339 commented 3 years ago

Thanks so much YinLiLin for the help! It works now :)