Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Leighton
    Junior Member
    • Oct 2008
    • 2

    #1

    quality scores vs prb files

    I think that the prb files give a probablity score for each base. How does this differ from the quality score?
    Thanks
  • SillyPoint
    Member
    • May 2008
    • 39

    #2
    I'll give it a try...

    The Illumina pipeline produces Q scores from the prb data. The scores are encoded as a single ascii character per base in the *_sequence.txt files. The formula they use is Q=10*log(P/(1-P))+64, where P is the probability that the base was called correctly. Given that the base caller is just picking the likeliest base, P is just the largest of the four scores in the prb file.

    Unfortunately, the official fastq format defines a different encoding, Q=-10log(E)+33, where E is the probability that the base was called *incorrectly*. That's 1-P, or the sum of the probabilities of the other three bases.

    The two log terms are asymptotically equal as Q > 15 or so. But the different scaling factors (64 v 33) used to convert to ascii obviously matter.

    Comment

    • Leighton
      Junior Member
      • Oct 2008
      • 2

      #3
      Thank you! That helps. But what is the basis for the scaling factors?

      Comment

      • SillyPoint
        Member
        • May 2008
        • 39

        #4
        There's no magic to the scaling factors. They're there just to map the 0-60 or so range of Q scores into the printable range of ascii characters, bypassing characters like carriage return and space, which would mess things up. Two different folks got out their ascii charts and picked two different starting points.

        Comment

        • frozenlyse
          Senior Member
          • Sep 2008
          • 135

          #5
          so.. with an aligner like maq, wouldnt it be beneficial to use the .prb files instead of fastq files? from a prb file you would know what the next most likely base is after the called base eg just making up numbers here

          just say a position had the probabilities
          A C G T
          30 20 0 0

          so in the fastq file it would be called as an A, with some lowish quality, but you lose the information the C is also quite likely - but maq would still align it with a G or T?

          am i correct?

          Comment

          • new300
            Member
            • Mar 2008
            • 50

            #6
            Originally posted by frozenlyse View Post
            so.. with an aligner like maq, wouldnt it be beneficial to use the .prb files instead of fastq files? from a prb file you would know what the next most likely base is after the called base eg just making up numbers here

            just say a position had the probabilities
            A C G T
            30 20 0 0

            so in the fastq file it would be called as an A, with some lowish quality, but you lose the information the C is also quite likely - but maq would still align it with a G or T?

            am i correct?
            Yep you are correct, it's something aligners don't currently exploit and my understanding is that Illumina are looking to get rid of the 4 quality scores, which is a shame. I'm looking in to creating a kind of "fast4" sequence format which stores the 4 (or more) quality scores and will at some point be generating 4 scores with Swift (the primary data analysis tool I've been working on). If anyone has any interest in this drop me a line.

            Comment

            • jkbonfield
              Senior Member
              • Jul 2008
              • 146

              #7
              I've been performing experiments with Gap5's consensus algorithm using 1 vs 4 confidence values and as expected the results show using all 4 is a significant improvement - about a 20% reduction in incorrect calls and better discrimination via consensus confidence too.

              I even saw a case of a 2 deep region called T and G where the consensus, was (correctly) called C as it was 2nd highest in both T and G calls neither of which had significant G or T in their secondary intensities. For SNP calling I would expect the improvement to be much larger still.

              Indeed the Staden group was pushing for 4 quality values many years ago, to the extent that the SCF standard published in 1992 made provision for storing 4 values per base in the chromatograms files. So I was definitely pleased to *finally* see an instrument manufacturer starting to use them. The idea of log odds is great too. They just need to improve the calibration so all 4 are calibrated rather than just 1.

              James

              Comment

              • clivey
                Member
                • Jul 2008
                • 24

                #8
                hear hear !

                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...
                  Today, 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
                22 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-28-2026, 09:51 AM
                0 responses
                14 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-22-2026, 11:13 AM
                0 responses
                68 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...