Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • charon
    Junior Member
    • Feb 2013
    • 2

    what does "average quality" mean in samtools stat

    I used samtools stats to measure some basic metrics of a input bam file and got the following results:


    raw total sequences: 1105415
    filtered sequences: 80516
    sequences: 1024899
    is sorted: 1
    1st fragments: 1024899
    last fragments: 0
    reads mapped: 940001
    reads mapped and paired: 0 # paired-end technology bit set + both mates mapped
    reads unmapped: 84898
    reads properly paired: 0 # proper-pair bit set
    reads paired: 0 # paired-end technology bit set
    reads duplicated: 0 # PCR or optical duplicate bit set
    reads MQ0: 14800 # mapped and MQ=0
    reads QC failed: 0
    non-primary alignments: 0
    total length: 5395194643 # ignores clipping
    bases mapped: 4998712634 # ignores clipping
    bases mapped (cigar): 4531562523 # more accurate
    bases trimmed: 0
    bases duplicated: 0
    mismatches: 688215582 # from NM fields
    error rate: 1.518716e-01 # mismatches / bases mapped (cigar)
    average quality: 19.8
    insert size average: 0.0

    How was wondering how's the average quality calculated? (It's a bit higher than I expected) Is it related to read's mean base quality? i.e. For each read, calculate its mean base quality, and then take the average of all reads?

    Thanks in advance!
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    The base qualities for the whole file are summed and then that's divided by the total number of bases in the file.

    Comment

    • charon
      Junior Member
      • Feb 2013
      • 2

      #3
      Makes sense. Thanks dpryan!

      Comment

      Latest Articles

      Collapse

      • mylaser
        Reply to Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
        by mylaser
        The world of online gaming has grown tremendously over the past few years, giving players access to exciting sports, casino games, and interactive entertainment from the comfort of their homes. Among the platforms gaining attention, Kheloyaar has become a trusted destination for users seeking a fast, secure, and engaging gaming experience.
        Whether you're a first-time visitor or an existing user, understanding the features of Kheloyar and the Kheloyaar login process can help you enjoy everything...
        Today, 12:33 AM
      • SEQadmin2
        Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
        by SEQadmin2


        Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

        The systematic characterization of the human proteome has
        ...
        Yesterday, 11:48 AM
      • SEQadmin2
        Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by SEQadmin2



        Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
        ...
        07-09-2026, 11:10 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Yesterday, 11:10 AM
      0 responses
      8 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-13-2026, 10:26 AM
      0 responses
      30 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-09-2026, 10:04 AM
      0 responses
      39 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-08-2026, 10:08 AM
      0 responses
      25 views
      0 reactions
      Last Post SEQadmin2  
      Working...