Learn R Programming

RNeXML (version 2.4.11)

toPhylo: nexml to phylo

Description

nexml to phylo coercion

Usage

toPhylo(tree, otus)

Value

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

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.