Closed ewels closed 5 years ago
Done in ca67271
Hi Phil,
I just stumbled across this while trying to solve a different problem. Can you tell me how to get the result which is displayed in the web broswer via the command line?
I have a few hundred accessions (in different bioprojects), and can't figure out how to do this on command line with wget or curl.
Thanks,
Phil
Oh, actually, my colleague helped me sort it.
I just needed quotes around the URL being given to wget and then quotes around the weirdly named output file when I cat
it.
Looks like the ENA has an API that can be used with SRA accession numbers to get FTP download URLs for FastQ files directly:
https://www.ebi.ac.uk/ena/data/warehouse/filereport?accession=SRP043510&result=read_run&fields=fastq_ftp
https://www.ebi.ac.uk/ena/data/warehouse/filereport?accession=SRR1448774&result=read_run&fields=fastq_ftp
Should be possible to query this for each SRR accession to get download links. May be a little slow is all, so needs some consideration about how to build it in.
Phil