Hello All,
I want to calculate SNPs/KB density count from a Quality filtered (GATK hard filter and Individual Filter) VCF file. Below are the steps I have performed for calculating SNPs per Kb density.Total samples are 188.
- vcftools --vcf input.vcf --SNPdensity 1000 --out SNPs_densityPerKb
- Count the 1kb bins from SNPs_densityPerKb ( 848770 )
- Total Number of SNPs : 7075927
- SNPs /Kb = 7075927/848770 ( total SNPs/ total 1kb bins)
I just want to confirm my SNPs /Kb calculation is right or Not.
Please somebody can comment it.