Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • BWA using reads in FASTA format

    Hi,

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

    Thanks,
    Praful

  • #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


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

      Comment


      • #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


        • #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


          • #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


            • #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


              • #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

                • seqadmin
                  Current Approaches to Protein Sequencing
                  by seqadmin


                  Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
                  04-04-2024, 04:25 PM
                • seqadmin
                  Strategies for Sequencing Challenging Samples
                  by seqadmin


                  Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
                  03-22-2024, 06:39 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by seqadmin, 04-11-2024, 12:08 PM
                0 responses
                30 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 04-10-2024, 10:19 PM
                0 responses
                32 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 04-10-2024, 09:21 AM
                0 responses
                28 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 04-04-2024, 09:00 AM
                0 responses
                52 views
                0 likes
                Last Post seqadmin  
                Working...
                X