ReadMrBayesTrees | R Documentation |
Read posterior trees from 'MrBayes' output files, discarding burn-in generations.
ReadMrBayesTrees(filepath, n = NULL, burninFrac = NULL)
ReadMrBayes(filepath, n = NULL, burninFrac = NULL)
MrBayesTrees(filepath, n = NULL, burninFrac = NULL)
filepath |
character string specifying path to |
n |
Integer specifying number of trees to sample from posterior. |
burninFrac |
Fraction of trees to discard from each run as burn-in.
If |
ReadMrBayesTrees()
samples trees from the posterior distributions
computed using the Bayesian inference software 'MrBayes'
ReadMrBayesTrees()
returns a 'multiPhylo' object containing
n
trees sampled evenly from all runs generated by analysis of filepath
,
or NULL
if no trees are found.
Martin R. Smith (martin.smith@durham.ac.uk)
Other tree import functions:
ReadTntTree()
## Not run: # Download will take a few seconds
url <-
"https://raw.githubusercontent.com/ms609/hyoliths/master/MrBayes/hyo.nex"
trees <- ReadMrBayesTrees(url, n = 40)
plot(Consensus(trees, p = 0.5))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.