allind / EukDetect

MIT License
40 stars 15 forks source link

Unable download EukDetect database from Figshare #33

Open Liuyuxinn opened 1 year ago

Liuyuxinn commented 1 year ago

Hey @allind I tried to install eukdetect but when I want download EukDetect database from Figshare: (run this command): wget https://ndownloader.figshare.com/files/34885596 it gave an error saying: Connecting to ndownloader.figshare.com (ndownloader.figshare.com)|54.217.124.219|:443... connected. HTTP request sent, awaiting response... 403 Forbidden ERROR 403: Forbidden

Can you figure out what the problem is and how can this be resolved?

Thanks in Advance

allind commented 1 year ago

Thanks for reaching out. Try directly downloading the database (most recent is version 9) from this link: https://figshare.com/articles/dataset/Eukdetect_database/12670856

Liuyuxinn commented 1 year ago

Thanks for the quick reply! I try directly downloading the database (most recent is version 9) from this link: https://figshare.com/articles/dataset/Eukdetect_database/12670856

However,when I run: tar -zxvf 12670856 , it gave an error saying: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now

Can you figure out what the problem is and how can this be resolved?

Thanks in Advance

allind commented 1 year ago

When you download the database directly instead of with ndownloader, it'll be called something different (eukdetect_database_metarch_v2.tar.gz). Untar that file, not 12670856.

Liuyuxinn commented 1 year ago

Thanks for the quick reply! I run this command:(try to download the database) wget -c https://figshare.com/articles/dataset/Eukdetect_database/12670856/eukdetect_database_metarch_v2.tar.gz it gave an error saying:

https://figshare.com/articles/dataset/Eukdetect_database/12670856/eukdetect_database_metarch_v2.tar.gz Resolving figshare.com (figshare.com)... 52.30.99.27, 34.255.229.146, 2a05:d018:1f4:d000:ef94:2d4e:653d:e414, ... Connecting to figshare.com (figshare.com)|52.30.99.27|:443... connected. HTTP request sent, awaiting response... 404 Not Found ERROR 404: Not Found.

Can you figure out what the problem is and how can this be resolved?

Thanks in Advance

Liuyuxinn commented 1 year ago

When I try to open this file(eukdetect_database_metarch_v2.tar.gz) directly,it showed 403 Forbidden. Can you figure out what the problem is and how can this be resolved?

Thanks in Advance

allind commented 1 year ago

I'm not entirely clear what you're attempting - so here's a guide for how you should download the file.

Go to the figshare link (https://figshare.com/articles/dataset/Eukdetect_database/12670856), click the "Download" button, and you should end up downloading the file "eukdetect_database_metarch_v2.tar.gz". If you need to transfer this file to a server, do that however you normally would. Then, from a command line window, navigate to the location of the file, and run tar -zxf eukdetect_database_metarch_v2.tar.gz.

Liuyuxinn commented 1 year ago

When I went to the figshare link (https://figshare.com/articles/dataset/Eukdetect_database/12670856), click the "Download" button, and tried to open the file "eukdetect_database_metarch_v2.tar.gz" directly,it showed 403 Forbidden. Can you figure out what the problem is and how can this be resolved?

Thanks in Advance

allind commented 1 year ago

You're not going to be able to open the file directly because it is a compressed folder of multiple files, and needs to be both unzipped and untarred. You can do this from the command line with the command tar -zxf eukdetect_database_metarch_v2.tar.gz from wherever you've saved the file.

Liuyuxinn commented 1 year ago

I can't download this file "eukdetect_database_metarch_v2.tar.gz" to my computer directly,it showed 403 Forbidden. Can you figure out what the problem is and how can this be resolved?

Thanks in Advance

pbradz commented 1 year ago

Hi @Liuyuxinn, what happens if you do: wget https://figshare.com/ndownloader/files/34885596 directly from the command line? This is working for me.

If it's still not working, it's possible that your IP is in a range that's being blocked by either Figshare or Amazon AWS (where the link redirects). One idea is to try again later, as it might be just a temporary block. You could also try to download the file from another network: for example, if this is your home internet connection you could try to ssh to a server at work and download the file there, or vice versa. If you have access to a VPN, that's potentially another option.