Go to file
2024-11-12 19:04:02 +00:00
pkg remove unused PositiveSlice Preallocate 2024-11-12 19:04:02 +00:00
test optimize build size by avoiding fmt, 2024-11-12 18:44:12 +00:00
.gitignore rewrite in go and compile to wasm 2024-10-24 18:07:10 +00:00
go.mod optimize build size by avoiding fmt, 2024-11-12 18:44:12 +00:00
main.go optimize build size by avoiding fmt, 2024-11-12 18:44:12 +00:00
Makefile fix issue in WFBacktrace and change format to proper CIGAR, 2024-11-07 19:01:01 +00:00
README.md update README 2024-11-08 22:49:37 +00:00
wfa.js implement missing finalizeRef implementation from go wasm_exec.js 2024-11-01 17:23:04 +00:00

Using WFA-JS

Download wfa.js and wfa.wasmfrom releases to your project. Add to your script:

import wfa from "./wfa.js"
await wfa("<path to wasm>")
let result = wfAlign(...)
operations = DecodeCIGAR(result.CIGAR)
// ...

Where <path to wasm> is the path from the site root ie. ./scripts/wfa.wasm. This will depend on your project structure.