getAccession2taxid: Download accession2taxid files from NCBI
Description
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.
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').
Value
a vector of file path strings of the locations of the output files