From bc2ecad90ddee39dd8ce4378134063cfbfcae220 Mon Sep 17 00:00:00 2001 From: Petr Danecek Date: Tue, 14 Dec 2010 09:55:46 +0000 Subject: [PATCH 1/1] Fixed the VCF header to pass validation --- bcftools/call1.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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; } -- 2.39.2