taxdumpAddNode: Utilities for NCBI Taxdump

Description Usage Arguments Details Value See Also

View source: R/taxdumpAddNode.R

Description

Insert a taxon as new node to the NCBI taxonomy.

Usage

1
taxdumpAddNode(x, tab, rank = "species", taxon, parent)

Arguments

x

An object of class megapteraProj or a data frame in parent-child format.

tab

A data frame in parent-child format.

rank

A character string giving the rank of the new taxon, default is "species".

taxon

A character string giving the name of the new taxon.

parent

A character string giving the name of the parent taxon.

Details

taxdumpAddNode can be used in two ways: (1) If x is an object of class "megapteraProj", the changes are made in the underlying postgreSQL database and TRUE or FALSE is returned indicating success or failure. (2) If x is a data frame in parent-child format, the changes are made to this table, which is then returned; in case of failure a warning is issued and the unchanged table is returned.

Value

See Details section.

See Also

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


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