Slices a phylogenetic tree following a 'rootward' orientation
Source:R/squeeze_root.R
squeeze_root.Rd
This function slices a phylogenetic tree in a 'rootward' orientation, starting from the root and moving towards the tips of the tree.
Arguments
- tree
phylo. An ultrametric phylogenetic tree in the "phylo" format.
- time
numeric. A value that determines the time, or accumulated phylogenetic diversity (PD), at which the tree should be cut.
- criterion
character string. The method for cutting the tree. It can be either "my" (million years) or "PD" (accumulated phylogenetic diversity). Default is "my".
- dropNodes
logical. A logical value indicating whether the nodes that were sliced (void nodes, presenting no branch length) should be preserved in the node matrix. Default is FALSE.
Value
The function returns a time-slice of an inputted phylogenetic tree in the "phylo" format, following a 'rootward' orientation.
Details
Slicing approach
The treesliceR package uses a simple approach for cutting phylogenies, which reduces branch lengths in relation to an inputted temporal threshold.
References
See the tutorial on how to use this function on our website.
See also
Other slicing methods: squeeze_tips()
, squeeze_int()
, prune_tips()
, phylo_pieces()
.
Author
Matheus Lima de Araujo matheusaraujolima@live.com