How To Retrieve A .Fastaq File From Sra Using Wget? (And Not Aspera)
3
8
Entering edit mode
13.8 years ago
Marina Manrique ★ 1.3k

Hi!

I'd like to download a .sra file containing the fastq files for an experiment in the SRA using the wget command. I've been looking for an url to download the files but all I've found is this:

fasp://anonftp@ftp-private.ncbi.nlm.nih.gov:22/sra/sra-instant/reads/ByRun/sra/SRR/SRR001/SRR001115/SRR001115.sra/?auth=no&port=33001&bwcap=300000&targetrate=100p&policy=fair&enc=none&lockpolicy=no&locktargetrate=no&lockminrate=no&v=2

that means using Aspera

Anyone knows if I can download the file connecting via FTP or if there's any other way?

Thanks,

marina

sra fastq retrieval • 29k views
ADD COMMENT
0
Entering edit mode

Thanks for the edition Daniel, I forgot to add more tags

ADD REPLY
8
Entering edit mode
13.8 years ago

Hi, Marina.

The ftp site is here:

ftp://ftp-trace.ncbi.nih.gov/sra/sra-instant

You may want to read some of the details here:

http://www.ncbi.nlm.nih.gov/books/NBK47540/

Hope that helps answer some questions.

Sean

ADD COMMENT
1
Entering edit mode

Your link is broken. Here is a new, working link (24 Nov 2014): http://www.ncbi.nlm.nih.gov/books/NBK158900/

ADD REPLY
6
Entering edit mode
13.8 years ago
User 59 13k

Tip of the hat to Sean, because I looked for it earlier and didn't find it but the equivalent FTP URL for your query is:

ftp://ftp-trace.ncbi.nih.gov/sra/sra-instant/reads/ByRun/sra/SRR/SRR001/SRR001115/

so:

wget ftp://ftp-trace.ncbi.nih.gov/sra/sra-instant/reads/ByRun/sra/SRR/SRR001/SRR001115/SRR001115.sra

should do the trick. You need to do the SRA->FASTQ conversion though on the data. The links to the tools, and example command line instructions are in the Download document that Sean linked to.

ADD COMMENT
0
Entering edit mode

Thanks Daniel, just to let people know where to find the info for SRA -> FASTQ conversion http://www.ncbi.nlm.nih.gov/books/NBK47540/#SRA_Download_Guid_B.5_Converting_SRA_for

ADD REPLY
0
Entering edit mode

@Marina - I had a run-in with this documentation recently, which needs substantial updating... see more here: How To Convert Sra-Lite Paired-End Submission To Fastq?

ADD REPLY
1
Entering edit mode
13.3 years ago

Try wget on the following URL template:

http://trace.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?cmd=dload&run_list=SRRXXXXX&format=fastq

e.g.

wget -O SRR026674.fastq.gz "http://trace.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?cmd=dload&run_list=SRR026674&format=fastq"

Note: this has horribly slow (~50K/s) download speed, so I would not recommend this for very big files (which effectively all files in SRA are).

Credits: Hat-tip to Stephen Taylor for this via the Galaxy developer's list

ADD COMMENT

Login before adding your answer.

Traffic: 2399 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6