Add HD header ilne to SAM output

#905
This commit is contained in:
Nils Homer 2023-02-13 18:03:53 -07:00 committed by Heng Li
parent 01b98e8e52
commit 1d3c3eef03
1 changed files with 1 additions and 0 deletions

View File

@ -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}; kstring_t str = {0,0,0};
int ret = 0; int ret = 0;
mm_sprintf_lite(&str, "@HD\tVN:1.6\tSO:unsorted\tGO:query\n");
if (idx) { if (idx) {
uint32_t i; uint32_t i;
for (i = 0; i < idx->n_seq; ++i) for (i = 0; i < idx->n_seq; ++i)