Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • wwmm933
    Member
    • Jan 2010
    • 17

    Samtools snp calling -- old version seems to be better for my dataset?

    Hi,

    I used samtools pileup (0.1.7) and mpileup/bcftool (0.1.14) to call SNPs for my datasets. And we also perform taqman assay of one SNP for the same 28 samples. (One SNP is a small sample, however I still compare the results between samtools and taqman assay.)

    We found that results of old version with pileup can match 27/28 samples from Taqman; results of new version with mpileup can only match 7/28 samples from taqman. So old version seems to be better for my dataset. Did anybody do the similar validation before? What is your conclusion?

    Thanks!
  • oiiio
    Senior Member
    • Jan 2011
    • 105

    #2
    Can you post the command lines you are using for the pileup and mpileup?

    Comment

    • wwmm933
      Member
      • Jan 2010
      • 17

      #3
      Originally posted by oiiio View Post
      Can you post the command lines you are using for the pileup and mpileup?
      I used the example command lines in Samtools manual.
      After gaining the sorted bam files,

      samtools pileup -vcf hg18_genome.fna sample1-sorted.nosoft.bam | tee sample1.raw.txt | samtools.pl varFilter -D6000 > sample1.flt.txt
      awk '($3=="*"&&$6>=50)||($3!="*"&&$6>=20)' sample1.flt.txt > sample1.final.txt

      samtools mpileup -uf hg18_genome.fna sample1-sorted.bam | bcftools view -p 0.99 -bvcg - > sample1-var.raw.bcf
      bcftools view sample1-var.raw.bcf | awk '$6>=3' | vcfutils.pl varFilter -d8 -D10000 -11e-5 -20 -41e-7 > sample1-var.flt.vcf

      Comment

      • swbarnes2
        Senior Member
        • May 2008
        • 910

        #4
        I've had too many experiences where the BAQ calculations ate real SNPs, I always turn it off now. So you might be losing lots of real SNPs in mpileup, which is why the ones you do get aren't as likely to be real.

        Comment

        • wwmm933
          Member
          • Jan 2010
          • 17

          #5
          Originally posted by swbarnes2 View Post
          I've had too many experiences where the BAQ calculations ate real SNPs, I always turn it off now. So you might be losing lots of real SNPs in mpileup, which is why the ones you do get aren't as likely to be real.
          Thanks! May I ask which one is BAQ? What should I remove from my command line?

          Comment

          • swbarnes2
            Senior Member
            • May 2008
            • 910

            #6
            samtools mpileup -Buf

            Will disengage thr BAQ calculations.

            Granted, I do this because I align with bwa, which will find indels; I think the point of the BAQ calculations is to correct for aligners that don't, so if you are using something that doesn't find indels, then maybe you should keep the BAQ calculation in.

            But either way, it's worth trying.

            Comment

            • wwmm933
              Member
              • Jan 2010
              • 17

              #7
              Originally posted by swbarnes2 View Post
              samtools mpileup -Buf

              Will disengage thr BAQ calculations.

              Granted, I do this because I align with bwa, which will find indels; I think the point of the BAQ calculations is to correct for aligners that don't, so if you are using something that doesn't find indels, then maybe you should keep the BAQ calculation in.

              But either way, it's worth trying.

              Thanks a lot! I will give it a try and report my results here again.

              Comment

              • wwmm933
                Member
                • Jan 2010
                • 17

                #8
                Originally posted by swbarnes2 View Post
                samtools mpileup -Buf

                Will disengage thr BAQ calculations.

                Granted, I do this because I align with bwa, which will find indels; I think the point of the BAQ calculations is to correct for aligners that don't, so if you are using something that doesn't find indels, then maybe you should keep the BAQ calculation in.

                But either way, it's worth trying.
                You are right! The results look good after I add -B in the command line. Many thanks to you!

                Comment

                • pengchy
                  Senior Member
                  • Feb 2009
                  • 116

                  #9
                  Originally posted by swbarnes2 View Post
                  I've had too many experiences where the BAQ calculations ate real SNPs, I always turn it off now. So you might be losing lots of real SNPs in mpileup, which is why the ones you do get aren't as likely to be real.
                  hi,

                  I have checked the difference between the mpileup results with and without -B. The following SNP is filtered without -B but retained with -B
                  Code:
                  scaffold1454    124026  .       C       T       74      .       DP=8;VDB=0.0000;AF1=1;AC1=2;DP4=0,0,0,8;MQ=25;FQ=-51    GT:PL:DP:SP:GQ  1/1:107,24,0:8:0:45
                  but when i check the reads quality from the cns file generated from pileup
                  Code:
                  scaffold1454    124026  C       N       0       0       0       8       ^:t^:t^:t^:t^:t^:t^:t^:t        !!!!!!!!
                  It seems this position locates at the end of the read and the quality is not very high. So the filtering is reasonable.

                  Comment

                  • colindaven
                    Senior Member
                    • Oct 2008
                    • 417

                    #10
                    I've also found BAQ correction to be unhelpful when comparing triplicates of closely related bacteria.

                    Without BAQ, about 90-95 % of reads covering SNPs are listed as "high quality" in Samtools VCF output format.

                    With BAQ, frequently only about 5-10 % of reads covering SNPs are high quality.

                    I am not sure if BAQ has been extensively tested on bacteria, which in this example have higher rates of variation, i.e. more SNPs in any given region, than in humans.

                    Comment

                    Latest Articles

                    Collapse

                    • 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
                    • SEQadmin2
                      Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                      by SEQadmin2



                      Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                      There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                      07-08-2026, 05:17 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, 07-24-2026, 12:17 PM
                    0 responses
                    31 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-23-2026, 11:41 AM
                    0 responses
                    23 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-20-2026, 11:10 AM
                    0 responses
                    214 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-13-2026, 10:26 AM
                    0 responses
                    79 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...