mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Stabilize the obipairing output. whant run twice on the same dataset results are identical
This commit is contained in:
@ -122,6 +122,10 @@ func FastShiftFourMer(index [][]int, seq *obiseq.BioSequence, buffer *[]byte) (i
|
||||
if count > maxcount {
|
||||
maxshift = shift
|
||||
maxcount = count
|
||||
} else {
|
||||
if count == maxcount && shift < maxshift {
|
||||
maxshift = shift
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user