2024-10-24 18:29:50 +00:00
|
|
|
# Using WFA-JS
|
|
|
|
|
|
|
|
Download `wfa.js` and `wfa.wasm`from [releases](https://git.tronnet.net/tronnet/WFA-JS/releases) to your project. Add to your script:
|
|
|
|
|
|
|
|
```
|
|
|
|
import wfa from "./wfa.js"
|
|
|
|
await wfa("<path to wasm>")
|
2024-11-08 22:49:37 +00:00
|
|
|
let result = wfAlign(...)
|
|
|
|
operations = DecodeCIGAR(result.CIGAR)
|
|
|
|
// ...
|
2024-10-24 18:29:50 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Where `<path to wasm>` is the path from the site root ie. `./scripts/wfa.wasm`. This will depend on your project structure.
|