MrBayes
MrBayes is a program for the Bayesian estimation of phylogeny.
Bayesian inference of phylogeny is based upon a quantity called the posterior probability distribution of trees, which is the probability of a tree conditioned on the observations.
The conditioning is accomplished using Bayes’s theorem. The posterior probability distribution of trees is impossible to calculate analytically; instead, MrBayes uses a simulation technique called Markov Chain Monte Carlo (or MCMC) to approximate the posterior probabilities of trees.
Usage
Basic steps
There are four steps to a typical Bayesian phylogenetic analysis using MrBayes:
- Read the Nexus data file
- Set the evolutionary model
- Run the analysis
- Summarize the samples
Example
The common begin of nex file for analysis is
and the end of file
Lines at the and (sump
and sumt
) are mostly necessary for 3.2 version, because they summarize the results.
Usage with Parallel
If you need to run more MrBayes runs in parallel (for example for more genes separately), one of possibilities is use of Parallel, which is library allowing user to launch more parallel processes on more CPU cores or computers. Basic use can look like this:
Parameter -j 10
says to use 10 CPU cores. See manual of the function. Remaining commands produce nice logs with time stamps.
Example:
Last updated on