Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • KNS
    Member
    • Aug 2010
    • 17

    differences in coverage BEDtools - samtools mpileup

    Hi,
    I have been using samtools mpileup and BEDtools coverageBed under default settings to count coverages at SNP sites identified with samtools mpileup. Both programs used the same paired BAM files produced by the Bioscope reference mapper as input. Samtools mpileup should report coverages under the DP and (quality checked) DP4 values in the vcf-fileoutput, while coverageBed reports all features in the file covering identified sites. I noted that BEDtools counts are much higher than those reported by samtools.

    What am I getting wrong? Or if not, based on what criteria are reads counted? Any suggestions much appreciated!

    samtools 0.1.16 (r963:234):

    samtools mpileup -uf ref.fa aln1.bam aln2.bam | bcftools view -bvcg - > var.raw.bcf
    bcftools view var.raw.bcf | vcfutils.pl varFilter -D100 > var.flt.vcf

    coverageBed (v2.12.0):
    samtools view -b /path/to/folder/A_paired_sorted.bam | ./coverageBed -abam /path/to/folder/A_paired_sorted.bam -b /path/to/folder/SNPs_zerobased.bed > /path/to/folder/counts_A_s.txt

    fileformat SNPs_zerobased.bed file(includes only sites which interest me):
    scaffold_1 7354 7355

    example vcf line (4 separate samples sequenced):
    scaffold_1 7355 . A T 257 . DP=15;AF1=0.8585;CI95=0.625,0.875;DP4=0,1,0,12;MQ=34;FQ=-7.6;PV4=1,0.34,0.058,0.41 GT:PLP:SP:GQ 1/1:36,6,0:2:0:11 1/1:82,9,0:3:32668:13 0/1:81,0,28:4:8249856:24 1/1:101,12,0:4:0:16

    separate counts in coverageBeds for each sample
    scaffold_1 7354 7355 4 1 1 1.0000000
    scaffold_1 7354 7355 5 1 1 1.0000000
    scaffold_1 7354 7355 6 1 1 1.0000000
    scaffold_1 7354 7355 6 1 1 1.0000000

    counts from samtools mpileup: DP=15 (DP4=13)
    counts from coverageBed: 21
  • KNS
    Member
    • Aug 2010
    • 17

    #2
    can anyone help?

    Comment

    • aslihan
      Member
      • Jun 2011
      • 23

      #3
      Did you find a solution to your problem? I have also similar questions.

      Thanks

      Comment

      • KNS
        Member
        • Aug 2010
        • 17

        #4
        Alishan,
        two ways to get at counts etc.
        1) Use one of the old samtools versions - 0.1.12a seemed ok.
        2) Even better: Use GATK

        Comment

        Latest Articles

        Collapse

        • GATTACAT
          Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
          by GATTACAT
          Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
          07-01-2026, 11:43 AM
        • SEQadmin2
          Nine Things a Sample Prep Scientist Thinks About Before Sequencing
          by SEQadmin2


          I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

          Here are nine questions we think about, in roughly the order they matter, before...
          06-18-2026, 07:11 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 07-02-2026, 11:08 AM
        0 responses
        13 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-30-2026, 05:37 AM
        0 responses
        15 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-26-2026, 11:10 AM
        0 responses
        20 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-17-2026, 06:09 AM
        0 responses
        54 views
        0 reactions
        Last Post SEQadmin2  
        Working...