X-Git-Url: https://git.arvados.org/lightning.git/blobdiff_plain/57bef70ff726b355aecdaeffcc933c71070cc15f..6e83d50c4d29656055a9c8e1a155309017a0d66d:/ref2genome.go diff --git a/ref2genome.go b/ref2genome.go index d8d4ad5d06..eeeb067694 100644 --- a/ref2genome.go +++ b/ref2genome.go @@ -1,4 +1,8 @@ -package main +// Copyright (C) The Lightning Authors. All rights reserved. +// +// SPDX-License-Identifier: AGPL-3.0 + +package lightning import ( "bufio" @@ -115,6 +119,7 @@ func (cmd *ref2genome) RunCommand(prog string, args []string, stdin io.Reader, s fmt.Fprintf(out, "%s\t%d\n", label, seqlen) } label = strings.TrimSpace(string(buf[1:])) + label = strings.SplitN(label, " ", 2)[0] seqlen = 0 } else { seqlen += len(bytes.TrimSpace(buf))