How To A Make Bayesian Tree
How To A Make Bayesian Tree
Let’s start:
Concatenated File Convert it to in ‘nexus’ format Save it to in the same directory as
MrBayes. Open MrBayes.
1. At the MrBayes > prompt, type execute <your file name e.g. primates.nex>. This will bring the data
into the program. When you only give the data file name (primates.nex), MrBayes assumes that the file is
in the current directory. If this is not the case, you have to use the full or relative path to your data file, for
example execute ../examples/primates.nex.
2. At the MrBayes > prompt, type lset nst=6 rates=invgamma. This sets the evolutionary model to the
GTR substitution model with gamma-distributed rate variation across sites and a proportion of invariable
sites.
3. At the MrBayes > prompt, type mcmc ngen=20000 samplefreq=100 printfreq=100 diagnfreq=1000.
This will start the Markov chain Monte Carlo simulation. It will also ensure that you get at least 200
samples from the posterior probability distribution, and that diagnostics are calculated every 1,000
generations. For larger data sets you probably want to run the analysis longer and sample less frequently.
The default sample and print frequency is 500, the default diagnostic frequency is 5,000, and the default
run length is 1,000,000. You can find the predicted remaining time to completion of the analysis in the
last column printed to screen.
4. If the standard deviation of split frequencies is below 0.01 after 20,000 generations, stop the run by
answering no when the program asks Continue the analysis? (yes/no). Otherwise, keep adding
generations until the value falls below 0.01. If you are interested mainly in the well-supported parts of the
tree, a standard deviation below 0.05 may be adequate.
5. Type sump to summarize the
parameter values using the same
burn-in as the diagnostics in the
mcmc command. The program will
output a table with summaries of
the samples of the substitution
model parameters, including the
mean, mode, and 95 % credibility
interval (region of Highest Posterior
Density, HPD) of each parameter.
Make sure that the potential scale
reduction factor (PSRF) is
reasonably close to 1.0 for all
parameters; if not, you need to run
the analysis longer. The same
applies for the effective sample size
(ESS). If the ESSs are somewhere
below 100, you may want to run
longer.
####