mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
add min and max to the obitools expression language
This commit is contained in:
@ -268,7 +268,11 @@ func (marker *Marker) CheckTagLength() error {
|
||||
reverse_length[len(tags.Reverse)]++
|
||||
}
|
||||
|
||||
maxfl, _ := obiutils.MaxMap(forward_length)
|
||||
maxfl, _, err := obiutils.MaxMap(forward_length)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if len(forward_length) > 1 {
|
||||
others := make([]int, 0)
|
||||
@ -280,7 +284,11 @@ func (marker *Marker) CheckTagLength() error {
|
||||
return fmt.Errorf("forward tag length %d is not the same for all the PCRs : %v", maxfl, others)
|
||||
}
|
||||
|
||||
maxrl, _ := obiutils.MaxMap(reverse_length)
|
||||
maxrl, _, err := obiutils.MaxMap(reverse_length)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if len(reverse_length) > 1 {
|
||||
others := make([]int, 0)
|
||||
|
Reference in New Issue
Block a user