uid2lineage: Download lineage for NCBI taxonomy ID

Description Usage Arguments Value Examples

View source: R/uid2lineage.R

Description

Uses taxize to download the lineage for given taxon IDs

Usage

1
2
uid2lineage(x, ranks = c("superkingdom", "phylum", "class", "order", "family",
  "genus", "species"))

Arguments

x

Vector of taxa names (character) or IDs (character or numeric) to query. Passed to classification.

ranks

Vector of rank labels for lineage.

Value

A data.frame with the lineage for each supplied taxonomy ID.

Examples

1
2
taxids <-c(39313, 2, 48381, 95953, 4923, 11111, 111111111)
lineage.df <- uid2lineage(taxids)

gwcbi/MetaOmicSet documentation built on May 20, 2019, 5:21 p.m.