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.
Arguments
- 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
'http'
or'ftp'
. Overridden ifurl
is provided directly- resume
if TRUE attempt to resume downloading an interrupted file without starting over from the beginning
References
https://ftp.ncbi.nih.gov/pub/taxonomy/, https://www.ncbi.nlm.nih.gov/Taxonomy/taxonomyhome.html/