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
              Advancing Precision Medicine for Rare Diseases in Children
              by seqadmin




              Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
              12-16-2024, 07:57 AM
            • seqadmin
              Recent Advances in Sequencing Technologies
              by seqadmin



              Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

              Long-Read Sequencing
              Long-read sequencing has seen remarkable advancements,...
              12-02-2024, 01:49 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 12-17-2024, 10:28 AM
            0 responses
            26 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-13-2024, 08:24 AM
            0 responses
            42 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-12-2024, 07:41 AM
            0 responses
            28 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-11-2024, 07:45 AM
            0 responses
            42 views
            0 likes
            Last Post seqadmin  
            Working...
            X