Download a nucl_xxx.accession2taxid.gz from NCBI servers. These can then be used to create a SQLite datanase with read.accession2taxid
. 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 the accession2taxid.gz files in
- baseUrl
the url of the directory where accession2taxid.gz files are located
- types
the types if accession2taxid.gz files desired where type is the prefix of xxx.accession2taxid.gz. The default is to download all nucl_ accessions. For protein accessions, try
types=c('prot')
.- protocol
the protocol to be used for downloading. Probably either
'http'
or'ftp'
. Overridden ifbaseUrl
is provided directly- resume
if TRUE attempt to resume downloading an interrupted file without starting over from the beginning