Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aggp11
    Member
    • Jun 2011
    • 87

    #1

    BWA using reads in FASTA format

    Hi,

    Does BWA work if we provide reads in FASTA format instead of FASTQ?

    Thanks,
    Praful
  • fubar
    Crusty old bioinformatician
    • Oct 2010
    • 8

    #2
    Originally posted by aggp11 View Post
    Hi,

    Does BWA work if we provide reads in FASTA format instead of FASTQ?

    Thanks,
    Praful
    I'm sure you have already read the documentation for BWA, since it would be inconsiderate to waste bandwidth with this question otherwise? Since you seem to have missed it, no - fasta does not contain the base call quality information crucial for reliable short read alignment.

    Comment

    • lh3
      Senior Member
      • Feb 2008
      • 686

      #3
      Actually bwa happens to accept reads in the fasta format.

      Comment

      • aggp11
        Member
        • Jun 2011
        • 87

        #4
        Originally posted by fubar View Post
        I'm sure you have already read the documentation for BWA, since it would be inconsiderate to waste bandwidth with this question otherwise? Since you seem to have missed it, no - fasta does not contain the base call quality information crucial for reliable short read alignment.
        Fubar,

        Thanks a lot for your reply. Like lh3 said, BWA seemed to work with reads in FASTA format. However, I have to look into the alignment in detail to see how reliable it is since the FASTA doesn't have the quality scores.

        Praful

        Comment

        • aggp11
          Member
          • Jun 2011
          • 87

          #5
          Originally posted by lh3 View Post
          Actually bwa happens to accept reads in the fasta format.
          Thanks you lh3. I tried it and bwa did the alignment. I hve to still look into the details of the alignment.

          Comment

          • fubar
            Crusty old bioinformatician
            • Oct 2010
            • 8

            #6
            Originally posted by aggp11 View Post
            Thanks you lh3. I tried it and bwa did the alignment. I hve to still look into the details of the alignment.
            I'm glad it worked for you but perplexed since the documentation at http://bio-bwa.sourceforge.net/bwa.shtml seems to make it clear that bwa accepts (and indexes) reference genomes as fasta but requires the reads as fastq. Perhaps you have discovered some previously undiscovered benefits of not reading documentation? Does anyone know where this is actually documented?

            eg, from the current release command line for single ended mapping, in.fq seems to suggest fastq as the input reads whereas the index command wants in.fasta as the documentation says.

            iaas1:/data/ext_src$ bwa samse
            Usage: bwa samse [-n max_occ] [-f out.sam] [-r RG_line] <prefix> <in.sai> <in.fq>
            iaas1:/data/ext_src$ bwa index
            Usage: bwa index [-a bwtsw|div|is] [-c] <in.fasta>

            I guess it might assign a uniform quality score to all reads which probably allows some sort of alignment like old fashioned CAP3 and friends used to do - but it's missing all the important information about how trustworthy the reads are - might not matter if they're all good but will likely lead to errors due to uninformed overconfidence in poor reads.
            Last edited by fubar; 10-05-2011, 11:36 PM.

            Comment

            • marcowanger
              Senior Member
              • Dec 2008
              • 273

              #7
              Originally posted by fubar View Post
              I'm glad it worked for you but perplexed since the documentation at http://bio-bwa.sourceforge.net/bwa.shtml seems to make it clear that bwa accepts (and indexes) reference genomes as fasta but requires the reads as fastq. Perhaps you have discovered some previously undiscovered benefits of not reading documentation? Does anyone know where this is actually documented?

              eg, from the current release command line for single ended mapping, in.fq seems to suggest fastq as the input reads whereas the index command wants in.fasta as the documentation says.

              iaas1:/data/ext_src$ bwa samse
              Usage: bwa samse [-n max_occ] [-f out.sam] [-r RG_line] <prefix> <in.sai> <in.fq>
              iaas1:/data/ext_src$ bwa index
              Usage: bwa index [-a bwtsw|div|is] [-c] <in.fasta>

              I guess it might assign a uniform quality score to all reads which probably allows some sort of alignment like old fashioned CAP3 and friends used to do - but it's missing all the important information about how trustworthy the reads are - might not matter if they're all good but will likely lead to errors due to uninformed overconfidence in poor reads.
              lh3 is the author of BWA ......
              Marco

              Comment

              • ashuchawla
                Member
                • Jan 2012
                • 38

                #8
                Could I ask what is the command to use a FASTA file instead of a FASTQ file to align reads with a genome using BWA?

                Originally posted by lh3 View Post
                Actually bwa happens to accept reads in the fasta format.

                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
                27 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-22-2026, 10:48 AM
                0 responses
                20 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
                43 views
                0 reactions
                Last Post SEQadmin2  
                Working...