This is a test version of Biostars. For the public version, visit https://www.biostars.org.
quick way to get samples that are NOT homozygous reference for a given record using bcftools?

I can do this in python, but just wondered if there is any way in bcftools to return a vcf with samples that are NOT homozygous reference for a given snp. I am guessing no, but thought I would ask anyways

bcftools

1 answer

 bcftools view -i 'count(GT=="RR")==0' 

[filter.c:1379 filters_init1] Error: the tag "INFO/count" is not defined in the VCF header ?

what is your version of bcftools ? check you're using a recent version.

that was it thanks

Log in to answer this question.