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

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Today, 06:09 AM
            0 responses
            7 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-09-2026, 11:58 AM
            0 responses
            33 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-05-2026, 10:09 AM
            0 responses
            38 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-04-2026, 08:59 AM
            0 responses
            43 views
            0 reactions
            Last Post SEQadmin2  
            Working...