Unconfigured Ad

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

    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
                  Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                  by SEQadmin2


                  I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

                  Here are nine questions we think about, in roughly the order they matter, before...
                  06-18-2026, 07:11 AM
                • SEQadmin2
                  From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                  by SEQadmin2


                  Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                  The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                  ...
                  06-02-2026, 10:05 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, Yesterday, 11:10 AM
                0 responses
                7 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 06-17-2026, 06:09 AM
                0 responses
                42 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 06-09-2026, 11:58 AM
                0 responses
                104 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 06-05-2026, 10:09 AM
                0 responses
                125 views
                0 reactions
                Last Post SEQadmin2  
                Working...