extract_taxlevel: Extract the desired ancestry level of a list of taxonomy IDs

Description Usage Arguments Value

View source: R/extract_taxlevel.R

Description

Extract the desired ancestry level of a list of taxonomy IDs

Usage

1
extract_taxlevel(taxIDs, taxlevel, nodes)

Arguments

taxIDs

vector of taxonomy IDs of interest

taxlevel

desired taxonomic level to be extracted (e.g., '"order"')

nodes

data.frame containing the pre-processed information about the NCBI taxonomy structure. This can be generated, e.g., by using [get_counts()], or as object '$nodes' of a 'taxonsampling' object.

Value

Data frame containing the taxonomy IDs of interest and a column with the corresponding taxonomy IDs of their desired ancestry level.


fcampelo/TaxonSampling documentation built on Jan. 29, 2022, 7:11 a.m.