quick way to get samples that are NOT homozygous reference for a given record using bcftools?
1
0
Entering edit mode
3.7 years ago
curious ▴ 820

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.4k views
ADD COMMENT
0
Entering edit mode
3.7 years ago
 bcftools view -i 'count(GT=="RR")==0' 
ADD COMMENT
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

that was it thanks

ADD REPLY

Login before adding your answer.

Traffic: 1498 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6