FastLCS with maxError=-1 is equivalent to FullLCS.

This commit is contained in:
2022-11-16 09:57:36 +01:00
parent 4375dbd9bb
commit f674200a6e
3 changed files with 10 additions and 119 deletions

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