remove imports,

switch to opt=s,
add debug index.html
This commit is contained in:
=
2025-09-30 17:41:14 +00:00
parent 8ccb45748d
commit c94a7902c0
5 changed files with 53 additions and 28 deletions

View File

@@ -1,9 +1,5 @@
package wfa
import (
"strings"
)
// WFAlign takes strings s1, s2, penalties, and returns the score and CIGAR if doCIGAR is true
func WFAlign(s1 string, s2 string, penalties Penalty, doCIGAR bool) Result {
n := len(s1)
@@ -189,11 +185,11 @@ func WFBacktrace(M *WavefrontComponent, I *WavefrontComponent, D *WavefrontCompo
}
}
CIGAR := strings.Builder{}
CIGAR := ""
for i := len(Ops) - 1; i > 0; i-- {
CIGAR.WriteString(UIntToString(Counts[i]))
CIGAR.WriteRune(Ops[i])
CIGAR += UIntToString(Counts[i])
CIGAR += string(Ops[i])
}
return CIGAR.String()
return CIGAR
}