normalize_tree: Normalizes branch lengths to a unit tree height

Description Usage Arguments Value

View source: R/tools.R

Description

Normalizes all branch lengths including the root.edge if presents by the same factor, so that the distance from the root to all tips is equal to one.

Usage

1
normalize_tree(tree, check.ultrametric = TRUE)

Arguments

tree

ultrametric tree of class phylo with branch lengths, and edges in postorder.

check.ultrametric

logical. If TRUE, it checks if the input tree is ultrametric.

Value

normalized phylogenetic tree, of class phylo.


khabbazian/l1ou documentation built on July 30, 2018, 12:05 p.m.