taxdumpMRCA: Utilities for NCBI Taxdump

Description Usage Arguments Value See Also

View source: R/taxdumpMRCA.R

Description

Get most-recent common ancestor (MRCA) of a group of species.

Usage

1
taxdumpMRCA(x, species, tip.rank)

Arguments

x

Either an object of class megapteraProj or a data frame containing a taxonomy table in parent-child format as returned by dbReadTaxonomy.

species

A vector of mode "character" giving the species names. Can be missing, in which case the root is returned.

tip.rank

A character string giving the name a rank.

Value

A character string giving the name a the MRCA.

See Also

ncbiTaxonomy for downloading the NCBI taxonomy and dbReadTaxonomy for reading the project taxonomy; other taxdump-related tools: taxdumpAddNode, taxdumpChildren, taxdumpDropTip, taxdumpHigherRank, taxdumpSubset, taxdump2phylo and taxdump_isTerminal.


heibl/megaptera documentation built on Jan. 17, 2021, 3:34 a.m.