mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 16:50:27 +00:00
FastLCS with maxError=-1 is equivalent to FullLCS.
This commit is contained in:
@@ -28,11 +28,16 @@ func IndexSequence(seqidx int,
|
||||
var matrix []uint64
|
||||
|
||||
score := make([]int, len(references))
|
||||
// t := 0
|
||||
// r := 0
|
||||
// w := 0
|
||||
for i, ref := range references {
|
||||
lcs, alilength := obialign.FastLCSScore(sequence, ref, goutils.MaxInt(sequence.Length(), ref.Length())+5, &matrix)
|
||||
lcs, alilength := obialign.FastLCSScore(sequence, ref, -1 , &matrix)
|
||||
score[i] = alilength - lcs
|
||||
}
|
||||
|
||||
// log.Println("Redone : ",r,"/",t,"(",w,")")
|
||||
|
||||
o := goutils.IntOrder(score)
|
||||
|
||||
current_taxid, err := taxo.Taxon(references[o[0]].Taxid())
|
||||
|
||||
Reference in New Issue
Block a user