Unconfigured Ad

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

    #1

    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
                      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                      by SEQadmin2



                      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                      ...
                      Yesterday, 09:55 AM
                    • SEQadmin2
                      New Genomics Technologies Take Aim at Long-Standing Limits
                      by SEQadmin2


                      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                      ...
                      09-28-2026, 10:25 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, Yesterday, 05:39 AM
                    0 responses
                    14 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-13-2026, 09:56 AM
                    0 responses
                    15 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-09-2026, 11:14 AM
                    0 responses
                    27 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 09-29-2026, 09:51 AM
                    0 responses
                    78 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...