Entering edit mode
2.3 years ago
curious
▴
820
I need to update the INFO col of a VCF include MAF based on the DS.
Usually I would do bcftools +fill-tags my_vcf.gz
, but this behavior seems to update MAF working from the GT
From what I understand from the fill-tags code, it looks like GT is only referenced, so this makes sense.
Any suggestions for how I could update MAF based on DS (preferably from an existing tool)
what is the definition of
DS
?dosage from imputation software minimac:
here is an example (including format and header tag):
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
##FORMAT=<ID=DS,Number=1,Type=Float,Description="Estimated Alternate Allele Dosage : [P(0/1)+2*P(1/1)]">
GT:DS 0|0:0.009
I spent some more time on this w/ awk, these are the updated MAF values based on dosage, still not sure how I could update the VCF with them