R/GenerateTree.R

Defines functions GenerateTree

# Function to generate and plot a taxonomic tree
GenerateTree <- function(taxonIds, db = "ncbi") {
  taxize_class <- taxize::classification(taxonIds, db = db)
  taxize_tree  <- taxize::class2tree(taxize_class, check = TRUE)
  # taxize::plot.classtree(taxize_tree)
  invisible(taxize_tree)
}

Try the CALANGO package in your browser

Any scripts or data that you put into this service are public.

CALANGO documentation built on April 26, 2023, 5:13 p.m.