This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Filter heterozygous SNP calls out of a VCF file?

Hello,

I was wondering if there was a way to filter out heterozygous SNP calls from a VCF file. I am working with a model that has a doubled haploid genome, so we expect all calls to be homozygous, and any heterozygotes are a false positive which should be removed. Should I be filtering by genotype? Does anyone have any suggestions on how to do this?

Thank you!

snp vcf

multi-samples ? what happens if only one sample is HET ? Input/output is needed.

1 answer

Hey! I figured it out -- sorry for the late response. I used GATK and did isHet and then set filtered genotypes to no call. Thank you for your help.

Log in to answer this question.