ncbi / sra-tools

SRA Tools
Other
1.07k stars 243 forks source link

prefetch not downloading phenotype files with SRA toolkit v3.0.7 #873

Closed kevin198930 closed 4 months ago

kevin198930 commented 8 months ago

Hi, I'm trying to download phenotype data files from dbGap using the prefetch tool but haven't had any success.

Command: /Users/ks/sratoolkit.3.0.7-win64/bin/prefetch --ngc my_ngc_file.ngc my_cart_file.krt

Checking sizes of kart files... Output: 2023-11-03T01:45:29 prefetch.3.0.7: Current preference is set to retrieve SRA Normalized Format files with full base quality scores.

Nothing is downloaded and I'm using the latest SRA toolkit version 3.0.7. It's only about 1.5 MB of data. I've seen the same problem in other posts but no solution was presented, only to try an earlier version of SRA toolkit. However, that hasn't worked for me and I noticed another user in post #744 also had no success with the earlier version. I was wondering if there are any new solutions to solve this issue. Thanks.

stineaj commented 8 months ago

Are you using a windows operating system? The paths being given use slashes that suggest this is a unix environment instead. If you are using a ubuntu or similar virtual machine within your windows computer you should attempt using the version of the toolkit that most closely matches the unix version you are using.

kevin198930 commented 8 months ago

I am using Windows Powershell. The command part has the C: syntax left out in my post, but the actual command that led to no files being downloaded does include the C: syntax. The correct syntax that I used in power shell is below:

Command: C:\Users\ks\sratoolkit.3.0.7-win64\bin\prefetch --ngc my_ngc_file.ngc my_cart_file.krt

Checking sizes of kart files... Output: 2023-11-03T01:45:29 prefetch.3.0.7: Current preference is set to retrieve SRA Normalized Format files with full base quality scores.

akhilpampana commented 7 months ago

I just want to followup to see if this issue has been resolved. I am also facing the same issue and am not sure how to fix it. I have been using Linux version of the dataset and still having issues with the download.

klymenko commented 7 months ago

@kevin198930, what is the output of the following: curl https://locate.ncbi.nlm.nih.gov/sdl/2/retrieve?acc=SRR000001

akhilpampana commented 7 months ago

Hello, The issue was resolved with the updated version of prefetch and Ascp. Thank you so much for the help.

kevin198930 commented 7 months ago

Do you mean an updated version of prefetch and Ascp within SRA toolkit v3.0.7? Or is a different version of SRA toolkit required? I am using SRA toolkit v3.0.7 and prefetch is not downloading the files.

akhilpampana commented 7 months ago

An updated version of ascp resolved the issue with the SRA toolkit v3.0.7

kevin198930 commented 7 months ago

Thanks, could you share a link to where to download ascp as a standalone file because I already have SRA toolkit v3.0.7 downloaded. Also, according to this post by SRA-Toolkit, only prefetch should be used to download kart files and not ascp. Since I am trying to download the contents of a kart file, I don't know if ascp would be applicable?

https://github.com/ncbi/sra-tools/wiki/HowTo:-Access-SRA-Data

klymenko commented 7 months ago

@kevin198930, ascp download is not supported anymore.

kevin198930 commented 5 months ago

I wanted to follow up to see if anyone has a working solution to this issue?

klymenko commented 5 months ago

What is the output of the following: curl https://locate.ncbi.nlm.nih.gov/sdl/2/retrieve?acc=SRR000001

kevin198930 commented 5 months ago

Thanks, the output is the following:

PS C:\Users\ks> curl https://locate.ncbi.nlm.nih.gov/sdl/2/retrieve?acc=SRR000001 curl : <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

ERROR: The requested URL could not be retrieved

ERROR

The requested URL could not be retrieved


The following error was encountered while trying to retrieve the URL: https://locate.ncbi.nlm.nih.gov/*

Access Denied.

Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.

Your cache administrator is root.



At line:1 char:1

klymenko commented 5 months ago

See https://github.com/ncbi/sra-tools/wiki/Firewall-and-Routing-Information

lxzzzzzzzzzzzzzzzzzzzz commented 4 months ago

I also encountered the same problem, may I ask whether it was finally solved.