sherrillmix / taxonomizr

Parse NCBI taxonomy and accessions to find taxonomic assignments
GNU General Public License v2.0
69 stars 10 forks source link

Download failed with error: "FTP response timeout". #67

Closed castle-ah closed 1 week ago

castle-ah commented 1 month ago

Hi,

I am having trouble with downloading database using this code > prepareDatabase('accessionTaxa.sql',types='prot')

The error message is as follows:

Downloading names and nodes with getNamesAndNodes()
Download status: 1 done; 0 in progress. Total size: 62.73 Mb (100%)... done!             
Downloaded file: ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz
Modified: 2024-07-30 09:29:25
Status: 226
Preprocessing names with read.names.sql()
Preprocessing nodes with read.nodes.sql()
Downloading accession2taxid with getAccession2taxid()
This can be a big (several gigabytes) download. Please be patient and use a fast connection.
Download status: 1 done; 0 in progress. Total size: 9157.39 Mb (100%)... done!             
An error occurred in resumableDownload(xx, yy, resume = resume):
  Download failed with error: "FTP response timeout". Progress is saved in ./prot.accession2taxid.gz.__TMP__ and continued download can be attempted by repeating the previous command.
Delete ./prot.accession2taxid.gz.__TMP__ or set resume=FALSE to start from scratch.

I deleted the downloaded file and tried again about 3 times, but the same situation comes up.

What can i do?

Thanks

sherrillmix commented 1 month ago

Hmm this sort of problem usually ends up being a hiccup with internet or (rarely) the NCBI site e.g. I just tried to download with the above command and didn't run into any issues. A few options:

Let me know if none of those work.