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

                • kinpict.com
                  Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                  by kinpict.com
                  The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
                  Today, 06:37 PM
                • SEQadmin2
                  16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                  by SEQadmin2





                  NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
                  10-30-2026, 06:46 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, 11-12-2026, 07:59 AM
                0 responses
                27 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 11-05-2026, 09:25 AM
                0 responses
                35 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 11-03-2026, 11:54 AM
                2 responses
                56 views
                0 reactions
                Last Post kinpict.com  
                Started by SEQadmin2, 10-28-2026, 09:57 AM
                0 responses
                175 views
                0 reactions
                Last Post SEQadmin2  
                Working...