-
Notifications
You must be signed in to change notification settings - Fork 260
Closed
Description
I'm using bcftools v1.15 with fill-tags plugin to annotate my VCF file.
When I annotate values using the following everything works fine:
bcftools +fill-tags test.vcf.gz --threads 4 -Ob -o test.tags.bcf -- -t AF,AC,AN,TYPE,F_MISSING,NS,HWE
However, when I add a custom tag, the F_MISSING values become wrong. For example the following command produces a wrong output for F_MISSING. All other tags are computed correctly at this seems independent from the order of tags.
bcftools +fill-tags test.vcf.gz --threads 4 -Ob -o test2.tags.bcf -- -t AF,AC,AN,TYPE,F_MISSING,NS,HWE,'F_GQ10=N_PASS(GQ >= 10)/N_SAMPLES'
Here are the outputs of the first few variants, reporting F_MISSING value and N missing genotypes. Total N samples is 33:
- From command1 with correct annotations
0.818182 27
0.848485 28
0.212121 7
0.121212 4
0.0909091 3
0.333333 11
0.242424 8
0.030303 1
0.575758 19
0.787879 26
- From command2 resulting in wrong F_MISSING
0 27
0.030303 28
0.484848 7
0.575758 4
0.757576 3
0.424242 11
0.666667 8
0.636364 1
0.212121 19
0.212121 26
Metadata
Metadata
Assignees
Labels
No labels