getTaxonomyInfo: Get taxonomy info for a list of input taxa

View source: R/createTaxonomyMatrix.R

getTaxonomyInfoR Documentation

Get taxonomy info for a list of input taxa

Description

Get taxonomy info for a list of input taxa

Usage

getTaxonomyInfo(inputTaxa = NULL, currentNCBIinfo = NULL)

Arguments

inputTaxa

NCBI taxonomy IDs of input taxa.

currentNCBIinfo

table/dataframe of the pre-processed NCBI taxonomy data (/PhyloProfile/data/preProcessedTaxonomy.txt)

Value

A list of NCBI taxonomy info for input taxa, including the taxonomy IDs, full scientific names, taxonomy ranks and the parent IDs.

Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

Examples

inputTaxa <- c("272557", "176299")
ncbiFilein <- system.file(
    "extdata", "data/preProcessedTaxonomy.txt",
    package = "PhyloProfile", mustWork = TRUE
)
currentNCBIinfo <- as.data.frame(data.table::fread(ncbiFilein))
getTaxonomyInfo(inputTaxa, currentNCBIinfo)

BIONF/PhyloProfile documentation built on Dec. 18, 2024, 7:33 a.m.