Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jomaco
    Member
    • Oct 2011
    • 26

    #1

    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.
  • lh3
    Senior Member
    • Feb 2008
    • 686

    #2
    BWA accepts reads in the fasta format.

    Comment

    • jomaco
      Member
      • Oct 2011
      • 26

      #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

      • maubp
        Peter (Biopython etc)
        • Jul 2009
        • 1544

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

        Comment

        • lh3
          Senior Member
          • Feb 2008
          • 686

          #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

          • maubp
            Peter (Biopython etc)
            • Jul 2009
            • 1544

            #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

            • lh3
              Senior Member
              • Feb 2008
              • 686

              #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

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