Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrfox
    Senior Member
    • Aug 2010
    • 103

    #1

    large BAM, but very small mpileup file

    hi all,
    I applied samtools mpileup to 7 exom-seq samples(human), whose bam biles were generated using BWA. Since I used a for loop to process the samples, the output should be similar. However, for one of the samples, the mpileup file contains only ~1000 lines, with a few lines for each chromosome. Other samples' mpileup files look good with many many more lines.

    I used samtools flagstat to check the BAM file and found that
    very few reads (only 34) were properly paired. I wonder if this is the reason that cause the mpileup problem. More important, does that show something wrong for the library preparation in the sequencing experiment?

    95045628 + 0 in total (QC-passed reads + QC-failed reads)
    31755322 + 0 duplicates
    95045628 + 0 mapped (100.00%:nan%)
    95045628 + 0 paired in sequencing
    47522831 + 0 read1
    47522797 + 0 read2
    34 + 0 properly paired (0.00%:nan%)
    ..

    In contrast, the properly paired reads are many in other samples, e.g.,:
    120529538 + 0 in total (QC-passed reads + QC-failed reads)
    27401894 + 0 duplicates
    120529538 + 0 mapped (100.00%:nan%)
    120529538 + 0 paired in sequencing
    60469618 + 0 read1
    60059920 + 0 read2
    119251912 + 0 properly paired (98.94%:nan%)



    (In all BAM files, I removed unmapped reads, so do not be surprised that mapping rate is 100%.)
    Last edited by mrfox; 10-16-2012, 09:23 PM.
  • westerman
    Rick Westerman
    • Jun 2008
    • 1104

    #2
    Originally posted by mrfox View Post
    hi all,

    I used samtools flagstat to check the BAM file and found that
    very few reads (only 34) were properly paired. I wonder if this is the reason that cause the mpileup problem.
    Possibly. But even if it is not the cause of the mpileup problem, the lack of pairing is indicative of a more basic problem that needs to be solved first.

    More important, does that show something wrong for the library preparation in the sequencing experiment?
    Likely. You really should dig deeper into the data so that you can tell the lab prep people what went wrong. My gut feeling is that you have just a handful of different fragments that were amplified and are thus suffering from a lack of complexity. But it also could be that many of the fragments were degraded to a point where they map but do not pair. Or perhaps, similar to the first idea, perhaps you just sequenced highly repetitive areas; these can be mapped but pairing would be questionable. Or ... well, dig in and let us know!

    Comment

    • mrfox
      Senior Member
      • Aug 2010
      • 103

      #3
      Thanks for the hints Westerman. I loaded two BAM files to IGV, the upper is for a good sample G, the majority of its reads were properly paired, and the lower is for the bad sample B. The alignments were colored by pairing orientation. The region is a segment of chrM.



      The observation is that 1) the coverages of the two samples are similar, but 2) nearly no reads were properly paired in the bad sample. Actually if I move the mouse to an individual read, mostly likely I found "insert size = 0" and "Pair orientation=R1R2" or F1F2/F2F1, which looks weird.

      So how should we interprete the observation? How come the reads were not paired? Is the problem in library preparation?

      Comment

      • swbarnes2
        Senior Member
        • May 2008
        • 910

        #4
        Originally posted by mrfox View Post

        The observation is that 1) the coverages of the two samples are similar, but 2) nearly no reads were properly paired in the bad sample. Actually if I move the mouse to an individual read, mostly likely I found "insert size = 0" and "Pair orientation=R1R2" or F1F2/F2F1, which looks weird.

        So how should we interprete the observation? How come the reads were not paired? Is the problem in library preparation?
        Is it possible that when making the .bam, you accidentally used read 1 twice, instead of read 1 and read 2? That would explain the insert sizes of 0, and both reads in the same direction.

        Comment

        • westerman
          Rick Westerman
          • Jun 2008
          • 1104

          #5
          I'll agree with swbarnes -- probably your analysis was wrong. Alternatively the two files are the same; e.g R1 was copied to R2 or vice-versa. Other possibility is that you have an R1 from one sample and an R2 from another.

          Comment

          • mrfox
            Senior Member
            • Aug 2010
            • 103

            #6
            I also realized this problem: I went back to check the bam files created half a year ago and found that indeed R2 was replaced by R1 by mistake. --I should have checked everything from the very beginning.Now the problem was solved. Thank you all for your help!

            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
            10 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 08-03-2026, 10:13 AM
            0 responses
            25 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-31-2026, 02:55 AM
            0 responses
            38 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...