Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Pengfei Liu
    Member
    • Nov 2012
    • 16

    how many mismatches does BWA-MEM tolerate during mapping

    Hi,
    Recently I am trying to use BWA-MEM to do alignment on PE-90 reads, I have some questiones list as following;


    1,how many mismatches does BWA-MEM tolerate during mapping?
    Does the following still applied to BWA-MEM:
    ‘Given a read of length m, BWA only tolerates a hit with at most k differences
    (mismatches or gaps), where k is chosen such that <4% of m-long reads with
    2% uniform base error rate may contain differences more thank. With this
    configuration, for 15–37 bp reads,kequals 2; for 38–63 bp,k=3; for 64–92
    bp,k=4; for 93–123 bp,k=5; and for 124–156 bp reads,k=6.’(Li and Durbin, 2009)

    2,In bwa-aln sampe,the mismatch number could be setted by the ‘-n’option。
    By default,what is the number of mismatch setted and how to set it in BWA-MEM?

    3, Mapping quality is assigned for individual read, not for a read pair.so if I use '-q 30' to extract PE reads, some of the reads will lose their mate-pair, am I right? Are there any ideas on how to extract pair-reads (reads and its mate) with '-q 30' for both of them?

    I have read the manual and the BWA-MEM paper, but sitll didn't get answers.

    Any suggestions are appreciated!

    Pengfei Liu
  • gmarco
    Member
    • Oct 2012
    • 36

    #2
    I'm also interested on this information.

    Comment

    • lh3
      Senior Member
      • Feb 2008
      • 686

      #3
      Hard to say. It uses seed-and-extend. As long as mismatches/gaps do not reduce the alignment score, they are allowed. When aligning fosmids, bwa-mem may allow thousands of mismatches and gaps.

      Comment

      • Pengfei Liu
        Member
        • Nov 2012
        • 16

        #4
        Thanks
        so still some additional questions
        1, I want to use the mapping results of bwa to do Differential expression analysis, what kind of reads should be kept?
        1) mapping quality q>threshold(30 or 60), as you mentioned quality larger than 1 will exclude reads mapping to multiple positions
        2) NM tag indicates the number of mismatch, so NM:i:0-5 might be used to restrict mismatch. ()
        3) flag 99-147 or 83-163 to kept properly paired reads
        are the above three suitable criteria?
        Thank you!

        Comment

        • Pengfei Liu
          Member
          • Nov 2012
          • 16

          #5
          2 In the bwa-mem document, what does unpaired paired-end reads mean(-a parameter description)? what is the differences between it and singleton?

          3, does the chimeric alignment get a mapping quality 0?

          Comment

          • blubucki
            Junior Member
            • Aug 2013
            • 1

            #6
            Hello everyone, this is my 1st post on this great forum and I look forward to your help.
            I am trying to find the chimeric/fusion/split reads in my WGS NGS library. I tried bwasw with SE reads or PE alignment,.but not sure how it flags the chimeric/split reads in the output sam file. Or if there's another way to find them.
            Can someone please help me in this.
            Thanks a lot.
            Best!

            Comment

            • Pengfei Liu
              Member
              • Nov 2012
              • 16

              #7
              Originally posted by blubucki View Post
              Hello everyone, this is my 1st post on this great forum and I look forward to your help.
              I am trying to find the chimeric/fusion/split reads in my WGS NGS library. I tried bwasw with SE reads or PE alignment,.but not sure how it flags the chimeric/split reads in the output sam file. Or if there's another way to find them.
              Can someone please help me in this.
              Thanks a lot.
              Best!
              Sorry, I use bwa-mem to do alignment. I have tested, in that, -a , -M will affect the output. -a will produce all alignment (so, secondary alignment with 0x100 will appear), and chimeric alignment will with 0x800. but if you use both -a and -M, chimeric alignment and secondary alignment will all convert to 0x100. with -M but not -a, 0x100 is chimeric alignment.
              see also"With 0.7.5 if read has a chimeric alignment, the paired or the top hit uses soft clipping and is marked with neither 0x800 nor 0x100 bits, All the other hits part of the chimeric alignment will use hard clipping and be marked with 0x800 if option "-M" is not in use, or marked with 0x100 otherwise." (https://github.com/lh3/bwa/blob/master/NEWS; );Other hits part of a chimeric alignment are now reported in the SA tag, conforming to the SAM spec v1.5"

              For Bwa-sw, in the manual it says that:'in the paired end mode, bwasw may still output split alignments but they are all marked as not properly paired;' so at least it is in the -F 2 filed, for chimeric alignment, maybe -f 0x100 or 0x800, for fusion, sorry, I do not know what does it mean.

              you may also post your question on biostar or the mailing list of bwa on sourcefore.

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                by SEQadmin2


                Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                The systematic characterization of the human proteome has
                ...
                07-20-2026, 11:48 AM
              • SEQadmin2
                Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                by SEQadmin2



                Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                ...
                07-09-2026, 11:10 AM
              • SEQadmin2
                Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                by SEQadmin2



                Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                07-08-2026, 05:17 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 07-24-2026, 12:17 PM
              0 responses
              25 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-23-2026, 11:41 AM
              0 responses
              20 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-20-2026, 11:10 AM
              0 responses
              28 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-13-2026, 10:26 AM
              0 responses
              38 views
              0 reactions
              Last Post SEQadmin2  
              Working...