Announcement

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

  • 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.

  • #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


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

      Comment


      • #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

        • seqadmin
          Advanced Tools Transforming the Field of Cytogenomics
          by seqadmin


          At the intersection of cytogenetics and genomics lies the exciting field of cytogenomics. It focuses on studying chromosomes at a molecular scale, involving techniques that analyze either the whole genome or particular DNA sequences to examine variations in structure and behavior at the chromosomal or subchromosomal level. By integrating cytogenetic techniques with genomic analysis, researchers can effectively investigate chromosomal abnormalities related to diseases, particularly...
          09-26-2023, 06:26 AM
        • seqadmin
          How RNA-Seq is Transforming Cancer Studies
          by seqadmin



          Cancer research has been transformed through numerous molecular techniques, with RNA sequencing (RNA-seq) playing a crucial role in understanding the complexity of the disease. Maša Ivin, Ph.D., Scientific Writer at Lexogen, and Yvonne Goepel Ph.D., Product Manager at Lexogen, remarked that “The high-throughput nature of RNA-seq allows for rapid profiling and deep exploration of the transcriptome.” They emphasized its indispensable role in cancer research, aiding in biomarker...
          09-07-2023, 11:15 PM
        • seqadmin
          Methods for Investigating the Transcriptome
          by seqadmin




          Ribonucleic acid (RNA) represents a range of diverse molecules that play a crucial role in many cellular processes. From serving as a protein template to regulating genes, the complex processes involving RNA make it a focal point of study for many scientists. This article will spotlight various methods scientists have developed to investigate different RNA subtypes and the broader transcriptome.

          Whole Transcriptome RNA-seq
          Whole transcriptome sequencing...
          08-31-2023, 11:07 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Yesterday, 06:57 AM
        0 responses
        6 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 09-26-2023, 07:53 AM
        0 responses
        8 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 09-25-2023, 07:42 AM
        0 responses
        14 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 09-22-2023, 09:05 AM
        0 responses
        44 views
        0 likes
        Last Post seqadmin  
        Working...
        X