From 1d3c3eef03216fde72f5e1a3850941b0193216d9 Mon Sep 17 00:00:00 2001 From: Nils Homer Date: Mon, 13 Feb 2023 18:03:53 -0700 Subject: [PATCH] Add HD header ilne to SAM output #905 --- format.c | 1 + 1 file changed, 1 insertion(+) diff --git a/format.c b/format.c index ac7cd8e..e588814 100644 --- a/format.c +++ b/format.c @@ -119,6 +119,7 @@ int mm_write_sam_hdr(const mm_idx_t *idx, const char *rg, const char *ver, int a { kstring_t str = {0,0,0}; int ret = 0; + mm_sprintf_lite(&str, "@HD\tVN:1.6\tSO:unsorted\tGO:query\n"); if (idx) { uint32_t i; for (i = 0; i < idx->n_seq; ++i)