Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yenhuahuang1
    Junior Member
    • Jan 2010
    • 7

    #1

    samtools mpileup: -B or not to -B?

    Hi,

    I was using samtools (0.1.12a) mpileup and found that with the suggested default parameters as
    samtools mpileup -ug -f chrs.fa -r 1:1-100000 s_5_6_aligned.sorted.bam | bcftools view -cv -

    I just got no useful variants:
    [mpileup] 1 samples in 1 input files
    <mpileup> Set max per-sample depth to 8000
    ##fileformat=VCFv4.0
    #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT s_5_6_aligned.sorted.bam
    [afs] 0:0.000 1:0.000 2:0.000


    However, with -B in the parameter as
    samtools mpileup -Bug -f chrs.fa -r 1:1-100000 s_5_6_aligned.sorted.bam | bcftools view -cv -

    I got output as follows
    #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT s_5_6_aligned.sorted.bam
    1 10124 . C A 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,1,0;MQ=30 PL 30,3,0
    1 10127 . A C 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,1,0;MQ=30 PL 30,3,0
    1 10177 . A C 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,1,0;MQ=30 PL 30,3,0
    1 10241 . T C 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,1,0;MQ=30 PL 30,3,0
    1 17489 . A C 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,0,1;MQ=30 PL 30,3,0
    1 20132 . T G 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,1,0;MQ=30 PL 30,3,0
    1 69511 . A G 99 . DP=37;AF1=1;CI95=1,1;DP4=0,0,11,26;MQ=26 PL 255,111,0
    1 75933 . A C 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,0,1;MQ=30 PL 30,3,0
    1 88318 . A C 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,0,1;MQ=30 PL 30,3,0
    1 89923 . A C 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,1,0;MQ=30 PL 30,3,0
    1 89925 . T G 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,1,0;MQ=30 PL 30,3,0
    [afs] 0:17934.984 1:9.871 2:6.145

    Questions:
    1. Does this mean that the seq qual (or depth) of my reads is low?
    2. Any other parameters for mpileup should be tried?

    Many thanks.
    Last edited by yenhuahuang1; 01-14-2011, 07:15 PM.
  • yenhuahuang1
    Junior Member
    • Jan 2010
    • 7

    #2
    [follow up!] partially resolved by using bwa, but not soap2

    I just noticed that this bam file I have prepared did not contain mapping information such as "XT:A:U *X0:i:1 *X1:i:5 *XM:i:0 *XO:i:0 *XG:i:0".

    This bam file was generated by using soap2sam.pl and then samtools view ...

    Now I switch to bwa and mapping information is now complete (containing XT:A:U *X0:i:1 *X1:i:5 *XM:i:0 *XO:i:0 *XG:i:0, etc.). Using samtools mpileup with its default parameters and piping the output to bcftools can show variant information.

    Does this mean that samtools mpileup use such mapping information to dump variants?

    Comment

    • sergiodealencar
      Junior Member
      • Feb 2011
      • 3

      #3
      Originally posted by yenhuahuang1 View Post
      Hi,

      I was using samtools (0.1.12a) mpileup and found that with the suggested default parameters as
      samtools mpileup -ug -f chrs.fa -r 1:1-100000 s_5_6_aligned.sorted.bam | bcftools view -cv -

      I just got no useful variants:
      [mpileup] 1 samples in 1 input files
      <mpileup> Set max per-sample depth to 8000
      ##fileformat=VCFv4.0
      #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT s_5_6_aligned.sorted.bam
      [afs] 0:0.000 1:0.000 2:0.000


      However, with -B in the parameter as
      samtools mpileup -Bug -f chrs.fa -r 1:1-100000 s_5_6_aligned.sorted.bam | bcftools view -cv -

      I got output as follows
      #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT s_5_6_aligned.sorted.bam
      1 10124 . C A 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,1,0;MQ=30 PL 30,3,0
      1 10127 . A C 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,1,0;MQ=30 PL 30,3,0
      1 10177 . A C 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,1,0;MQ=30 PL 30,3,0
      1 10241 . T C 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,1,0;MQ=30 PL 30,3,0
      1 17489 . A C 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,0,1;MQ=30 PL 30,3,0
      1 20132 . T G 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,1,0;MQ=30 PL 30,3,0
      1 69511 . A G 99 . DP=37;AF1=1;CI95=1,1;DP4=0,0,11,26;MQ=26 PL 255,111,0
      1 75933 . A C 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,0,1;MQ=30 PL 30,3,0
      1 88318 . A C 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,0,1;MQ=30 PL 30,3,0
      1 89923 . A C 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,1,0;MQ=30 PL 30,3,0
      1 89925 . T G 3.02 . DP=1;AF1=0.9999;CI95=0.5,1;DP4=0,0,1,0;MQ=30 PL 30,3,0
      [afs] 0:17934.984 1:9.871 2:6.145

      Questions:
      1. Does this mean that the seq qual (or depth) of my reads is low?
      2. Any other parameters for mpileup should be tried?

      Many thanks.
      Hi yenhuahuang1,

      The read depth (DP) shown in your output is indeed low, with most of them being equal to 1.

      Cheers,
      Sérgio

      Comment

      • kissthefuture
        Junior Member
        • Apr 2011
        • 6

        #4
        Originally posted by sergiodealencar View Post
        Hi yenhuahuang1,

        The read depth (DP) shown in your output is indeed low, with most of them being equal to 1.

        Cheers,
        Sérgio
        You can see the reply in this page http://seqanswers.com/forums/showthread.php?t=8786.
        And you can try samtools mpileup -B

        Comment

        • maize
          Junior Member
          • Apr 2011
          • 9

          #5
          snp calling with samtools in transcriptome data

          hi all,
          i am a new for snp calling with samtools in transcriptome data. recently, i am trying to call snps with samtools. I set the option as follows:
          samtools mpileup -B -ugSD -f ref.fa aln_sorted.bam | bcftools view -Nbcvg - > aa.bcf
          i use the default that samtools manual lists.but i think i need set the option,especially for -D(such as -D100), according to my data, but i don't know the rules or criterion clearly. i think the -D is difficult to set because the data is from RNA-seq. so i am not dry behind the ears for this.
          can you help me, dear? thx~

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
            by SEQadmin2



            CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

            Despite this, “CRISPR helped turn genome editing from a specialized technique into
            ...
            07-31-2026, 11:01 AM
          • 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

          ad_right_rmr

          Collapse

          News

          Collapse

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