Unconfigured Ad

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

    #1

    Samtools mpileup. Which reads are excluded during SNP calling?

    Hi All,

    I have two questions about Samtools mpileup. Hope somebody can help me!

    First, I found 'mpileup' filters some reads/nts out before SNP calling (compared to command 'pileup'). How can I know which reads are actually filtered?

    Second, in 'pileup' output, we can directly see the nucleotides and corresponding base quality scores mapped to one position. Does mpileup provide similar output? Or mpileup just generates the VCF file?

    Many thanks!
  • dagarfield
    Member
    • Aug 2010
    • 39

    #2
    As I understand it, we shouldn't be using pileup anymore. Yes, the output is nice, but all of the same information is (somewhere) in the VCF file.

    As for what's being filtered out, however, I don't know. One of the default options is

    -Q INT skip bases with baseQ/BAQ smaller than INT [13]

    This suggests to me that you might be losing some bases with low baseQs or those with low BAQ scores (explained here: http://samtools.sourceforge.net/mpileup.shtml)

    I wish I could be of more help.

    Comment

    • wwmm933
      Member
      • Jan 2010
      • 17

      #3
      Originally posted by dagarfield View Post
      As I understand it, we shouldn't be using pileup anymore. Yes, the output is nice, but all of the same information is (somewhere) in the VCF file.

      As for what's being filtered out, however, I don't know. One of the default options is

      -Q INT skip bases with baseQ/BAQ smaller than INT [13]

      This suggests to me that you might be losing some bases with low baseQs or those with low BAQ scores (explained here: http://samtools.sourceforge.net/mpileup.shtml)

      I wish I could be of more help.
      Thank you! So we cannot get the specific nucleotides and corresponding base qualities from samtools anymore, right?

      Comment

      • dagarfield
        Member
        • Aug 2010
        • 39

        #4
        It is not obvious to me where that information is in the VCF file, if it is in there at all. However, you might be able to get something in the file generated by mpileup.

        Rather than generating a BCF formatted file with mpileup (as is outlined on the man page for mpileup), have you tried running mpileup without the -u and -g options? The output looks a whole lot like the output from old pileup.

        --DG

        Comment

        • oiiio
          Senior Member
          • Jan 2011
          • 105

          #5
          I've tried to run simply

          Code:
          samtools mpileup -f ref.fasta -b bam > out
          but I get "Segmentation Fault" almost immediately.
          @dagarfield
          Any ideas on what is going on? I though I'd drop you a question here because you said you have run it without the -u and -g options.

          Thanks,
          Gareth

          Comment

          • dagarfield
            Member
            • Aug 2010
            • 39

            #6
            I just ran mine with the following syntax

            Code:
            samtools mpileup -f myGenome.fasta myBam.bam > myoutput.txt
            Where myGenome.fasta is a fasta file on which I have run the command

            Code:
            samtools faidx myGenome.fasta
            In the same directory in which myGenome.fasta lives.

            This looks pretty much like what you did except for the -b option. I think you can (and maybe should) leave that out when you are running just a single BAM file. For the -b option, you'd specify not a BAM file but rather a file that contains a list of the BAM files you want to analyze.

            How'd that work?

            Comment

            • oiiio
              Senior Member
              • Jan 2011
              • 105

              #7
              You are right about the -b parameter being a list rather than a file. I think its time for some coffee.

              Thanks!

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