From 882cc82f23e42686db6316999953dad8ab8a577f Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Thu, 1 Aug 2024 16:41:50 +0200 Subject: [PATCH] Write results as a csv file --- cmd/obitools/obicount/main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/obitools/obicount/main.go b/cmd/obitools/obicount/main.go index b0cf51b..4e8f9ea 100644 --- a/cmd/obitools/obicount/main.go +++ b/cmd/obitools/obicount/main.go @@ -45,17 +45,17 @@ func main() { black.Run() + fmt.Print("entity,n\n") + if obicount.CLIIsPrintingVariantCount() { - fmt.Printf(" %d", counter.Variants) + fmt.Printf("variants,%d\n", counter.Variants) } if obicount.CLIIsPrintingReadCount() { - fmt.Printf(" %d", counter.Reads) + fmt.Printf("reads,%d\n", counter.Reads) } if obicount.CLIIsPrintingSymbolCount() { - fmt.Printf(" %d", counter.Nucleotides) + fmt.Printf("nucleotides,%d\n", counter.Nucleotides) } - - fmt.Printf("\n") }