Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JChase
    Member
    • Jun 2012
    • 17

    #1

    Problems with mpileup

    Hello,

    I'm having some issues with mpileup and am hoping someone might be able to shed some light on what I'm doing wrong. I used BWA to map PE Illumina reads to a fasta reference that contains about 20 individual transcripts from a closely related species. I was able to produce the appropriate sam, bam, and sorted bam files. Using samtools tviewer, I was able to look at the mapped reads for all of the genes in my reference file, and I can clearly see SNPs (and there is fairly good coverage). However, when I: samtools mpileup ref.fasta BWAout.sorted.bam > BWAout.mpileup the resulting mpileup is only made up of 45 lines, all of which seem to reference a single gene in the reference. Output is below. I find this very confusing, because as I mentioned before, I had reads that mapped to each of my reference genes, and it is easy to see SNPs during visual inspection.

    Any ideas?? Thanks in advance.

    gi|70778973|ref|NM_001025313.1| 1990 G 1 ^]. @
    gi|70778973|ref|NM_001025313.1| 1991 T 2 .^], @@
    gi|70778973|ref|NM_001025313.1| 1992 A 2 ., <C
    gi|70778973|ref|NM_001025313.1| 1993 G 2 ., DE
    gi|70778973|ref|NM_001025313.1| 1994 A 2 ., DC
    gi|70778973|ref|NM_001025313.1| 1995 C 2 ., DC
    gi|70778973|ref|NM_001025313.1| 1996 C 2 ., :A
    gi|70778973|ref|NM_001025313.1| 1997 A 2 ., BC
    gi|70778973|ref|NM_001025313.1| 1998 G 2 ., ?@
    gi|70778973|ref|NM_001025313.1| 1999 G 2 ., D5
    gi|70778973|ref|NM_001025313.1| 2000 C 2 ., D8
    gi|70778973|ref|NM_001025313.1| 2001 T 2 ., B(
    gi|70778973|ref|NM_001025313.1| 2002 G 2 ., A;
    gi|70778973|ref|NM_001025313.1| 2003 G 2 ., 8:
    gi|70778973|ref|NM_001025313.1| 2004 C 2 ., 1D
    gi|70778973|ref|NM_001025313.1| 2005 C 2 ., A3
    gi|70778973|ref|NM_001025313.1| 2006 T 2 ., 3B
    gi|70778973|ref|NM_001025313.1| 2007 C 2 ., C?
    gi|70778973|ref|NM_001025313.1| 2008 G 2 ., <D
    gi|70778973|ref|NM_001025313.1| 2009 A 2 ., E:
    gi|70778973|ref|NM_001025313.1| 2010 A 2 ., B*
    gi|70778973|ref|NM_001025313.1| 2011 C 2 ., ED
    gi|70778973|ref|NM_001025313.1| 2012 T 2 ., G9
    gi|70778973|ref|NM_001025313.1| 2013 C 2 ., GC
    gi|70778973|ref|NM_001025313.1| 2014 A 2 ., 9C
    gi|70778973|ref|NM_001025313.1| 2015 G 2 ., 9D
    gi|70778973|ref|NM_001025313.1| 2016 A 2 ., 9<
    gi|70778973|ref|NM_001025313.1| 2017 A 2 ., :C
    gi|70778973|ref|NM_001025313.1| 2018 A 2 ., C0
    gi|70778973|ref|NM_001025313.1| 2019 T 2 ., F:
    gi|70778973|ref|NM_001025313.1| 2020 C 2 ., DE
    gi|70778973|ref|NM_001025313.1| 2021 C 2 ., BE
    gi|70778973|ref|NM_001025313.1| 2022 G 2 ., E<
    gi|70778973|ref|NM_001025313.1| 2023 C 2 ., ?C
    gi|70778973|ref|NM_001025313.1| 2024 C 2 ., AD
    gi|70778973|ref|NM_001025313.1| 2025 T 2 ., FD
    gi|70778973|ref|NM_001025313.1| 2026 G 2 ., G?
    gi|70778973|ref|NM_001025313.1| 2027 C 2 ., 9D
    gi|70778973|ref|NM_001025313.1| 2028 C 2 ., DD
    gi|70778973|ref|NM_001025313.1| 2029 T 2 .$, >>
    gi|70778973|ref|NM_001025313.1| 2030 C 1 , D
    gi|70778973|ref|NM_001025313.1| 2031 T 1 , D
    gi|70778973|ref|NM_001025313.1| 2032 G 1 , ?
    gi|70778973|ref|NM_001025313.1| 2033 C 1 , ?
    gi|70778973|ref|NM_001025313.1| 2034 C 1 ,$ ?
  • Jane M
    Senior Member
    • Aug 2011
    • 239

    #2
    Hello,

    I don't know if it could solve your problem but did you run samtools mpileup with -B and -A options?

    Comment

    • JChase
      Member
      • Jun 2012
      • 17

      #3
      Originally posted by Jane M View Post
      Hello,

      I don't know if it could solve your problem but did you run samtools mpileup with -B and -A options?
      Oh wow, the -A option seems to have done the trick! However, I'm a bit confused about what samtools means by "anomolous read pairs"... Should I now be concerned about my BWA output?

      Thanks again!

      Comment

      • Jane M
        Senior Member
        • Aug 2011
        • 239

        #4
        I don't understand clearly how these options -A and -B work... I don't think you should worry about your BWA output, this problem is a known issue of samtools mpileup...

        Comment

        • swbarnes2
          Senior Member
          • May 2008
          • 910

          #5
          -B disengages some kind of correction calculation on the quality of bases. Sometimes, it 'corrects' the quality of good bases so that they look terrible, and then the variant caller skips over them, and won't call SNPs.

          I'm not 100% sure about anomolous read pairs, I'm guessing it means reads that are way too far apart, or don't have the right orientation.

          Comment

          • baika
            Member
            • Apr 2012
            • 12

            #6
            First do this:
            $ samtools mpileup –D –ugf Reference-sequence.fasta yoursample_sorted.bam | bcftools view –bvcg - > yoursample_mpileup.bcf

            Then use:

            bcftools view yoursample_mpileup.bcf | vcfutils.pl varFilter –D500 > yoursample_mpileup.vcf

            The VCF file should have what you need! Please respond if it does not work.

            baika

            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, Yesterday, 07:41 AM
            0 responses
            12 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 08-03-2026, 10:13 AM
            0 responses
            27 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-31-2026, 02:55 AM
            0 responses
            39 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-24-2026, 12:17 PM
            0 responses
            25 views
            0 reactions
            Last Post SEQadmin2  
            Working...