lmrodriguezr / enveomics

Scripts and libraries for Environmental Genomics
http://enve-omics.ce.gatech.edu/enveomics
Other
37 stars 28 forks source link

/Scripts/SRA.download.bash curl fails with no content when trying to download data #46

Closed AleMadLei closed 4 years ago

AleMadLei commented 4 years ago

I have an automated script that tries to download this the resource at "https://www.ebi.ac.uk/ena/data/warehouse/filereport?result=read_run&fields=run_accession,fastq_ftp,fastq_md5&accession=SRR8555091" by calling the script like Scripts/SRA.download.bash SRR8555091 test

However, this returns a 301 redirection which causes curl to end without receiving any content (thus failing the execution of my script).

There are 2 different ways that this can be addressed.

AleMadLei commented 4 years ago

I've created the following PR to address this https://github.com/lmrodriguezr/enveomics/pull/47