Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wwmm933
    Member
    • Jan 2010
    • 17

    #1

    BWA: mismatch setting (Does '-n 3' allow up to three mismathces?)

    Hi everyone,

    I used BWA to map my paired end sequencing data. The length of read is 74bp. I would like to allow up to 3 mismatches in one read (no seed needed). I just set "bwa aln -n 3". Is this the correct setting for my purpose?

    When I checked the mapped sam file (tag MD:Z), I saw more mismatches than three. So I am confused about mismatch settings in BWA. Can anybody help me?

    Thanks!
  • nilshomer
    Nils Homer
    • Nov 2008
    • 1283

    #2
    Originally posted by wwmm933 View Post
    Hi everyone,

    I used BWA to map my paired end sequencing data. The length of read is 74bp. I would like to allow up to 3 mismatches in one read (no seed needed). I just set "bwa aln -n 3". Is this the correct setting for my purpose?

    When I checked the mapped sam file (tag MD:Z), I saw more mismatches than three. So I am confused about mismatch settings in BWA. Can anybody help me?

    Thanks!
    BWA with "-n 3" will look for mappings up to four (to guarantee all up to three). Could you give an example record with more than four differences when using "-n 3"?

    Comment

    • wwmm933
      Member
      • Jan 2010
      • 17

      #3
      Originally posted by nilshomer View Post
      BWA with "-n 3" will look for mappings up to four (to guarantee all up to three). Could you give an example record with more than four differences when using "-n 3"?
      Thanks, nilshomer! I just found the problem might not be the mismatch setting. I think it is due to paired end sequencing, so I got more mismatches on one end of paired reads. Is my understanding correct?

      Comment

      • wwmm933
        Member
        • Jan 2010
        • 17

        #4
        I have checked single end reads mapping. If I set '-n 3', the number of mismatches are well controlled. So the problem is that I used paired end reads.

        Comment

        • wwmm933
          Member
          • Jan 2010
          • 17

          #5
          Problem solved! Thanks!
          Last edited by wwmm933; 03-15-2011, 08:52 AM.

          Comment

          • wanguan2000
            Member
            • Nov 2010
            • 24

            #6
            in bwa:
            XM Number of mismatches in the alignment
            MD Mismatching positions/bases

            Comment

            • alexbmp
              Member
              • Oct 2011
              • 30

              #7
              Well, I seem to have the same problem.

              I ran bwa for paired-end reads, and no matter what value I put in -n option
              ( I tried -n 3, -n 4, -n 7, -n 0, ... even -n 0.05 ),

              bwa finds more mismatches than I told it to do.

              And what's worse; when I blat the mismatch-containing reads, their seldom in the accurate position!

              -------

              The above are only the facts.

              It seems to me, ("seems" to me!) that the -n option restricts the # of mismatches for only one of the paired-end reads.

              When I set -n 0, I found no paired-end reads that both contain mismatches: no pairs with both XM:i:# above 0, though one read has XM:i:0 and the other can have XM:i:# as high as 21, in the small example file I saw.

              It's very confusing.

              Isn't there any options to restrict both reads to behave the same?

              I hope somebody sees this thread.

              Have a great day!

              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
              23 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
              42 views
              0 reactions
              Last Post SEQadmin2  
              Working...