Description Usage Arguments Details Value See Also
View source: R/taxdumpAddNode.R
Insert a taxon as new node to the NCBI taxonomy.
1 | taxdumpAddNode(x, tab, rank = "species", taxon, parent)
|
x |
An object of class |
tab |
A data frame in parent-child format. |
rank |
A character string giving the rank of the new taxon, default is
|
taxon |
A character string giving the name of the new taxon. |
parent |
A character string giving the name of the parent taxon. |
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.
See Details section.
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.