Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Quality in Pileup depends on Reference

    Dear all,

    i have a strange (for me) problem with generating variant calls by 'samtools mpileup' from a BAM file (attached in archive) generated with novoalign. Namely the base qualities are wrong (different as reported in BAM/SAM) when the reference is provided. Running the following command on the attached BAM:

    'samtools mpileup -r chr14:68272021-68272021 test.bam'

    yields:
    chr14 68272021 N 23 acaCcCacacAAAACCCCACAC^gC ___QFF___]][_\___X\___W

    but running:

    'samtools mpileup -r chr14:68272021-68272021 -f hg19.fa test.bam'

    yields:

    chr14 68272021 C 23 a,a.,.a,a,AAAA....A.A.^g. !^!QFF!^!]!%!$^N^X$^!^A

    The base quality values in the latter are different than those stored in BAM/SAM.

    Any help will be appreciated.

    Best Regards,

    Jacek
    Attached Files

  • #2
    Hi,

    this is most likely due to samtools BAQ computation. Briefly, it will downgrade base-qualities if a misalignment/indel is likely and that will change depending on the reference. See 2021320865. If you don't want this behaviour, you can switch off BAQ computation in samtools mpileup with the option -B, which is however not recommended.

    Andreas

    Comment


    • #3
      Hi,

      you were right, thanks. Setting the B parameter recovers the correct behavior. The trick is, however, that none of the reads included in the bam file I attached to my first message has an insertion or deletion (no D or I in CIGAR). That's something I don't understand.


      Jacek

      Comment


      • #4
        Your pileups don't show any indels either, so I don't see what the problem there is.

        ^g does not mean an insertion of a G.

        Also at the read base column, a symbol `^' marks the start of a read segment which is a contiguous subsequence on the read separated by `N/S/H' CIGAR operations. The ASCII of the character following `^' minus 33 gives the mapping quality.

        Comment


        • #5
          The thing is that I don't understand why the qualities of the bases indicating a SNP in the position mentioned are reduced by BAQ (using BAQ or not leads to different calls at the position). The BAQ should "reduce false SNP calls caused by misalignments around insertions and deletions (indels).", as the paper about BAQ says. As there is no indel around the position mentioned (and thus no reason for misalignment), the BAQ should not change qualities in this case. Or do I misunderstand something here?

          Thanks for the help!

          Jacek

          Comment


          • #6
            Just don't use BAQ. No matter what it's supposed to do, it often does just what you observed. Its supposed to reduce the number of false positives, but sometimes, it ruins real positives.

            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...
              05-06-2024, 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, 05-07-2024, 06:57 AM
            0 responses
            12 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-06-2024, 07:17 AM
            0 responses
            16 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-02-2024, 08:06 AM
            0 responses
            22 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-30-2024, 12:17 PM
            0 responses
            24 views
            0 likes
            Last Post seqadmin  
            Working...
            X