WFA-JS/README.md
2024-11-08 22:49:37 +00:00

410 B

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.