tax2phylo: converts an NCBI taxonomy object to an 'ape::phylo' tree

Description Usage Arguments Examples

View source: R/taxonomy.R

Description

converts an NCBI taxonomy object to an ape::phylo tree

Usage

1
tax2phylo(tax, root = "1", names = FALSE, order = FALSE)

Arguments

tax

NCBI taxonomy object

root

taxon ID of the taxonomic class to be considered as root

names

replace taxon IDs by names

order

order edges, required for attribute "cladewise" of the returned ape::phylo tree

Examples

1
2
phy <- tax2phylo(tax, root="1890428", order=TRUE, names=TRUE)
ape::plot.phylo(phy)

raim/ncbitax documentation built on Aug. 6, 2020, 7:29 a.m.