This does not.
I enter
bcftools +setGT Seventh_imputations_1240K.vcf.gz -- -t q -n . -e'FORMAT/GP>=0.90'
I get
Error: FORMAT vectors must be subscripted, e.g. GP[0] or GP[*]
Even if I subscript it [1-1699], I still find stuff like 0|0:0.53,0.373,0.097 and 1|0:0.107,0.891,0.002
• 0 views
•
link
it's not clear to me. Give us a short example of input/output.
I believe that when you say you want to remove genotype data, you mean that you want to make it missing. BCFtools filter can help you with that. You can try using this command (try using the latest version from Github):
This would include all genotypes that have a GP > 0.9 and covert others to missing. This rule is applied to all individuals. Furthermore, you could also try filtering based on Genotype quality (GQ) which is phred scaled.
This does not work.
bcftools filter -i 'FMT/GP[1-1699]>=0.9' --set-GTs . Seventh_imputations_1240K.vcf.gzstill outputs problems like this0|0:0.669,0.327,0.004