A newer, faster tax2tree that grafts tips. Only returns a phylo objec
tax2phylo(
x,
ranks = c("kingdom", "phylum", "class", "order", "family", "genus", "species"),
depth = "all",
summarise = FALSE,
append_sum = TRUE,
hex = FALSE,
resolve_poly = FALSE
)
a DNAbin object or an object coercible to DNAbin
The taxonomic ranks currently assigned to the names
The depth within the ranks to return. Default all to return lowest input rank
Summarise the number of sequences at depth.
Append the summary number to the output trees tip labels when summarise is TRUE
Convert the accessions to hexadecimal format to avoid newick incompatible characters. Can be reversed with hex2acc
Randomly resolve polytomies in tree using ape::multi2di
. use 'all' to resolve all polytomies, or 'upper' to only resolve upper branches, useful for making constraints trees