Seqanswers Leaderboard Ad

Collapse

Announcement

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

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

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


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


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


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

          Comment


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

            Comment


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

              • seqadmin
                Essential Discoveries and Tools in Epitranscriptomics
                by seqadmin




                The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
                Yesterday, 07:01 AM
              • 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

              ad_right_rmr

              Collapse

              News

              Collapse

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