Closed evcurran closed 2 months ago
As for the first question, view
will not update INFO/DP based on subset FORMAT/DP.
For the second question, the command looks correct and should work. The error message suggests that you are running an old version of bcftools. Please try with the latest, we are at 1.20 now and I am confident it will work there.
I used bcftools to create two subsetted VCFs from a larger VCF. The AN field automatically updates, but the DP (INFO) field does not.
To illustrate here is a variant from the original VCF (n=708):
Here is the same variant from subset 1 (n=239):
And the variant in subset 2 (n=153):
So I tried to use bcftools +fill-tags to update INFO/DP following the advice here: https://samtools.github.io/bcftools/howtos/plugin.fill-tags.html
And I get the following error:
Any pointers as to where I'm going wrong? Thanks!