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

This commit is contained in:
coissac committed 2023-02-05 11:06:31 +01:00
1 parent a6af0abdd8
commit 4117cbdd08
3 files changed
+33 -22

No files matched your search

+4
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
}
}
}