Force sequence reading to produce lowercase sequences.

Adds two columns to the obiclean ratio csv file
This commit is contained in:
2022-11-22 15:06:09 +01:00
parent f4daa7f97f
commit 20b16c0ba1
14 changed files with 294 additions and 23 deletions

View File

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