From b4cabf31fc17d784197c5a633d72a68145b671d8 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Tue, 14 Jun 2022 10:00:45 +0200 Subject: [PATCH] Correctly print StatsOn values in obiformat style --- pkg/obiformats/fastseq_obi_header.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/obiformats/fastseq_obi_header.go b/pkg/obiformats/fastseq_obi_header.go index dd29d31..72b627c 100644 --- a/pkg/obiformats/fastseq_obi_header.go +++ b/pkg/obiformats/fastseq_obi_header.go @@ -294,7 +294,8 @@ func FormatFastSeqOBIHeader(sequence *obiseq.BioSequence) string { case string: text.WriteString(fmt.Sprintf("%s=%s; ", key, t)) case map[string]int, - map[string]interface{}: + map[string]interface{}, + obiseq.StatsOnValues: tv, err := json.Marshal(t) if err != nil { log.Fatalf("Cannot convert %v value", value)