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

@@ -11,6 +11,7 @@
package obiseq
import (
"bytes"
"crypto/md5"
"fmt"
"strconv"
@@ -370,7 +371,7 @@ func (s *BioSequence) SetSequence(sequence []byte) {
if s.sequence != nil {
RecycleSlice(&s.sequence)
}
s.sequence = sequence
s.sequence = bytes.ToLower(sequence)
}
// Setting the qualities of the BioSequence.

View File

@@ -209,9 +209,7 @@ func ExpressionPredicat(expression string) SequencePredicate {
f := func(sequence *BioSequence) bool {
value, err := exp.EvalBool(context.Background(),
map[string]interface{}{
"annot": sequence.Annotations(),
"count": sequence.Count(),
"seqlength": sequence.Len(),
"annotations": sequence.Annotations(),
"sequence": sequence,
},
)