From 0314e53319a2fecf65f4d31ed740f857a2ce4da3 Mon Sep 17 00:00:00 2001 From: Brent Pedersen Date: Tue, 26 Oct 2021 16:49:03 +0200 Subject: [PATCH] add vcfanno version to header (#140) --- vcfanno.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vcfanno.go b/vcfanno.go index 3cbcb83..83696a9 100644 --- a/vcfanno.go +++ b/vcfanno.go @@ -69,7 +69,7 @@ see: https://github.com/brentp/vcfanno `, os.Args[0]) flag.PrintDefaults() - os.Exit(2) + os.Exit(2) } queryFile := inFiles[1] if !(xopen.Exists(queryFile) || queryFile == "") { @@ -212,6 +212,7 @@ see: https://github.com/brentp/vcfanno maxChunk := envGet("IRELATE_MAX_CHUNK", 8000) // make a new writer from the string header. + query.Header.Extras = append(query.Header.Extras, fmt.Sprintf("##vcfanno=%s", VERSION)) out, err = vcfgo.NewWriter(out, query.Header) stream := irelate.PIRelate(maxChunk, maxGap, qstream, *ends, fn, queryables...)