How do i use aspera or wget to download the SRA files in bulk either by RUN/Sample/Experiemts. My SRA ID list contains IDs from Exp (SRX) Run(SRR/ERR) and samples as well. I tried prefetch from sratoolkit:
prefetch --list ../XDR_169_ids.txt
XDR_169_ids.txt:
SRS551840
ERR688040
ERR688041
SRS551807
ERR688042
ERR688043
ERR688044
ERR688045
ERR688046
ERR688047
ERR688048
SRR1269497
(...)
But Prefetch was giving the following error:
2018-11-02T05:27:44 prefetch.2.8.2 warn: '../XDR_169_ids.txt' is invalid or not a kart file
I converted it to .table file also supported by prefetch because dont know what was the KART format. bUt it is giving same error so i used :
prefetch $(../XDR_169_ids.txt)
It gave the error will all ids im pasting few:
../XDR_169_ids.txt: line 157: $'ERR234622\r': command not found
../XDR_169_ids.txt: line 158: $'SRS551952\r': command not found
../XDR_169_ids.txt: line 159: $'SRR671794\r': command not found
../XDR_169_ids.txt: line 163: $'SRS552331\r': command not found
I tried:
prefetch ERR688040
again error:
2018-11-02T05:32:10 prefetch.2.8.2: 1) 'ERR688040' is found locally
Any suggestions? I have 4000 SRA IDs and i want to get it download with fastest speed i tried aspera but i dont know what should i write in the end where we give file name (i dont want to give each name in single command)
What is that ERR688040 ? Is that ID correct? and why don't you try .sh script with fastqdump.
@OP: I abridged the list of accessions a bit to improve readability.