getAllParents: get common parents for a list of taxon IDs

Description Usage Arguments Examples

View source: R/taxonomy.R

Description

Loops over getParents for severals taxon IDs and avoids multiple lineage retrieval operations by passing already found edges to the skip option of the recursive function.

Usage

1
getAllParents(ids, tax, root = "1", names = FALSE, dbug = FALSE)

Arguments

ids

vector of taxon IDs

tax

NCBI taxonomy object

root

taxon ID of the taxonomic class to be considered as root

names

return taxon names instead of ids

dbug

print debug messages

Examples

1
getAllParents(c("1148","1140"), tax)

raim/ncbitax documentation built on Aug. 6, 2020, 7:29 a.m.