Unconfigured Ad

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

    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

                          • 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.
                            Yesterday, 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
                          • SEQadmin2
                            From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                            by SEQadmin2


                            Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                            The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                            ...
                            06-02-2026, 10:05 AM

                          ad_right_rmr

                          Collapse

                          News

                          Collapse

                          Topics Statistics Last Post
                          Started by SEQadmin2, 06-30-2026, 05:37 AM
                          0 responses
                          11 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 06-26-2026, 11:10 AM
                          0 responses
                          18 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 06-17-2026, 06:09 AM
                          0 responses
                          52 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 06-09-2026, 11:58 AM
                          0 responses
                          111 views
                          0 reactions
                          Last Post SEQadmin2  
                          Working...