Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TuA
    Junior Member
    • May 2011
    • 9

    #1

    How convert multiple .sra files into .fastq in one go?

    Hi all,

    I have hundreds of .sra files of a genome re-sequencing project which I downloaded from the NCBI sequence read archive. Does anyone know a quick way of converting them into fastq files? With the SRA toolkit it seems to work with only one file at the time:

    ../bin64/fastq-dump -A <SRR_accession> -D <Path_to_SRR_Directory> -O <Output_Path>

    Many thanks for your suggestions!
  • Dethecor
    Member
    • May 2010
    • 24

    #2
    bash scripts 4tw

    Assuming you're running bash (otherwise the syntax might be slightly different):

    Code:
    for fn in *.sra
    do
    ../bin64/fastq-dump $fn
    done
    This will take all *.sra files in the current directory and convert them into corresponding fasta-files.

    If you are on a powerful machine you might want to add an & to the end of the call to fastq-dump in order to start all of this simultaneously (risking angry glares from other users and/or the admin once the machine crashes ).

    Cheers,
    Paul

    "You are only young once, but you can stay immature indefinitely."

    Comment

    • TuA
      Junior Member
      • May 2011
      • 9

      #3
      This is great! Thanks a lot! I'll check what my machine can do ;-)

      Comment

      • tldgID
        Member
        • May 2011
        • 18

        #4
        many samples?

        Hi TuA,

        Can I ask if the data that you downloaded, is from multiple samples or it's just one sample? The reason for this question is that I am looking for NGS datasets with multiple samples, ideally from 2 different phenotypes. And “hundreds of .sra files of a genome re-sequencing project” gave me hope for finding many samples

        Thank you!

        Comment

        • TuA
          Junior Member
          • May 2011
          • 9

          #5
          Hi tldgID

          Sorry for not responding earlier. I'm afraid I don't think the data will be of use for you. I actually downloaded data from different projects on mammals but with only 1-2 samples per species and no phenotype info...

          I guess you checked the experiments/studies on SRA?

          Comment

          • TuA
            Junior Member
            • May 2011
            • 9

            #6
            Hi tldgID

            Sorry for not responding earlier. I'm afraid I don't think the data will be of use for you. I actually downloaded data from different projects on mammals but with only 1-2 samples per species and no phenotype info...

            I guess you checked the experiments/studies on SRA?

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
              by SEQadmin2



              Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

              Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
              ...
              10-14-2026, 09:55 AM
            • SEQadmin2
              New Genomics Technologies Take Aim at Long-Standing Limits
              by SEQadmin2


              Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

              We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
              ...
              09-28-2026, 10:25 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 10-22-2026, 11:13 AM
            0 responses
            33 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-22-2026, 10:48 AM
            0 responses
            23 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-15-2026, 10:52 AM
            0 responses
            41 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            45 views
            0 reactions
            Last Post SEQadmin2  
            Working...