Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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!

  • #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


    • #3
      Makes sense. Thanks dpryan!

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Recent Advances in Sequencing Analysis Tools
        by seqadmin


        The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
        Today, 07:48 AM
      • seqadmin
        Essential Discoveries and Tools in Epitranscriptomics
        by seqadmin




        The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
        04-22-2024, 07:01 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Today, 07:17 AM
      0 responses
      11 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-02-2024, 08:06 AM
      0 responses
      19 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-30-2024, 12:17 PM
      0 responses
      20 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-29-2024, 10:49 AM
      0 responses
      28 views
      0 likes
      Last Post seqadmin  
      Working...
      X