Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Susanna5
    Junior Member
    • Apr 2013
    • 5

    Downloading multiple SRA runs

    Hello, I'm having some difficulties downloading multiple runs from an experiment in SRA. I don't want *all* the runs, or all the data from the experiment. I just want a selection I can give myself. I've googled about, and tried the idea of saving the selected runs to a cvs file by file>summary. and then running this command:
    sed 1d sra_result.csv | cut -f14 | wget -i-

    after observing the error of no URL, I checked the csv file summary, thinking I got the wrong column. Opening the csv file showed the runs, and the 14th entry was indeed the URL, but the entire file was not separating properly. I then added the separator to the beginning of the file:
    sep=","
    That still didn't work. It seems a novice problem, has anyone had it and/or know how to solve it?

    I know of aspera, but that also seemed to be single files from the download guide example:
    [email protected]:2...96072.lite.sra

    (I do have aspera installed) What I've tried is downloading a directory, so something like:
    [email protected]:22/sra/sra-instant/reads/ByRun/litesra/SRR/SRR096
    and also (maybe silly but getting desperate) tried this
    [email protected]:22/sra/sra-instant/reads/ByRun/litesra/SRR/SRR096/SRR096072-SRR096075
    trying to use their download example for my own purposes..
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Try this:

    Code:
    wget -r -nd -nH ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads//ByRun/litesra/SRR/SRR096
    This will get all accessions # in the SRR096 directory.

    Comment

    • muthu545
      Member
      • Jul 2011
      • 32

      #3
      Hi,

      The Code suggested by GenoMax is very useful. I'm just providing a modification of the code:

      Store the SRR096001-SRR096999 #s that would want to download in a file:
      for example:
      cat > SRR_2_download
      SRR096023
      SRR096072
      SRR096074

      for i in $(cat SRR_2_download);do wget -r -nd -nH ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByRun/litesra/SRR/SRR096/$i/*; done

      This will download the specific SRA files that are listed in the file SRR_2_download

      Thanks
      --
      Muthu

      Comment

      Latest Articles

      Collapse

      • GATTACAT
        Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by GATTACAT
        Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
        07-01-2026, 11:43 AM
      • SEQadmin2
        Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by SEQadmin2


        I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

        Here are nine questions we think about, in roughly the order they matter, before...
        06-18-2026, 07:11 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Today, 11:05 AM
      0 responses
      6 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-02-2026, 11:08 AM
      0 responses
      28 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-30-2026, 05:37 AM
      0 responses
      25 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-26-2026, 11:10 AM
      0 responses
      25 views
      0 reactions
      Last Post SEQadmin2  
      Working...