FastLCS with maxError=-1 is equivalent to FullLCS.

This commit is contained in:
coissac committed 2022-11-16 09:57:36 +01:00
1 parent 4375dbd9bb
commit f674200a6e
3 files changed
+10 -119

No files matched your search

+4
View File
@@ -69,6 +69,10 @@ func FastLCSScore(seqA, seqB *obiseq.BioSequence, maxError int, buffer *[]uint64
lA, lB = lB, lA
}
if maxError == -1 {
maxError = lA*2
}
delta := lA - lB
// The difference of length is larger the maximum allowed errors