Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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 ,$ ?

  • #2
    Hello,

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

    Comment


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


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


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


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

            • 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...
              04-22-2024, 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-25-2024, 11:49 AM
            0 responses
            20 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-24-2024, 08:47 AM
            0 responses
            20 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-11-2024, 12:08 PM
            0 responses
            62 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            61 views
            0 likes
            Last Post seqadmin  
            Working...
            X