Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Convert FASTA to FASTAQ

    Hi

    I need to map small RNA sequences onto a genome using BWA.

    The read file (reads.fa) is in the following format:

    >EMUNAOL01D19UY length 23 duplications 0
    CGTCTTGGTTTGTCTAAAGGGGC
    >EMUNAOL01EK9BY length 24 duplications 0
    TGGTGGAGGCCCGCAGCGATACTG
    >EMUNAOL02GZHTT length 24 duplications 0
    GGGCAAAAGTACAAAGTTCATGTG
    >EMUNAOL02IQUC1 length 24 duplications 0
    AGAAATGTTGCTACATAAATTGGA

    How can I convert this file to a FASTAQ file (reads.fastq) suitable for BWA?

    I tried maq but I couldn't get it to work - it just produced a file of 0 bytes - so i'm not sure if it's suitable for what i'm trying to do. Is there another program might be useful?

    Thanks

    Jon
    Last edited by jomaco; 10-30-2011, 06:15 AM.

  • #2
    BWA accepts reads in the fasta format.

    Comment


    • #3
      Sorry. You're right it does. Someone who asked me to run the alignment told me it was required to convert the read file to fastaq format. Perhaps I should not be so trustful next time!

      I have now managed to get the alignment to run. Thanks for your reply

      Comment


      • #4
        What's this "FASTAQ" format? Do you mean "FASTQ"?

        Comment


        • #5
          I believe "FASTAQ" is a typo, but actually fasta+fastq is really a fastaq format. You can mix fasta and fastq records in one file with no problem. A multi-line fastq parser can be trivially modified to parse such a file. This is basically what my fastq/fasta parser is doing. To most of my recent programs (maq excluded), fasta and fastq are the same format.

          Comment


          • #6
            Mixing FASTA and FASTQ into one file... that strikes me as a strange and dangerous idea, although I can see uses for it (combining raw read datasets of different types into one file for alignment).

            Comment


            • #7
              I am not saying this is a good format. I am saying that there should really be one parser instead of two.

              Comment

              Latest Articles

              Collapse

              • seqadmin
                New Genomics Tools and Methods Shared at AGBT 2025
                by seqadmin


                This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

                The Headliner
                The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
                03-03-2025, 01:39 PM
              • seqadmin
                Investigating the Gut Microbiome Through Diet and Spatial Biology
                by seqadmin




                The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
                02-24-2025, 06:31 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, Yesterday, 12:50 PM
              0 responses
              11 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 03-03-2025, 01:15 PM
              0 responses
              182 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 02-28-2025, 12:58 PM
              0 responses
              278 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 02-24-2025, 02:48 PM
              0 responses
              664 views
              0 likes
              Last Post seqadmin  
              Working...
              X