Description Usage Arguments Value Author(s) See Also Examples
View source: R/root_tree_in_outgroup.R
This funtion defines the leaf with the longest path as the root of the phylogenetic tree. This makes results reproducible by avoiding the behaviour of some functions that would otherwise pick a random leaf as the root of an unrooted phylogenetic tree. Based on answers in https://github.com/joey711/phyloseq/issues/597. The function requires the packages 'ape' and 'data.table' to be installed.
1 | root_tree_in_outgroup(physeq = ps)
|
physeq |
a phyloseq object containing a phylogenetic tree to be rooted in an outgroup. |
a rooted phylogenetic tree.
Simeon Rossmann
Discussion and answers in [related GitHub thread](https://github.com/joey711/phyloseq/issues/597)
1 | phyloseq::phy_tree(ps) <- root_tree_in_outgroup(physeq = ps)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.