Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • afkoeppel
    Member
    • Jul 2011
    • 19

    mpileup with & without -q: odd result?

    Hello everyone,

    I'm running mpileup twice on the same BAM alignment of RNASeq reads against the same reference genome, with and without filtering for mapping quality (-q 5 or not), and getting, (I think) an odd result.

    I checked the same position on the same chromosome between the filtered and unfiltered output.
    In both cases, 7997 reads overlapped that position, but the counts of reads that matched the reference (,.) versus those that were mismatches (Aa) was drastically different between the two. Specifically, there were far more mismatches at that position in the filtered output than in the unfiltered output.

    If I'm understanding what -q does correctly, it should simply be disregarding alignments with a mapq score of lower than 5 (if I use -q 5), right? So I would understand if the number of reads overlapping the position was reduced, but I don't understand why the count of overlapping reads would remain the same, but the proportion of matches to mismatches would change.

    Can anyone help me make sense of this?

    Thanks,
    Alex

    P.S.
    samtools 0.1.18
    Linux OS
  • BAMseek
    Senior Member
    • Apr 2011
    • 124

    #2
    Samtools has a maximum depth cut-off in order to limit the amount of memory required, which leads to some odd behavior when you hit that max. I think the max is 8,000 and it looks like you are close to that. Try supplying the -d flag with a really large number (like 10 million), and see if the results are more what you expect.

    Justin

    Comment

    • afkoeppel
      Member
      • Jul 2011
      • 19

      #3
      That seems to have done the trick. Thanks.

      Comment

      Latest Articles

      Collapse

      • mylaser
        Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by mylaser
        Kheloyar – Everything You Need to Know About Kheloyaar Login and Kheoyar Id
        If you are looking for an online gaming platform that offers a user-friendly experience, Kheloyar has become a name that many users search for. Whether you're interested in creating a new account, accessing your dashboard through Kheloyaar Login, or learning how to obtain a Kheoyar Id, understanding the platform's features and account process is essential.
        This guide explains everything you need to know about...
        Yesterday, 01:13 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
      • SEQadmin2
        Cancer Drug Resistance: The Lingering Barrier to Rising Survival
        by SEQadmin2



        Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

        There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
        07-08-2026, 05:17 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 07-09-2026, 10:04 AM
      0 responses
      20 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-08-2026, 10:08 AM
      0 responses
      12 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-07-2026, 11:05 AM
      0 responses
      30 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-02-2026, 11:08 AM
      0 responses
      31 views
      0 reactions
      Last Post SEQadmin2  
      Working...