id2name: Get taxon names for a list of taxon IDs

View source: R/createTaxonomyMatrix.R

id2nameR Documentation

Get taxon names for a list of taxon IDs

Description

Get taxon names for a list of taxon IDs

Usage

id2name(idList = NULL, currentNCBIinfo = NULL)

Arguments

idList

list of taxonomy IDs

currentNCBIinfo

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

Value

A dataframe contains input taxon Ids and their full names.

Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

Examples

ncbiFilein <- system.file(
    "extdata", "data/preProcessedTaxonomy.txt",
    package = "PhyloProfile", mustWork = TRUE
)
currentNCBIinfo <- as.data.frame(data.table::fread(ncbiFilein))
idList <- c("9606", "5207", "40674", "4751")
id2name(idList, currentNCBIinfo)

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