View source: R/createAstralPlane.R
createAstralPlane | R Documentation |
Function for reading data into the astralPlane format
createAstralPlane(astral.tree = NULL, outgroups = NULL, tip.length = 1)
astral.tree |
phylogenetic tree from ape read.tree |
outgroups |
a vector of outgroups to root the tree |
tip.length |
arbitrary value for the terminal tip lengths, Astral does not compute this |
an S4 Object of class astralPlane. The object is slotted and contains: 1. Sample names, 2. phylogenetic tree rooted, 3. node.data table of ASTRAL-III node data, 4. edge.data table of ASTRAL-III branch data. All these make ASTRAL-III output readable and easy to use in other functions, or to plot using the astralProjection function.
your.tree = ape::read.tree(file = "file-path-to-tree.tre")
astral.data = astralPlane(astral.tree = your.tree,
outgroups = c("species_one", "species_two"),
tip.length = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.