Closed zmertens closed 6 years ago
This change is an experimental JavaScript DAWG module (see dawg_walker.js for sanity checks). You can run dawg.js as a module in node:
dawg_walker.js
dawg.js
var dawg = require('./dawg.js'); console.log(Module.getRnaSequence("jc", root_length=100));
The library is generated using Emscripten which uses Embind which is inspired by Boost.Python. See the build_dawgjs.sh for commands.
build_dawgjs.sh
This module is asm.js compatabile, there is an option to use WebAssembly using -s WASM=1 or whatever, which I haven't tried.
asm.js
-s WASM=1
The dawg.js module can be used in HTML as well, but not using require. Instead, there's a global Module. For example:
require
<script> console.log(Module.getRnaSequence("jc", root_length=100)); </script>
Can one of the admins verify this patch?
This change is an experimental JavaScript DAWG module (see
dawg_walker.js
for sanity checks). You can rundawg.js
as a module in node:The library is generated using Emscripten which uses Embind which is inspired by Boost.Python. See the
build_dawgjs.sh
for commands.This module is
asm.js
compatabile, there is an option to use WebAssembly using-s WASM=1
or whatever, which I haven't tried.The
dawg.js
module can be used in HTML as well, but not usingrequire
. Instead, there's a global Module. For example: