Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • charlie_sequencing
    Member
    • Jan 2011
    • 13

    pileup output format

    Hey guys, I went through pileup format specifications on the website many times, but still have some silly questions. Would you please give me some hints? Thanks!

    One sentence in http://samtools.sourceforge.net/pileup.shtml says that "The ASCII of the character following `^' minus 33 gives the mapping quality." Take the first line as an example:

    seq1 272 T 24 ,.$.....,,.,.,...,,,.,..^+. <<<+;<<<<<<<<<<<=<;<;7<&

    This line shows that there are 24 reads covering this chromosome position on the reference, and the first base (^+.) in the last read matches the reference base at the same position with a "mapping quality" of 10 (43 - 33 = 10).

    I have two questions:

    1. Does "mapping quality" in the sentence "The ASCII of the character following `^' minus 33 gives the mapping quality" mean "mapping quality" of that read base, or "mapping quality" of the read containing that base?

    2. Why this "mapping quality" is only available for the first read base (starting with ^), but not for all the other 23 read bases at the same position?


    Sorry for the stupid questions because I really can't figure out those details.

    Thanks in advance for any insights you will provide!
  • swbarnes2
    Senior Member
    • May 2008
    • 910

    #2
    Single bases don't have mapping quality; how could they? Mapping quality is an attribute of a read, not a base. Look at the entries in the sam file for the reads crossing that base, each letter has a quality, but the read as a whole has a mapping quality.

    Comment

    • charlie_sequencing
      Member
      • Jan 2011
      • 13

      #3
      Originally posted by swbarnes2 View Post
      Single bases don't have mapping quality; how could they? Mapping quality is an attribute of a read, not a base. Look at the entries in the sam file for the reads crossing that base, each letter has a quality, but the read as a whole has a mapping quality.
      Hi swbarnes2, thank you very much for your reply! So why the mapping quality is only available for one read, but not for the remaining 23 reads? I still have no idea about this. Do you have any clue?

      Comment

      • sdvie
        Member
        • Jul 2010
        • 68

        #4
        As far as I understand, the pileup only contains the bases read in all reads covering a given position (in your example: ,.$.....,,.,.,...,,,.,..^+.) and their base qualities (<<<+;<<<<<<<<<<<=<;<;7<&).

        Then there are sort of special characters, that may appear in some lines of the pileup, but not necessarily:
        The $. that indicates that this base is the last base on a read and
        The ^+. that indicates that this base is the first base on a read. In the latter case, for some reason, the mapping quality of this read is given.

        I am still not entirely clear on this either.

        cheers,
        Sophia

        Comment

        • charlie_sequencing
          Member
          • Jan 2011
          • 13

          #5
          Originally posted by sdvie View Post
          As far as I understand, the pileup only contains the bases read in all reads covering a given position (in your example: ,.$.....,,.,.,...,,,.,..^+.) and their base qualities (<<<+;<<<<<<<<<<<=<;<;7<&).

          Then there are sort of special characters, that may appear in some lines of the pileup, but not necessarily:
          The $. that indicates that this base is the last base on a read and
          The ^+. that indicates that this base is the first base on a read. In the latter case, for some reason, the mapping quality of this read is given.

          I am still not entirely clear on this either.

          cheers,
          Sophia
          Thank you, Sophia! I did see a lot of .$ in my pileup output, and will check if either .$ or $. (as you mentioned) indicates that it's the last base in the read matching the reference on the forward strand.

          Comment

          • swbarnes2
            Senior Member
            • May 2008
            • 910

            #6
            Originally posted by charlie_sequencing View Post
            Hi swbarnes2, thank you very much for your reply! So why the mapping quality is only available for one read, but not for the remaining 23 reads? I still have no idea about this. Do you have any clue?
            The mapping quality is available for every single read in the pileup. It's placed at the first base of every read, wherever that falls. It would take up way too much space to put it at every single position of the read, for every single read. And how else could you expect to see all 23 of them at position 272 or wherever?

            It's also available in the sam file.

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
              by SEQadmin2


              Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


              The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
              ...
              06-02-2026, 10:05 AM
            • SEQadmin2
              Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
              by SEQadmin2


              With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


              Introduction

              Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
              05-22-2026, 06:42 AM
            • SEQadmin2
              Environmental Genomics in the Age of NGS: From Microbes to Conservation Strategies
              by SEQadmin2

              Studying ecosystems means dealing with complex, multi-species communities that are hard to observe at scale. This complexity, however, hides many important questions to be answered, from how biogeochemical cycles work and how climate change can affect species distribution to how conservation strategies can work best.


              Genomics, particularly since the expansion of NGS, has transformed ecosystem ecology. By sequencing environmental DNA, we can now assess biodiversity without direct...
              05-06-2026, 09:04 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Today, 08:59 AM
            0 responses
            9 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-02-2026, 12:03 PM
            0 responses
            21 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-02-2026, 11:40 AM
            0 responses
            17 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 05-28-2026, 11:40 AM
            0 responses
            30 views
            0 reactions
            Last Post SEQadmin2  
            Working...