This function is intended to prepare XML files for BEAST with R. BEAST uses an MCMC approach to estimate rooted phylogenies from molecular data (Drummond & Rambaut, 2007).
An object of class
A connection, or a character string naming the file to write to. If left empty the XML tree will be printed to the screen (see Examples).
A list containing one or more taxon sets.
rbeauti has been completely rewritten to work with BEAST 2. Currently
rbeauti offers few options, because the idea is not to create ready-to-use XML file. That can be done convieniently with BEAUti (the BEAST package's genuine XML generator). Instead,
rbeauti is intended to make the definition of large numbers of taxon sets easy. The creation of taxon sets can be done via R scripts and the resulting XML files can be further modified with BEAUti.
The BEAST 2 website: http://beast.bio.ed.ac.uk/BEAST_v1.5.x_XML_Reference
Drummond, A.J. & A. Rambaut. 2007. BEAST: Bayesian evolutionary analysis by sampling trees. BMC Evolutionary Biology 7: 240.
1 2 3 4 5 6 7 8 9 10 11
data(ips.16S) ## define taxon sets spec <- rownames(ips.16S) ingroup <- spec[grep("Ips|Orthomotomicus", spec)] outgroup <- spec[grep("Pityogenes", spec)] ts <- list(list(id = "ingroup", taxon = ingroup), list(id = "outgroup", taxon = outgroup)) ## print XML file to screen rbeauti(ips.16S, taxonset = ts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.