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
                  Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                  by SEQadmin2



                  CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                  Despite this, “CRISPR helped turn genome editing from a specialized technique into
                  ...
                  07-31-2026, 11:01 AM
                • SEQadmin2
                  Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                  by SEQadmin2


                  Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                  The systematic characterization of the human proteome has
                  ...
                  07-20-2026, 11:48 AM
                • SEQadmin2
                  Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                  by SEQadmin2



                  Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                  ...
                  07-09-2026, 11:10 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, 07-31-2026, 02:55 AM
                0 responses
                17 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-24-2026, 12:17 PM
                0 responses
                15 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-23-2026, 11:41 AM
                0 responses
                13 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-20-2026, 11:10 AM
                0 responses
                24 views
                0 reactions
                Last Post SEQadmin2  
                Working...