Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • BWA and Solid data issue

    Hi all,

    We recently got Solid whole exome data and I tried to align it with bwa and do the snp calling with GATK.
    After resolving the CS/CQ-tag issue by a python script to adapt the bam file for analysis with GATK I now ran into another problem:
    Alignment worked well and SNP calling did not show any error messages but: It seems that there is some trouble with the phred quality of the bases. GATK showed me some SNPs with AF=1.00 (so homozygous) which were obviously heterozygous. IGV shows the Phred score for each position and it seems that every base which mathces the reference sequence has phred score 0 whereas the SNPs have a relaitvely high Phred Score (>25).

    Is it possible that bwa changes the base quality scores when converting the csfasta and qual files to the bwa double encoded fastq files? Or is there a special option in the GATK for Solid base-call qualities? Am I doing something completely wrong?

    Any help is appreciateed...

  • #2
    It uses the MAQ formula, which is also used by BFAST. See the section called "ABI SOLiD Base Qualities" in the following page for an explanation: http://sourceforge.net/apps/mediawik...apping_Quality. You can confirm by checking the function "cs2nt_nt_qual" in "cs2nt.c" in the BWA source code.

    Comment


    • #3
      Hi Nolshomer,

      Thank you for the answer. I checked the resulting SAM-File and it appears that the quality values are distributed nicely within 0 and 60 (substracting 33) but with most of them being at 60. So it seems as bwa does a good job...
      Does anyone know of a switch for the GATK for Solid data? And why does IGV show so many zero quality bases where there shouldn't be too many?

      Comment


      • #4
        Sorry for the misspelling of your name Nils :-)

        Comment


        • #5
          Just a short update:
          when looking at the details in IGV the OQ (original quality)-Tag shows more or less only '!' (ASCII:33) characters. The CQ-Tag seems to be ok. After converting the duplicate marked, realigned and recalibrated bam file back to SAM Format, it seems that most of the qualitites were changed to '!'. I checked the intermediary bam files (after marking duplicates and realignment) and they showed nice quality values again. So I guess that's an issue of the GATK recalibrator. The weird thing is that the recalibrator obviously does not write the original qualities in the OQ tag...

          Has anyone seen this before?
          Last edited by ulz_peter; 03-24-2011, 11:40 PM.

          Comment


          • #6
            We are using the GATK for post-mapping analysis, but do not recalibrate.

            One problem we have seen if that the solid reads will leak back to the reference if there is one colour error, and this will screw the splits of bases at a snp. It can be so bad that a homozygous snp becomes +30% reference, I have a solution that scrubs away the potentially wrongly corrected bases at SNPs and we are getting nice results with this approach.

            Comment


            • #7
              Originally posted by Brugger View Post
              We are using the GATK for post-mapping analysis, but do not recalibrate.

              One problem we have seen if that the solid reads will leak back to the reference if there is one colour error, and this will screw the splits of bases at a snp. It can be so bad that a homozygous snp becomes +30% reference, I have a solution that scrubs away the potentially wrongly corrected bases at SNPs and we are getting nice results with this approach.
              Hi Brugger, do you mind sharing your solution? Does this still involve recalibration using GATK? Thanks.

              Comment


              • #8
                Hi Brugger,

                I am also very interested in the approach you have taken. Could you share it with us? Thanks

                Comment


                • #9
                  My approach looks at the original colours and make some corrections based on the observations. For this to work you need to use a mapper that retains the original colour information like bioscope. Furthermore, I have a patch for bwa that does just this as well.

                  I can see if I can dig out some stats/graphs showing the post mprovement.

                  I have not looked at this for a while, but it was the plan to make it public available when I have some spare time.

                  If you want to test this please send me a PM with your email address and we can sort something out.

                  Comment

                  Latest Articles

                  Collapse

                  • seqadmin
                    Best Practices for Single-Cell Sequencing Analysis
                    by seqadmin



                    While isolating and preparing single cells for sequencing was historically the bottleneck, recent technological advancements have shifted the challenge to data analysis. This highlights the rapidly evolving nature of single-cell sequencing. The inherent complexity of single-cell analysis has intensified with the surge in data volume and the incorporation of diverse and more complex datasets. This article explores the challenges in analysis, examines common pitfalls, offers...
                    Yesterday, 07:15 AM
                  • seqadmin
                    Latest Developments in Precision Medicine
                    by seqadmin



                    Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

                    Somatic Genomics
                    “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
                    05-24-2024, 01:16 PM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, Yesterday, 08:18 AM
                  0 responses
                  13 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, Yesterday, 08:04 AM
                  0 responses
                  12 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 06-03-2024, 06:55 AM
                  0 responses
                  13 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 05-30-2024, 03:16 PM
                  0 responses
                  27 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X