Closed oliverdrechsel closed 3 months ago
How is the tag defined in the header, is it Type=Float or something else?
Thanks for the immediate response!
##FORMAT=<ID=QR,Number=1,Type=Integer,Description="Sum of quality of the reference observations">
I see that bcftools is even smarter than i knew. Is it correct that Freebayes (or me) needs to put Float instead of Integer in the header line?
Yes, it attempts to parse an integer and fails. You can easily check with the help of bcftools reheader
# Write out the header to be modified
bcftools view -h old.bcf > header.txt
# Edit the header using your favorite text editor
vi header.txt
# Reheader the file
bcftools reheader -h header.txt -o new.bcf old.bcf
bcftools view fails with one of my vcf files generated by Freebayes in --gvcf mode.
The error points to lines like the example line
I assume the validator tries to reject empty fields in QR that are given as '.', but here the field contains a decimal '1.00307e+06'. Removing the respective line from the vcf file makes the error message disappear, but plenty of others are still encountered.
Is there a good way how to make the validator accept decimals?
Thanks a lot in advance.