| build_ncbi | R Documentation |
Rebuild the NCBI Taxonomy snapshot
build_ncbi(
version = format(Sys.Date(), "%Y"),
archive = NULL,
dir = build_dir(),
db = td_connect()
)
version |
snapshot version to write, e.g. |
archive |
path to the NCBI |
dir |
directory for build inputs and outputs |
db |
a duckdb connection |
NCBI distributes nodes.dmp (the hierarchy) and names.dmp
(every name), in a format that claims to be tab-separated but delimits
fields with \\t|\\t.
Every row of names.dmp carries the tax_id of the accepted taxon,
whatever
the name's class: NCBI mints no separate identifier for a synonym. So the
scientific name rows become the accepted names, carrying a taxonID and
pointing acceptedNameUsageID at themselves, and every other name class
becomes a row for the same taxon with a NULL taxonID – which the
taxadb rules permit, since there is no identifier to give.
the paths written, invisibly
Other build:
build_col(),
build_fishbase(),
build_gbif(),
build_itis(),
build_ott()
## Not run:
build_ncbi("2026")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.