Hi all,

I want to count the number of SNP for each chromosome in the raw VCF file. What is the best idea?

Best Regard

Mostafa
UPDATE 2021:  if your VCF is indexed: `bcftools index -s indexed.vcf.gz`




    grep -v "^#" in.vcf | cut -f 1 | sort | uniq -c