projects
/
lightning.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sort input files.
[lightning.git]
/
ref2genome.go
diff --git
a/ref2genome.go
b/ref2genome.go
index d8d4ad5d0673fcbc81cc0b26dc3afab186fc08b8..eeeb067694a579a140093d86d6211e8eff1dcf8d 100644
(file)
--- 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"
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:]))
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))
seqlen = 0
} else {
seqlen += len(bytes.TrimSpace(buf))