Reduce redundante call to bytes.ToLower and substitute the last call by an home made version doing the conversion in place

Former-commit-id: d9ea22f649d97be352f8dbb37acc1495df830118
This commit is contained in:
2023-03-28 11:43:04 +07:00
parent e8a8f746d3
commit bc82422bc5
6 changed files with 18 additions and 10 deletions

View File

@ -1,7 +1,6 @@
package obiformats
import (
"bytes"
"compress/gzip"
"encoding/csv"
"fmt"
@ -70,7 +69,7 @@ func __read_ecopcr_bioseq__(file *__ecopcr_file__) (*obiseq.BioSequence, error)
comment = strings.TrimSpace(record[19])
}
bseq := obiseq.NewBioSequence(name, bytes.ToLower(sequence), comment)
bseq := obiseq.NewBioSequence(name, sequence, comment)
annotation := bseq.Annotations()
annotation["ac"] = name