toPhylo: nexml to phylo

View source: R/get_trees.R

toPhyloR Documentation

nexml to phylo

Description

nexml to phylo coercion

Usage

toPhylo(tree, otus)

Arguments

tree

an nexml tree element

otus

a character string of taxonomic labels, named by the otu ids. e.g. (from get_otu_maps for the otus set matching the relevant trees node.

Value

phylo object. If a "reconstructions" annotation is found on the edges, return simmap maps slot as well.


ropensci/RNeXML documentation built on Jan. 14, 2023, 4:36 a.m.