Stabilize the obipairing output. whant run twice on the same dataset results are identical

This commit is contained in:
2023-02-05 11:06:31 +01:00
parent a6af0abdd8
commit 4117cbdd08
3 changed files with 33 additions and 22 deletions

View File

@ -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
}
}
}