This function roots a phylogenetic tree object by it's longest edge.

root_by_longest_edge(unrooted_tree)

Arguments

unrooted_tree

An unrooted phylogenetic tree object.

Value

A rooted phlogenetic tree object.

Details

Please see this issue for more details https://github.com/joey711/phyloseq/issues/597.

See also

root pick_new_outgroup

Other Phylogenetic Tree Manipulators: pick_new_outgroup, root_phyloseq_tree