Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ravaf
    Junior Member
    • Aug 2015
    • 2

    #1

    samtools mpileup possible bug

    Hello,

    I noticed that last sample (last 3 columns) in mpileup format behave strangely in positions with low base quality (< 13). It looks like:

    0

    where it should be:

    0 * *

    Does anyone have similar issue? Is this a bug?

    It confuses my downstream scripts, because there are fewer columns in those positions than expected.

    I am using Version: 1.2 (using htslib 1.2.1)
  • dgscofield
    Member
    • Nov 2010
    • 28

    #2
    It's a longstanding "feature" of samtools mpileup when coverage is 0 because of excluded bases rather than no mapped reads. I would imagine by now there are many scripts that check for this case and they might break if the mpileup were changed. I would simply modify your script to handle this case.

    Comment

    • Ravaf
      Junior Member
      • Aug 2015
      • 2

      #3
      Originally posted by dgscofield View Post
      It's a longstanding "feature" of samtools mpileup when coverage is 0 because of excluded bases rather than no mapped reads. I would imagine by now there are many scripts that check for this case and they might break if the mpileup were changed. I would simply modify your script to handle this case.
      I see, would you happen to know if this "feature" occurs only in last individual, or in your experience - it can occur anywhere? Many thanks for your reply!

      Comment

      • dgscofield
        Member
        • Nov 2010
        • 28

        #4
        i believe it can occur anywhere, and i think you may find that the columns may be empty, but their positions are still delimited with tabs. so that instead of

        ... <tab> 0 <tab> * <tab> * <tab> ...

        it is

        .... <tab> 0 <tab> <tab> <tab> ...

        There is an additional wrinkle if you use the -s flag to include a read mapping quality column in the mpileup. In the case of "0 * *" entries, they are always three columns rather than the expected 4, while the "0 blank blank" entries are the expected four columns "0 blank blank blank".

        Comment

        • jmarshall
          Samtools maintainer
          • Jul 2009
          • 39

          #5
          The additional -s wrinkle has been fixed since samtools 1.0.

          Thanks for the reminder to revisit the main problem reported here.

          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, 10-22-2026, 11:13 AM
          0 responses
          23 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          20 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...