Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • myi
    Junior Member
    • Feb 2012
    • 2

    #1

    Impact on quality of SNP calls using samtools mpileup

    I have a question on the impact on quality of SNP calls using samtools mpileup: calling each sample individually vs calling all samples altogether
    I basically follow the samtools URL:
    http://samtools.sourceforge.net/mpileup.shtml and
    http://samtools.sourceforge.net/samtools.shtml (except using -D 2000 or -d 10 for filtering)

    the commands I used basically like below:
    Call all samples together (each bam file is from exome-seq of one sample )
    samtools mpileup -ugf ref.fa aln1.bam aln2.bam aln3.bam ... *.bam| bcftools view -bvcg - > var.raw.bcf
    bcftools view var.raw.bcf | vcfutils.pl varFilter -d 10 > var.flt.vcf

    Call one samples a time (each bam file is from one sample)
    for loop (for each bam file x.bam)
    samtools mpileup -ugf ref.fa x.bam| bcftools view -bvcg - > var.raw.bcf
    bcftools view var.raw.bcf | vcfutils.pl varFilter -d 10 > var.flt.vcf
    end of loop

    We observed that if we use samtools to call each sample (bam file) individually one at a time or call all samples (multiple bam files) together, then we seem get a better SNP calls if we call individually than if we call them altogether (of course we get one vcf file for each sample/bam file if call individually, whereas just one single vcf file for all SNPs of all samples for calling them altogether. We do lose homo reference SNPs in vcf file if calling individually, since for single sample, we only see hetero or homo variant, no homo reference unless we call multiple sample altogether, then some samples would have homo reference calls for sites that other samples were called as hetero or homo variants)

    Does any one have similar observation or any comments or insight for such observation (get better SNP calls if we call individually than if call together)? Since I know most people would call all bam files altogether and would not think that calling each sample individually would get a better quality SNPs (using samtools mpileup SNP call). Any interpretation from algorithm side of samtools? We all thought it shall not matter, but we do have bench mark data to show that is true at least in our hand. We use -d 10 or -D 2000 in the filtering step for both cases.
  • dan
    wiki wiki
    • Jul 2008
    • 194

    #2
    Have you asked on the samtools mailing list?



    I'd be interested to hear the reply.
    Homepage: Dan Bolser
    MetaBase the database of biological databases.

    Comment

    • myi
      Junior Member
      • Feb 2012
      • 2

      #3
      Thanks, Dan! yes, I did, but not much luck and input from there...

      Comment

      • Ele
        Junior Member
        • Mar 2014
        • 1

        #4
        mpileup vs single calling

        Did you obtaned any answer for this??
        I am wondering why I obtain a higher total amount of variants during single callings than if i do mpileup with samtools even filtering in the same way for both approaches

        for several files
        Originally posted by myi View Post
        I have a question on the impact on quality of SNP calls using samtools mpileup: calling each sample individually vs calling all samples altogether
        I basically follow the samtools URL:
        http://samtools.sourceforge.net/mpileup.shtml and
        http://samtools.sourceforge.net/samtools.shtml (except using -D 2000 or -d 10 for filtering)

        the commands I used basically like below:
        Call all samples together (each bam file is from exome-seq of one sample )
        samtools mpileup -ugf ref.fa aln1.bam aln2.bam aln3.bam ... *.bam| bcftools view -bvcg - > var.raw.bcf
        bcftools view var.raw.bcf | vcfutils.pl varFilter -d 10 > var.flt.vcf

        Call one samples a time (each bam file is from one sample)
        for loop (for each bam file x.bam)
        samtools mpileup -ugf ref.fa x.bam| bcftools view -bvcg - > var.raw.bcf
        bcftools view var.raw.bcf | vcfutils.pl varFilter -d 10 > var.flt.vcf
        end of loop

        We observed that if we use samtools to call each sample (bam file) individually one at a time or call all samples (multiple bam files) together, then we seem get a better SNP calls if we call individually than if we call them altogether (of course we get one vcf file for each sample/bam file if call individually, whereas just one single vcf file for all SNPs of all samples for calling them altogether. We do lose homo reference SNPs in vcf file if calling individually, since for single sample, we only see hetero or homo variant, no homo reference unless we call multiple sample altogether, then some samples would have homo reference calls for sites that other samples were called as hetero or homo variants)

        Does any one have similar observation or any comments or insight for such observation (get better SNP calls if we call individually than if call together)? Since I know most people would call all bam files altogether and would not think that calling each sample individually would get a better quality SNPs (using samtools mpileup SNP call). Any interpretation from algorithm side of samtools? We all thought it shall not matter, but we do have bench mark data to show that is true at least in our hand. We use -d 10 or -D 2000 in the filtering step for both cases.

        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
          ...
          10-14-2026, 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, 11:13 AM
        0 responses
        21 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, Yesterday, 10:48 AM
        0 responses
        18 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        36 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        42 views
        0 reactions
        Last Post SEQadmin2  
        Working...