Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bioinf newbie
    Member
    • Feb 2012
    • 13

    #1

    Samtools mpileup

    I am using samtools mpileup on my data.
    I have used bwa for alignment of my NGS whole genome:
    bwa sampe ref.fa read?.sai read?.fq.gz > aln.sam
    After conversion to bam, and sorting using samtools I have used mpileup.
    But it is not giving the desired output. This is the output i get.

    [mpileup] 1 samples in 1 input files
    <mpileup> Set max per-file depth to 8000
    [afs] 0:0.000

    Thanks in advance
  • AWeller
    Junior Member
    • Feb 2011
    • 4

    #2
    The output you get is just the usual report samtools gives while running, not an error message.

    Nobody will be able to answer your question with this little information, sorry.
    Which command did you use for samtools mpileup?

    Cheers
    Andreas

    Comment

    • swbarnes2
      Senior Member
      • May 2008
      • 910

      #3
      Those steps sound right, did you do any eyeballing to make sure nothing's gone horribly wrong in your previous steps?

      Have you glanced at the sam? Have you looked at your .bam on IGV?

      Does your ref.fa.fai look okay? Does the mpileup output file have anything in it at all?

      Comment

      • bioinf newbie
        Member
        • Feb 2012
        • 13

        #4
        The output from mpileup is empty.
        The command I gave for mpileup is :
        [root@B Picard_processed]# samtools mpileup -uf /mnt/data/Genomics/Gaurav/Genome/Broad_Homo_sapiens_assembly19.fasta 47_singles.sorted.bam | bcftools view -bvcg - > 47.raw.bcf

        I checked my sam and bam files. they look ok..so is my ref.fa.fai

        But my alignment files from bowtie2 goes through mpileup without any problem.
        This issue is for the aligned files from bwa.

        Comment

        • AWeller
          Junior Member
          • Feb 2011
          • 4

          #5
          You tell bcftools to only give you variants, maybe something is wrong with the snp calling, e.g. your quality is so low that it doesn't call any snps or there just are no snps?
          Does samtools produce meaningful output if you just let it give you the raw basecalls (without using bcftools)?

          Comment

          • nanto
            Member
            • Sep 2012
            • 19

            #6
            mpileup makes some tricks to people. I had so many problems with it, so I downloaded samtools version with pileup option. There should be no problems then.
            Try samtools 0.1.15

            Comment

            • swbarnes2
              Senior Member
              • May 2008
              • 910

              #7
              I'm a little surprised that mpileup command works. I would think it would make a pileup file, not something suitable to put through bcftools.

              But looking at the pileup is also a good thing to do.

              Comment

              • nanto
                Member
                • Sep 2012
                • 19

                #8
                it can generate pileup format if you're interested in it. I'm using pileup format, cause I got used to parsing it in shell script :P But I was also doing some work with bcftools, but it's not very useful to me, cause SNPs weren't my concern

                Comment

                • bioinf newbie
                  Member
                  • Feb 2012
                  • 13

                  #9
                  This is strange!
                  I had the same sample aligned using bowtie2 and bwa.
                  For the bowtie aligned sample, mpileup works well..
                  [mpileup] 1 samples in 1 input files
                  <mpileup> Set max per-file depth to 8000
                  [bcfview] 100000 sites processed.
                  [afs] 0:81900.939 1:9681.844 2:8417.218
                  ..........................
                  but for the bwa aligned data:
                  [mpileup] 1 samples in 1 input files
                  <mpileup> Set max per-file depth to 8000
                  [afs] 0:0.000
                  [root@B samtools-0.1.15]#

                  Because it is the same sample, it cant be the quality of data that is causing the problem here right?
                  tried samtools 0.1.15 pileup too, to no avail.

                  Comment

                  • nanto
                    Member
                    • Sep 2012
                    • 19

                    #10
                    like i said mpileup makes some tricks, and also I had problems with bwa-sw with long reads or large files (thought it was core dump but even on a big machine it failed) so i started using pileup option and this works quick.

                    Look for samtools version 0.1.15 or older, they have all of them available on their download site.

                    EDIT:
                    You can also download galaxy and try mpileup from there (if you have confidential data use local galaxy at 8080 port)
                    Last edited by nanto; 10-11-2012, 05:18 AM.

                    Comment

                    • bioinf newbie
                      Member
                      • Feb 2012
                      • 13

                      #11
                      yes, i tried pileup from samtools version 0.1.15
                      no change in output..
                      [afs] 0:0.000
                      [root@B samtools-0.1.15]#

                      Comment

                      • nanto
                        Member
                        • Sep 2012
                        • 19

                        #12
                        so you have to dig in data from bwa.

                        Check if reference is indexed and you are using this reference file in mpileup, use sorted bam file, make sure you have generated bam file with headers, count lines in sam file to know if any reads get lost, compare with flagstat bam file and bam sorted file, if anything didn't go wrong on this step, and write a message to samtools mailing list, sometimes they response with something more than: blablablablabla do it yourself

                        Comment

                        • bioinf newbie
                          Member
                          • Feb 2012
                          • 13

                          #13
                          got it figured out. looks like it was my ref.fa.fai that was "corrupted". the one i was using was downloaded from a site. generated a new index file for reference. all is well.
                          many thanks for the help.

                          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
                          16 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, Yesterday, 10:48 AM
                          0 responses
                          17 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 10-15-2026, 10:52 AM
                          0 responses
                          35 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...