webR Bioinformatics Demo

This page runs R entirely in your browser using webR. It computes GC content and the reverse complement of a DNA sequence.

These functions come from a local R package (wasmodicR) that is hosted on this repo's GitHub pages, and could be called from any WebR instance. The WASM compilation is achieved through a GitHub Action triggered upon a release.

The output should be the same as https://wasmodic.github.io/webr/ as the only difference is that the functions are from an R package rather than inline.

library(webr)
webr::mount(mountpoint = "/wasmodicR", source = "https://wasmodic.github.io/webr-local/library.data");
libPaths(c(.libPaths(), "/wasmodicR"));
library(wasmodicR)

#exmaples
wasmodicR::wasmodic()
seq_clean <- wasmodicR::clean_seq(rawseq)
gc <- wasmodicR::gc_content(seq_clean)
revseq <- wasmodicR::rev_comp(seq_clean)

Loading webR...

Results

(waiting)