How to get the number of distinct variants genotyped from VCF or bed/bim files (GWAS)?
Hi,
How can I get the number of distinct variants genotyped from VCF or bed/bim files?
The reason why I want to do this is to compare the number of gentoyped variants of different batches but the same array.
Thanks!
• 1,087 views
•
link
2 answers
is the file is indexed
bcftools index -s indexed.vcf.gz | cut -f3 | paste -sd '+' |bc
if the file isn't indexed
bcftools query -f '.' file.vcf.gz |wc -c
• 0 views
•
link
Log in to answer this question.