getTree: Get NCBI tree

View source: R/ncbi_taxonomy.R

getTreeR Documentation

Get NCBI tree

Description

getTree returns an annotated phylogenetic tree from NCBI IDs (taxids) based on the NCBI taxonomy.

Usage

getTree(taxids)

Arguments

taxids

Integer vector of NCBI IDs (taxids).

Details

This is a wraper around the ete3 package http://etetoolkit.org/docs/latest/tutorial/tutorial_ncbitaxonomy.html.

Value

A phylogenetic tree (tidytree class object).

Examples


## Not run: 

taxids <- c(9606, 9598, 10090, 7707, 8782)
tree <- getTree(taxids)
class(tree)


## End(Not run)


sdgamboa/ete3r documentation built on Sept. 24, 2022, 7:12 p.m.