Please accept your answer using the check mark on the left to mark the post as solved.
vcftools --TajimaD does not start at 0 and misses variants
I have used vcftools --TajimaD to calculate Tajima's D statistics with other species easily in the past. However, I am running this now on a new vcf and getting strange results:
- the output file doesn't start at 0, but rather at 539700. There is nothing special about this number. The first variant in the VCF file is at position 36 and so forth. See screenshot below
- also, even for windows where it does make some calculations, it is missing variants that are clearly present in the VCF.
In case its helpful here is vcftools output
Indexing the vcf (tabix) did not solve.
Anyone encountered this before?
• 3,046 views
•
link
1 answer
SOLVED:
in the vcf-merge command used to create the vcf file I added --ref-for-missing 0/0
Perhaps vcftools --TajimaD doesn't like having missing values (ie ./.)?
• 0 views
•
link
Log in to answer this question.