The method of rooting trees described in the post “Unifrac and Tree Roots” is now included in QsRutils
beginning with version 0.3.2 as function root_phyloseq_tree
. Given a phyloseq object with an unrooted tree, it returns the same type of phyloseq
object with the tree rooted by the longest terminal branch.