Unconfigured Ad

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

    #1

    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

                    • SEQadmin2
                      16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                      by SEQadmin2




                      NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
                      Yesterday, 06:46 AM
                    • 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

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, 10-28-2026, 09:57 AM
                    0 responses
                    25 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-28-2026, 09:51 AM
                    0 responses
                    16 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-22-2026, 11:13 AM
                    0 responses
                    71 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-22-2026, 10:48 AM
                    0 responses
                    48 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...