Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • svos
    Member
    • Feb 2014
    • 16

    #1

    No soft-clipping in BWA 0.7.10 anymore?

    Hi all!

    After moving from bwa version 0.5.8c to 0.7.10 I discovered differences that look like errors in the newer version: it seems as BWA doesn't perform soft-clipping anymore, resulting in false positive variant calls:



    Is that true? I could find parameters to disable soft-clipping, but no parameter to explicitly turn on soft-clipping.

    Both version were used with default parameters (both, "bwa aln" and "bwa sampe").


    Any help would be appreciated!

    Thank you in advance,


    Sebastian
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Please don't cross-post on here, biostars and the BWA mailing list.

    Comment

    • maubp
      Peter (Biopython etc)
      • Jul 2009
      • 1544

      #3
      Given you have already cross posted, please at take the time to add the URLs here (and there) for cross referencing. People here don't like to waste their volunteered time repeating an answer you've already heard on another forum/platform.

      BioStars duplicate: https://www.biostars.org/p/129443/

      Mailing list duplicate: http://sourceforge.net/p/bio-bwa/mai...sage/33329232/ where Heng Li replied that it was a bug fixed in 0.7.12
      Last edited by maubp; 02-04-2015, 08:40 AM. Reason: Adding links

      Comment

      • Zaag
        Senior Member
        • Nov 2009
        • 112

        #4
        use bwa-mem

        Comment

        • svos
          Member
          • Feb 2014
          • 16

          #5
          First, sorry for cross-posting!

          Second, I use reference genome GRCh37, so this bug should not make any difference for me. I think this is another problem.

          Third, bwa mem didn't work at all for our data (2x100bp), it resulted in obviously wrong mapping of reads so I returned to bwa aln and bwa sampe....


          To be more clear: I do have soft-clipped alignments im my SAM file, but I would expect the reads in the screenshot to be soft-clipped, too. Or am I wrong??

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            Check your preferences for "alignments" in IGV (if the screenshot is from IGV): http://www.broadinstitute.org/igv/Pr...ces#Alignments

            You have likely selected "show" soft-clipped bases.
            Last edited by GenoMax; 02-04-2015, 09:20 AM.

            Comment

            • svos
              Member
              • Feb 2014
              • 16

              #7
              No, soft-clipped alignments are not shown in IGV. Additionally, here is an entry of the SAM file:


              HISEQ:136:C5L2YANXX:3:1104:20703:26673 81 chr7 100682889 25 100M = 100682893 -96 GGGAACCTACAACTGCTGAAGGTACCAGCATGCGAATCTCAACTCCTAGTGATGGAAGTACTCCATTAACAAGTATACTTGTCAGCACCCTGCCAGTGGC FC0F>GGGGGGEF@BFGGGGGGGGGGGGGDGGFFGFCGEFF>E: DGGGGGFCGGEGGEF<F=GGFGGGGGGGFGGGGGGGGGGGGGGGGFCEGGFBBBBB X0:i:1 X1:i:0 MD:Z:0C0T0T0C0T95 XG:i:0 AM:i:25 NM:i:5 SM:i:25 XM:i:5 XO:i:0 XT:A:U


              The CIGAR string tells me that there was no soft-clipping, although 100M isn't correct either (?). Is it possible that its due to the insert size (-96)? At least this is were the mismatched bases are coming from, as the DNA fragment was shorter than the read length is (2x101bp)...

              Comment

              • dpryan
                Devon Ryan
                • Jul 2011
                • 3478

                #8
                The sequence is 100 bases long, so 100M is correct, though I'm not sure how a tlen of 96 would be possible given that. This does seem a bit like a bug. If you can whittle this down to be just a hand full of reads and that's sufficient to reproduce things, then consider filing a bug report on github.

                Comment

                • Zaag
                  Senior Member
                  • Nov 2009
                  • 112

                  #9
                  Originally posted by svos View Post
                  To be more clear: I do have soft-clipped alignments im my SAM file, but I would expect the reads in the screenshot to be soft-clipped, too. Or am I wrong??
                  I guess 4 mismatches at the end of the read is less penalty than clipping of the 4. What are the qualities of the 4 bases?

                  Comment

                  • Zaag
                    Senior Member
                    • Nov 2009
                    • 112

                    #10
                    Originally posted by svos View Post
                    The CIGAR string tells me that there was no soft-clipping, although 100M isn't correct either (?). Is it possible that its due to the insert size (-96)? At least this is were the mismatched bases are coming from, as the DNA fragment was shorter than the read length is (2x101bp)...
                    M stands for match or mismatch in the CIGAR

                    Comment

                    • svos
                      Member
                      • Feb 2014
                      • 16

                      #11
                      Originally posted by Zaag View Post
                      M stands for match or mismatch in the CIGAR

                      Yes, you are right! M means alignment match, not sequence match... Quality values are good (>30).


                      Just to understand soft-clipping correctly: Every base at (both) ends of a read that does not match to the reference sequence anymore should be soft-clipped, right??

                      Comment

                      • Zaag
                        Senior Member
                        • Nov 2009
                        • 112

                        #12
                        Not every base.

                        BWA gives every possible aligmments a score and I can imagine that having 4 high quality mismatches at the end of the read yields a higher score then clipping of the 4 bases;

                        if the quality is below 10 (or there are a lot of bases) it would really surpirse me if they don't get clipped.

                        Comment

                        • svos
                          Member
                          • Feb 2014
                          • 16

                          #13
                          Thank you Zaag for explaining this. I will pay attention to these bases and filter them out by manual alignment inspection!

                          As some default parameter values changed during the versions, this might be due to that...

                          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
                          25 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...