read_names_dmp: Read and write the names.dmp

View source: R/dmpfiles.R

read_names_dmpR Documentation

Read and write the names.dmp

Description

Reads and writes the file names.dmp of the NCBI Taxonomy

Usage

read_names_dmp(filename)
write_names_dmp(names.dmp, filename)

Arguments

filename

name of file to be read or written to (text).

names.dmp

a names.dmp table (see details below).

Details

The file pair names.dmp and nodes.dmp describe a taxonomy tree. The read_names_dmp reads a file formatted as the names.dmp file from the NCBI Taxonomy database (https://www.ncbi.nlm.nih.gov/taxonomy/). This is represented as a tibble in R.

The write_names_dmp will write a table with the proper columns (see below) to a file, adding the separators of the NCBI format.

Value

The read_names_dmp returns a tibble with the columns: tax_id (integers), name_txt (text), unique_name (text) and name_class (text).

Author(s)

Lars Snipen.

See Also

read_nodes_dmp.


larssnip/microclass documentation built on Nov. 1, 2023, 2:39 p.m.