projects
/
lightning.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00a8d4e
)
Fix fasta sequence names.
author
Tom Clegg <tom@tomclegg.ca>
Sun, 22 Nov 2020 08:21:19 +0000
(
03:21
-0500)
committer
Tom Clegg <tom@tomclegg.ca>
Sun, 22 Nov 2020 08:21:19 +0000
(
03:21
-0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>
ref2genome.go
patch
|
blob
|
history
diff --git
a/ref2genome.go
b/ref2genome.go
index d8d4ad5d0673fcbc81cc0b26dc3afab186fc08b8..0561ea0f93ca99ababdf39f9c0a4d6640c5fe85b 100644
(file)
--- a/
ref2genome.go
+++ b/
ref2genome.go
@@
-115,6
+115,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))