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.