]> git.donarmstrong.com Git - samtools.git/blobdiff - bcftools/vcfout.c
* bcftools: add HWE (no testing for now)
[samtools.git] / bcftools / vcfout.c
index 075fb617acb62784cb31608a7f5f3380fe50bacd..af9b0c948f51e2b70eca7d52a4624e0293dfd4cb 100644 (file)
@@ -70,7 +70,7 @@ static int update_bcf1(bcf1_t *b, const bcf_p1aux_t *pa, const bcf_p1rst_t *pr,
        kputc('\0', &s); kputc('\0', &s);
        kputs(b->info, &s);
        if (b->info[0]) kputc(';', &s);
-       ksprintf(&s, "AF1=%.3lf;AFE=%.3lf", 1.-pr->f_em, 1.-pr->f_exp);
+       ksprintf(&s, "AF1=%.3lf;AFE=%.3lf;HWE=%.3lf,%.3lf,%.3lf", 1.-pr->f_em, 1.-pr->f_exp, pr->g[0], pr->g[1], pr->g[2]);
        kputc('\0', &s);
        kputs(b->fmt, &s); kputc('\0', &s);
        free(b->str);