UNPKG

scran.js

Version:

Single cell RNA-seq analysis in Javascript

20 lines (15 loc) 476 B
import * as wasm from "../wasm.js"; export function writeFile(path, buffer) { wasm.call(module => module.FS.writeFile(path, buffer)); return; } export function readFile(path) { return wasm.call(module => module.FS.readFile(path, { encoding: 'binary' })); } export function removeFile(path) { wasm.call(module => module.FS.unlink(path)); return; } export function existsFile(path) { return wasm.call(module => module.FS.analyzePath(path).exists); }