Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • gfmgfm
    Member
    • Jun 2010
    • 64

    Quality score after Illumina run - should it be coverted before samtools and gatk?

    Hi all,

    I am a bit confused with the base quality score. After Illumina run, I use BWA to map the reads. I then use downstream applications such as samtools and gatk. But samtools accepts sanger phred (ASCII-33), while Illimina's fastq is ASCII-64. Is it correct that the fastq need to be converted before running BWA to sanger scores? If so, what tools do people use for this?
  • csoong
    Member
    • Jun 2009
    • 74

    #2
    yes, you should convert first, even before BWA.
    google for fq_all2std.pl

    Comment

    • gfmgfm
      Member
      • Jun 2010
      • 64

      #3
      thanks a lot!

      Comment

      • gfmgfm
        Member
        • Jun 2010
        • 64

        #4
        I took a look at the code of fq_all2std.pl . I believe I need the command:
        sol2std Convert Solexa/Illumina FASTQ to the standard FASTQ

        But doesn't it convert the old Illumina (prior to version 1.3) to sanger?

        The conversion table it uses:
        for (-64..64) {
        $conv_table[$_+64] = chr(int(33 + 10*log(1+10**($_/10.0))/log(10)+.499));
        }

        Comment

        • Seq84
          Member
          • Feb 2011
          • 19

          #5
          But doesn't it convert the old Illumina (prior to version 1.3) to sanger?
          Yeah this script converts only solexa format and not illumina(1.3 or 1.5+) one.

          Comment

          • trickytank
            Member
            • Dec 2010
            • 19

            #6
            BWA option -I

            In the recent versions in BWA you no longer need to convert the quality scores. From the BWA manual:

            -I The input is in the Illumina 1.3+ read format (quality equals ASCII-64).

            Comment

            • mboursnell
              Member
              • Jul 2012
              • 17

              #7
              So it seems you don't need to convert before BWA. Do you need to convert before GATK or before samtools?

              Comment

              • trickytank
                Member
                • Dec 2010
                • 19

                #8
                There isn't any need to, as all SAM/BAM files have QUAL field: "ASCII of Phred-scaled base QUALity+33". This way you don't need to worry about the quality scale in SAM/BAM.

                (Note that it is possible to get qualities in a SAM/BAM like file that are scaled QUALity+64, BUT these are not real SAM/BAM files. BWA produces a proper SAM/BAM file with the correct quality scale.)

                Comment

                • MissDona
                  Member
                  • Nov 2011
                  • 17

                  #9
                  what is the consequence of losing -I option?

                  As asked in the title, what if I missed the -I option while run bwa? is there any remedial work I can do to save it? thx!

                  Comment

                  • gfmgfm
                    Member
                    • Jun 2010
                    • 64

                    #10
                    Current Illumina's qualities in the fastq files changed since the first post on this issue. They are now (Illumina 1.8+) Phred+33, and therefore no need to specify -I for BWA. Just make sure the fastq files you are working with are indeed Illumina 1.8+.

                    Comment

                    Latest Articles

                    Collapse

                    • seqadmin
                      Pathogen Surveillance with Advanced Genomic Tools
                      by seqadmin




                      The COVID-19 pandemic highlighted the need for proactive pathogen surveillance systems. As ongoing threats like avian influenza and newly emerging infections continue to pose risks, researchers are working to improve how quickly and accurately pathogens can be identified and tracked. In a recent SEQanswers webinar, two experts discussed how next-generation sequencing (NGS) and machine learning are shaping efforts to monitor viral variation and trace the origins of infectious...
                      Today, 11:48 AM
                    • seqadmin
                      New Genomics Tools and Methods Shared at AGBT 2025
                      by seqadmin


                      This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

                      The Headliner
                      The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
                      03-03-2025, 01:39 PM
                    • seqadmin
                      Investigating the Gut Microbiome Through Diet and Spatial Biology
                      by seqadmin




                      The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
                      02-24-2025, 06:31 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by seqadmin, 03-20-2025, 05:03 AM
                    0 responses
                    26 views
                    0 reactions
                    Last Post seqadmin  
                    Started by seqadmin, 03-19-2025, 07:27 AM
                    0 responses
                    31 views
                    0 reactions
                    Last Post seqadmin  
                    Started by seqadmin, 03-18-2025, 12:50 PM
                    0 responses
                    25 views
                    0 reactions
                    Last Post seqadmin  
                    Started by seqadmin, 03-03-2025, 01:15 PM
                    0 responses
                    190 views
                    0 reactions
                    Last Post seqadmin  
                    Working...