Hi everyone,
currently I'm running bayenv2 on my data.
First,I've converted my vcf
file into bayenv
format but then, when I try to generate the covariance matrix, I get the message initial epsilon zero or 1 locus 6912
.
I've read that the epsilon value in bayenv2
is related to the allele frequency at a specific locus for the current generation, but don't actually understand what this means and I don't know how to solve this problem.
Any help will be appreciated! Thank you very much in advanced :)
Hi Katie, thank you very much for your answer! I asked the developpers of the bayenv2 and they told me that the problem was that the file contained SNPs with fixed allele frequencies (the same allele in all individuals, either 0 or 1). So I filtered my data by MAF 1% and the problems was solved. I think this matches as well with your case, your allele freqs were fixed for that SNP!
Just to add that I also recieved this error when I had a typos in the sample names of the popualtion file I used to convert
vcf
toBayEnv
usingPGDSpider
. It looked as though it converted correclty but then when I ran BayEnv this error occured. Just in case people still get this error after looking for fixed sites!