I am new to bioinformatics, so sorry if this question seems too simple.
I am trying to perform quality control on a vcf file using the following code:
$ bcftools view -i 'F_PASS(DP>=10 & GT!="mis")> 0.9' norm.vcf.gz -Oz -o filtered_norm.vcf.gz
or this:
$ bcftools view -i 'F_PASS(DP>=10 & GT!=".")> 0.9' norm.vcf.gz -Oz -o filtered_norm.vcf.gz
The ideal filtered_norm.vcf.gz should have at least 90% of its genotype for a variant with a DT >= 10 and no missing GT. However, entering either these codes and the system will respond "Error: the tag "mis" is not defined in the VCF header."
I checked the vcf header and it has this line:
##FORMAT=<ID=GT,Number=1,Type=String,Description="">
But I do not know how to proceed from here to solve the problem. Could anyone help me, please? Thank you very much in advance!
what's your version of bcftools ?
I checked and it is bcftools 1.15.
Hi! Did you find a solution to this problem? I'm running into the same issue with bcftools 1.15.1