Announcement

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

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

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


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


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


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

          • seqadmin
            Advanced Tools Transforming the Field of Cytogenomics
            by seqadmin


            At the intersection of cytogenetics and genomics lies the exciting field of cytogenomics. It focuses on studying chromosomes at a molecular scale, involving techniques that analyze either the whole genome or particular DNA sequences to examine variations in structure and behavior at the chromosomal or subchromosomal level. By integrating cytogenetic techniques with genomic analysis, researchers can effectively investigate chromosomal abnormalities related to diseases, particularly...
            09-26-2023, 06:26 AM
          • seqadmin
            How RNA-Seq is Transforming Cancer Studies
            by seqadmin



            Cancer research has been transformed through numerous molecular techniques, with RNA sequencing (RNA-seq) playing a crucial role in understanding the complexity of the disease. Maša Ivin, Ph.D., Scientific Writer at Lexogen, and Yvonne Goepel Ph.D., Product Manager at Lexogen, remarked that “The high-throughput nature of RNA-seq allows for rapid profiling and deep exploration of the transcriptome.” They emphasized its indispensable role in cancer research, aiding in biomarker...
            09-07-2023, 11:15 PM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, Yesterday, 09:36 AM
          0 responses
          8 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 10-02-2023, 07:14 AM
          0 responses
          15 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 09-29-2023, 09:38 AM
          0 responses
          16 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 09-27-2023, 06:57 AM
          0 responses
          16 views
          0 likes
          Last Post seqadmin  
          Working...
          X