Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!

  • #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


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

      Comment


      • #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


        • #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


          • #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

            • seqadmin
              Recent Advances in Sequencing Analysis Tools
              by seqadmin


              The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
              05-06-2024, 07:48 AM
            • seqadmin
              Essential Discoveries and Tools in Epitranscriptomics
              by seqadmin




              The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
              04-22-2024, 07:01 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Today, 06:35 AM
            0 responses
            12 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, Yesterday, 02:46 PM
            0 responses
            18 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-07-2024, 06:57 AM
            0 responses
            17 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-06-2024, 07:17 AM
            0 responses
            19 views
            0 likes
            Last Post seqadmin  
            Working...
            X