Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deepbiomed
    Junior Member
    • Apr 2013
    • 8

    #1

    SRA-Toolkit 2.3.1 fastq-dump multiplefiles at once Windows command line

    Hi Guyz,

    I am not software professional so bare with me if I am asking some silly questions.

    I have downloaded SRP003329 study, which contains 20 sub-directory with .sra files. Now I am able to convert all these files individually into fastq format using fastq-dump command.
    .../bin/fastq-dump -A [ ] -O []
    but I want to know how I can do the same for all the .sra files in my dir SRP003329 at once. something like find all .sra files in my directory and fastq-dump all at once.

    Thanks
    Deep
  • jimmybee
    Senior Member
    • Sep 2010
    • 119

    #2
    Have you tried:

    fastq-dump -A SRP* or

    fastq-dump -A *.sra ?

    Comment

    • deepbiomed
      Junior Member
      • Apr 2013
      • 8

      #3
      did not work

      no it did not work,

      Let me tell what I write

      /bin/fastq-dump -A [file name] [File path] -O [output path]

      now that will convert only one .sra file to fastq file but if I want to do the same for all the file in one dir.,how can I do it or what should I write ?

      Thanks
      Deep

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        Deep: You will need to write a batch file to do this in one go (from title of your post you are doing this on Windows?). You can search the net for windows batch files to understand how.

        If you are a biologist and this is a one time need then bite the bullet and do it the brute force way. If you have spare time and like a good challenge then go the batch file route.

        Comment

        • dpryan
          Devon Ryan
          • Jul 2011
          • 3478

          #5
          You might try some of the answers from the thread on biostars that you started (n.b., I forgot an asterisk in the initial version of my answer there). In general, you'll have to script something, which is clunky on windows.

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            Following is not exhaustively tested so use at your own risk. Command as written below assumes that you are in the top study directory (SRP003329), where all the sample sub-directories are present.

            Code:
            for /r %a in (*.sra) do [COLOR="Red"]provide_full_path_to\[/COLOR]fastq-dump.exe %a
            This should put all converted "*.fastq" files in SRP003329 directory.

            Comment

            • deepbiomed
              Junior Member
              • Apr 2013
              • 8

              #7
              I found this the easiest way to do it. Thanks a lot.

              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, Yesterday, 11:13 AM
              0 responses
              19 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, Yesterday, 10:48 AM
              0 responses
              18 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-15-2026, 10:52 AM
              0 responses
              36 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-14-2026, 05:39 AM
              0 responses
              42 views
              0 reactions
              Last Post SEQadmin2  
              Working...