MrBayes WASM

About the tool

MrBayes is a command-line tool used to perform Bayesian phylogenetic analysis. It is written in C and is usually compiled to run as a native executable.

I've compiled MrBayes 3.2.7a to WebAssembly (WASM) using Emscripten so that it can be run in the browser. The demo below shows the compiled version of MrBayes running in the browser.

Both the interactive and batch modes are supported. To run MrBayes in interactive mode, run the mb command without any arguments. To run MrBayes in batch mode on file batch.txt, run mb batch.txt.

When running in interactive mode, you can use the help command to see the list of available commands.

I've included the primates.nex and batch.txt files from MrBayes' official examples in the virtual environment below. It may be useful to first examine these files using the built-in text editor before running MrBayes.

This browser-based version of MrBayes is perfect for trying it out without having to install anything on your computer. In fact, you can even use it on your phone which makes it very convenient to quickly run MrBayes on the go.

Demo

WASM shell
Select a file to view or edit.

See also

A WASM port of the BLAST sequence alignment tool.
BLAST, WASM, bioinformatics
A WASM port of the MUSCLE sequence alignment tool.
MUSCLE, WASM, bioinformatics
Running RDKit in the browser with WebAssembly.
RDKit, WASM, cheminformatics, chemistry
A WASM port of Phonetisaurus.
IPA, g2p, WASM
A WASM port of Ghostscript.
Ghostscript, WASM, PostScript, PDF
A WASM port of Metafont.
Metafont, WASM, fonts, TeX
How progressive alignment makes it possible to efficiently align hundreds to thousands of large genomes.
bioinformatics
A WASM port of Asymptote.
Asymptote, WASM, vector graphics
Convert FASTQ files to FASTA format.
FASTQ, FASTA, bioinformatics
Generating a complete human genome sequence, chromosome by chromosome.
bioinformatics, genomics
A list of software compiled to/ported to WebAssembly/JavaScript.
WASM
A WASM port of the FreeType library.
FreeType, WASM, fonts

Made by Anton Vasetenkov.

If you want to say hi, you can reach me on LinkedIn or via email. If you like my work, you can support me by buying me a coffee.