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