You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem while creating kinship files. I have loaded "mvp.geno.desc" as genotype in my R, but when I tries "MVP.Data.Kin(TRUE, mvp_prefix='mvp', out='mvp'", it does not work.
> MVP.Data.PC(TRUE, out='mvp', perc=1, pcs.keep=5)
Error in MVP.Data.PC(TRUE, out = "mvp", perc = 1, pcs.keep = 5) :
could not find function "MVP.Data.PC"
The same thing happened when I typed "MVP.Data.PC(TRUE, out='mvp', perc=1, pcs.keep=5)". How can I fix this problem? Otherwise, may I have your example the kinship file and Principal Components files?
Best regards
Leah
The text was updated successfully, but these errors were encountered:
Thank you for using of MVP!
There are two ways to calculate kinship and pc. First, it could be automatically outputted to your workplace when transforming your genetype by setting as following:
MVP.Data(..., fileKin=TRUE, filePC=TRUE)
Second, you could use the corresponding functions to derive it if your genetype is already in required file format of MVP (.geno.desc, .geno.bin):
Loading your genotype to R:
genotype<- attach.big.matrix("mvp.geno.desc")
For kinship:
K<- MVP.K.VanRaden(genotype)
For PC
PC<- MVP.PCA(genotype)
Please have a try with either above for your case, and any questions are welcome to discuss with us here.
MVP.Data.Kin and MVP.Data.PC are new functions that was recently added to MVP. If you are using an old version of MVP, you can use the following code to update to the latest version.
devtools::install_github("xiaoleiLiubio/rMVP")
Or use the MVP.Data function to do this, as LiLin Yin replied. I closed this issue, and if you have any new questions, you can open another issue.
Hello Xiaolei
I have a problem while creating kinship files. I have loaded "mvp.geno.desc" as genotype in my R, but when I tries "MVP.Data.Kin(TRUE, mvp_prefix='mvp', out='mvp'", it does not work.
The same thing happened when I typed "MVP.Data.PC(TRUE, out='mvp', perc=1, pcs.keep=5)". How can I fix this problem? Otherwise, may I have your example the kinship file and Principal Components files?
Best regards
Leah
The text was updated successfully, but these errors were encountered: