Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #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


      • #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


        • #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


          • #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


            • #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


              • #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


                • #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


                  • #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


                    • #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


                      • #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


                        • #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

                          • seqadmin
                            Essential Discoveries and Tools in Epitranscriptomics
                            by seqadmin


                            The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
                            Yesterday, 07:01 AM
                          • seqadmin
                            Current Approaches to Protein Sequencing
                            by seqadmin


                            Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
                            04-04-2024, 04:25 PM

                          ad_right_rmr

                          Collapse

                          News

                          Collapse

                          Topics Statistics Last Post
                          Started by seqadmin, 04-11-2024, 12:08 PM
                          0 responses
                          39 views
                          0 likes
                          Last Post seqadmin  
                          Started by seqadmin, 04-10-2024, 10:19 PM
                          0 responses
                          41 views
                          0 likes
                          Last Post seqadmin  
                          Started by seqadmin, 04-10-2024, 09:21 AM
                          0 responses
                          35 views
                          0 likes
                          Last Post seqadmin  
                          Started by seqadmin, 04-04-2024, 09:00 AM
                          0 responses
                          55 views
                          0 likes
                          Last Post seqadmin  
                          Working...
                          X