Patch bug in ngsfilter reader

Former-commit-id: 77a1c39bf9c023bf4a3f58167e1e8a4d5d82e7c9
This commit is contained in:
2023-11-25 13:55:43 +01:00
parent 5d24522aa6
commit db6de58548
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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]),
}
}