From: Petr Danecek Date: Tue, 14 Dec 2010 09:55:46 +0000 (+0000) Subject: Fixed the VCF header to pass validation X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bc2ecad90ddee39dd8ce4378134063cfbfcae220;hp=7d93d105e56d3bcee4be728077716794dddf21e7;p=samtools.git Fixed the VCF header to pass validation --- diff --git a/bcftools/call1.c b/bcftools/call1.c index 76eabf5..2308607 100644 --- a/bcftools/call1.c +++ b/bcftools/call1.c @@ -213,19 +213,27 @@ static void write_header(bcf_hdr_t *h) if (!strstr(str.s, "##INFO=\n", &str); if (!strstr(str.s, "##INFO=\n", &str); + kputs("##INFO=\n", &str); if (!strstr(str.s, "##INFO=\n", &str); if (!strstr(str.s, "##INFO=\n", &str); if (!strstr(str.s, "##INFO=\n", &str); + if (!strstr(str.s, "##INFO=\n", &str); + if (!strstr(str.s, "##INFO=\n", &str); + if (!strstr(str.s, "##FORMAT=\n", &str); + if (!strstr(str.s, "##FORMAT=\n", &str); if (!strstr(str.s, "##FORMAT=\n", &str); if (!strstr(str.s, "##FORMAT=\n", &str); if (!strstr(str.s, "##FORMAT=\n", &str); + kputs("##FORMAT=\n", &str); h->l_txt = str.l + 1; h->txt = str.s; }