getNamesAndNodes | R Documentation |
Download a taxdump.tar.gz file from NCBI servers and extract the names.dmp and nodes.dmp files from it. These can then be used to create a SQLite database with read.names.sql
and read.nodes.sql
. Note that if the files already exist in the target directory then this function will not redownload them. Delete the files if a fresh download is desired.
getNamesAndNodes(
outDir = ".",
url = sprintf("%s://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz", protocol),
fileNames = c("names.dmp", "nodes.dmp"),
protocol = "ftp",
resume = TRUE
)
outDir |
the directory to put names.dmp and nodes.dmp in |
url |
the url where taxdump.tar.gz is located |
fileNames |
the filenames desired from the tar.gz file |
protocol |
the protocol to be used for downloading. Probably either |
resume |
if TRUE attempt to resume downloading an interrupted file without starting over from the beginning |
a vector of file path strings of the locations of the output files
https://ftp.ncbi.nih.gov/pub/taxonomy/, https://www.ncbi.nlm.nih.gov/Taxonomy/taxonomyhome.html/
read.nodes.sql
, read.names.sql
## Not run:
getNamesAndNodes()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.