Open wtchoga opened 4 years ago
Thanks for using hibayes. Please try pve <- apply(as.matrix(geno),2,var) * (fit$g^2) / var(pheno[,1])
.
fit <- bayes(y=pheno[, 1], X=geno, map=map, windsize=1e6, wppa=0.01, model="BayesCpi", niter=20000, nburn=10000, outfreq=10) Error in bayes(y = pheno[, 1], X = geno, map = map, windsize = 1e+06, : Factors or characters are not allowed in physical position.
If you are trying to do GWAS using Bayes model, please make sure that all the physical positions in the map information should be in digital values, any character is unacceptable.
Hi Li
I am getting this error: Error in as.vector(data) : no method for coercing this S4 class to a vector; when I try to run
pve <- apply(geno,2,var) * (fit$g^2) / var(pheno[,1]).
Can you please advise.