getAncestor: get lowest common ancestor

Description Usage Arguments Examples

View source: R/taxonomy.R

Description

retrieves the lowest common ancestor

Usage

1
getAncestor(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
getAncestor(ids=c("1148","1140"), tax)

raim/ncbitax documentation built on Nov. 5, 2019, 2:08 a.m.