This is a test version of Biostars. For the public version, visit https://www.biostars.org.
expected heterozygosity calculation

Hi to all, I have a vcf file that including multisample. I want to calculate expected heterozygosity for this vcf file by sliding-window approach(40-kb-windows slidingin20-kb-steps). I want to know, which software do this? Thanks, Siavash

vcf snp genome snp

Number of hets, hom. ref. and hom. alt. in a given region

bcftools stats -r chr1:23000-26000 -s - <input.vcf.gz>

You are probably interested in runs of homozygosity

bcftools roh

0 answers

No answers yet.

Log in to answer this question.