ycl6 / 16S-rDNA-V3-V4

16S rDNA V3-V4 amplicon sequencing analysis using dada2, phyloseq, LEfSe, picrust2 and other tools. Demo: https://ycl6.github.io/16S-Demo/
GNU General Public License v3.0
33 stars 18 forks source link

How to best root the tree #4

Open ycl6 opened 2 years ago

ycl6 commented 2 years ago

The current practice is to randomly pick a taxa (with sample) and assign it as outgroup. There have been suggestions to do this differently. Need to re-visit this when free.

phy_tree(ps) <- root(phy_tree(ps), sample(taxa_names(ps), 1), resolve.root = TRUE)