The merging rules of bcftools merge do not behave as described in the official documentation
-i, --info-rules -|TAG:METHOD[,…] Rules for merging INFO fields (scalars or vectors) or - to disable the default rules. METHOD is one of sum, avg, min, max, join. Default is DP:sum,DP4:sum if these fields exist in the input files. Fields with no specified rule will take the value from the first input file. The merged QUAL value is currently set to the maximum. This behaviour is not user controllable at the moment.
When both VCF files contain the same genomic position/variant site, merging them with bcftools merge results in the INFO column containing partial data from file1 and partial data from file2.
for example bcftools merge --merge none tg.vcf.gz te.vcf.gz|grep 172841261
AF AF_eas nhomalt_eas nhomalt nhomalt_eas_male nhomalt_male come from te.vcf.gz age_hist_het_bin_freq age_hist_hom_bin_freq come from tg.vcf.gz
Thank you for the issue. Any chance you could provide a small test case (VCF file format)? This will make the debugging easier, but also will allow us to check the tag definitions in the header. Thanks