Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sscd
    Junior Member
    • Aug 2014
    • 3

    #1

    Pileup differences with different SAMtools versions

    Hello,

    Generating pileups of bacterial data sets with SAMtools 0.1.18 and 0.1.19, I have noticed differences in the pileup files. Version 0.1.18 produces pileups with greater depth. In both cases, the command line options are identical, just specifying the reference, the sample, and accepting defaults for all other options.

    samtools mpileup -f reference.fasta reads.bam

    Can anyone help explain what is causing the difference and offer best practice recommendations?

    See examples of differences below.

    Thanks!

    samtools 0.1.18 pileup
    seq1 4991 A 29 .C...,,,,,,,,,,,,+1t,..,+1t..tgg.gG !!1!!7@7A>8.0;1<.C@B+?9!#!-!!
    seq1 4992 T 29 G..GG,,,,,,,,,,,,,..,..,,g.cG !90!!7@8@?;13=/4$C@A%>6&%!B!!
    seq1 4993 G 29 A.$.AA,,,,,,,,,,,,,..,..,ac.a. !:1!!05,;@1/.60-,@CB(><-%!A!/
    seq1 4994 G 28 ....,,,,,,,,,,,,,..,..,,a.,. !1!!3>/AE:4,5386A<<283,%!:!*
    seq1 4995 A 29 GTGG,+1t,,+1t,,,,,,,,,,..,..,tg.t.^#c !&!!.:-=E24,5236ADB+<6,&!A!<!
    seq1 4996 T 29 CACC,,,,,,,,,,,,,..,..,c,.c.a !%!!#9$4?-5*2/12>EC(58('3A#:!
    seq1 4997 T 29 ..+5CACCG..,,,,,,,,,,,,,..,..,cc.g.g !%!!&@'>C28AB3=4E64,.,;',;$0!
    seq1 4998 G 29 .$A.$.$,,,,,,,,,,,,,..,..,,,.,.c !!!!+9(1?.,97.3.><;&503)&@*5!
    seq1 4999 G 27 C,,,,,,,,,,,,,..,..,,,.,.c^#, $,B77C:4@B290E424/-;1,7+/!!
    seq1 5000 T 27 .,,,,,,,,,,,,,..,..,,,.,.,g +0B79C87A<190E6?42/;1,?+4!!

    samtools 0.1.19 pileup
    seq1 4991 A 18 .,,,,,,,,,,,,+1t,.... 17@7A>8.0;1<.C@B?9
    seq1 4992 T 19 ..,,,,,,,,,,,,..... 907@8@?;13=/4C@A>6B
    seq1 4993 G 18 .$.,,,,,,,,,,...... :105;@1/.60@CB><A/
    seq1 4994 G 19 .,,,,,,,,,,,,..,... 13>/AE:45386A<<283:
    seq1 4995 A 17 ,+1t,,,,,,,,,,...... .:=E245236ADB<6A<
    seq1 4996 T 16 ,,,,,,,,,....,.. 94?52/12>EC583A:
    seq1 4997 T 17 ,,,,,,,,,,,...,.. @>C28AB3=4E64.;;0
    seq1 4998 G 17 ,,,,,,,,,,....,.. 91?.97.3.><;503@5
    seq1 4999 G 20 ,,,,,,,,,,,,..,.,,.. B77C:4@B290E424/;17/
    seq1 5000 T 22 ,,,,,,,,,,,,,..,..,,.. 0B79C87A<190E6?42/;1?4
  • swbarnes2
    Senior Member
    • May 2008
    • 910

    #2
    At first glance, it looks like the default quality filtering differs between the two, samtools 1.19 is more stringent. The ! in the quality string indicates the lower possible quality, the 1.18 version has many more than the 1.19 version, and the ! correspond to the non-consensus bases, so they are likely wrong anyway, so 1.19 is right in excluding them.

    Comment

    • sscd
      Junior Member
      • Aug 2014
      • 3

      #3
      @swbarnes, thanks for the quick reply. That certainly explains what I am seeing. I inspected a larger sample and found SAMtools v01.19 is indeed filtering out the read bases with quality < 13.

      Interesting that SAMtools 0.1.18 is not behaving the same as v0.1.19. Both versions mpileup usage show this:

      -Q INT skip bases with baseQ/BAQ smaller than INT [13]

      Comment

      • sscd
        Junior Member
        • Aug 2014
        • 3

        #4
        Searching around a bit, the SAMtools v0.1.18 behavior when mpileup uses the Q flag is documented here:

        Tools (written in C using htslib) for manipulating next-generation sequencing data - samtools/samtools

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
          by SEQadmin2



          CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

          Despite this, “CRISPR helped turn genome editing from a specialized technique into
          ...
          07-31-2026, 11:01 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
          ...
          07-20-2026, 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, 07:41 AM
        0 responses
        12 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 08-03-2026, 10:13 AM
        0 responses
        26 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-31-2026, 02:55 AM
        0 responses
        39 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-24-2026, 12:17 PM
        0 responses
        25 views
        0 reactions
        Last Post SEQadmin2  
        Working...