Entering edit mode
6.5 years ago
QVINTVS_FABIVS_MAXIMVS
★
2.6k
I have joint called VCFs that I have split into respective pedigrees. Due to the nature of a software I'm using, I need to recalculate the QUAL scores for the pedigree VCFs.
I read on these forums that bcftools is able to do this, however the post has no clear answer
C: Recalculate QUAL and INFO fields for a subset of samples in a VCF
Any advice? Thanks
In single sample VCFs, the QUAL score is given for each variant. When you merge 2 or more VCFs, you have to set some rule about how you want to deal with the multiple QUAL scores fo each common variant across your VCFs. The default behaviour of BCFTools is to always set the QUAL score as the maximum from all QUAL scores:
[source: https://samtools.github.io/bcftools/bcftools.html]
If you originally have all of your files merged and then split them, I think that the maximum QUAL value will be retained in all subsets even if the original record with the highest QUAL score is not in one of the subset.