createAstralPlane: createAstralPlane

View source: R/createAstralPlane.R

createAstralPlaneR Documentation

createAstralPlane

Description

Function for reading data into the astralPlane format

Usage

createAstralPlane(astral.tree = NULL, outgroups = NULL, tip.length = 1)

Arguments

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

Value

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.

Examples


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)


chutter/AstralPlane documentation built on Aug. 29, 2024, 5:21 p.m.