mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Patch bug in ngsfilter reader
Former-commit-id: 77a1c39bf9c023bf4a3f58167e1e8a4d5d82e7c9
This commit is contained in:
@ -6,6 +6,8 @@
|
||||
|
||||
- In `obicsv` the **--keep count** was not equivalent to **--count**.
|
||||
- In `obipairing` and `obipcrtag` correct a bug in the alignment procedure leading to negative scores.
|
||||
- In `obimultiplex` correct a bug leading to a miss-read of the ngsfilter file when tags where written in
|
||||
lower case.
|
||||
|
||||
### New feature
|
||||
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
|
||||
"git.metabarcoding.org/lecasofts/go/obitools/pkg/obingslibrary"
|
||||
"git.metabarcoding.org/lecasofts/go/obitools/pkg/obiseq"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func _readLines(reader io.Reader) []string {
|
||||
@ -38,10 +39,12 @@ func _parseMainNGSFilterTags(text string) obingslibrary.TagPair {
|
||||
|
||||
tags := strings.Split(text, ":")
|
||||
|
||||
log.Infof("text: %s, Tags: %v", text, tags)
|
||||
|
||||
if len(tags) == 1 {
|
||||
return obingslibrary.TagPair{
|
||||
Forward: tags[0],
|
||||
Reverse: tags[0],
|
||||
Forward: strings.ToLower(tags[0]),
|
||||
Reverse: strings.ToLower(tags[0]),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user