Hi,
we created a VCF file for multiple samples "using samtools mpileup and bcftools call". Those VCF files only have GT and PL field while we need DP and AD for downstream analyses.
We need Alternative depth AD and Depth DP as a field in our VCF. It does not seem possible to get it out of bcftools or samtools.
using bcfview on any single sample bcf, one can obtain DP or DP4 from the info field. The only way I can think of extracting AD is by summing the fields of DP4 2 by 2 and them putting them back in the vcf using my own custom scripting.
Is that methodologically correct or am I missing the point here and that would not really be AD? Does anyone has a better way of doing it or any suggestions?
Many many thanks for your help
Ludo
That is extremely helpful, thank you both for your time!
Ludo