Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • bowtie CIGAR and MapQ errors

    Hello,

    I am mapping illumina reads of small RNAs to the Drosophila genome using bowtie1. My command:

    bowtie -S -n 0 -l 15 -k 200 --best ref.fa reads.fq > file.sam

    The map qualities and cigars are uniformly too good for the mapped reads. The cigars are all LM where L is the length of the read, despite in some cases there being mismatches as indicate in the NM field. MapQ is always 255 if the read is mapped.

    Has anyone ever seen this? Is bowtie just outputting meaningless cigars and mapQs?

    I am thinking of using bwa instead of bowtie.

    Thanks in advance.

  • #2
    This thread answers the mapQ question:

    Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc


    But I'm still confused about the cigar.

    Comment


    • #3
      A CIGAR of LM (for L==some number) is still correct in the presence of mismatches. M in this case simply means "mapped to a base in the reference", not "matches a base in the reference". Compare "M", "=" and "X" and see the SAM spec.

      Comment


      • #4
        Thanks for your reply, dpryan. But if I have a non-zero edit distance, shouldn't there be some X's in the cigar? Here are some fields from my file:

        MapQ: 255
        CIGAR: 30M
        NM:i:2

        And an alignment between the read and the reference sequence

        TATTACTTGTTTTTCTTTGCGACTTCGGGT
        TATTACTTGTTTTTCTTTGCGACTTCGTTT

        That cigar is not right but the NM field is.

        Comment


        • #5
          No, there shouldn't be. Again, reread what I wrote and the specification. An M CIGAR operation does not imply a sequence match between the query and reference. Very few aligners use X CIGAR operations (BBMap does and STAR are the only ones that I know of off-hand), so you have to parse the MD tag.

          Comment


          • #6
            Okay, I see it now. Thanks!

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Recent Advances in Sequencing Analysis Tools
              by seqadmin


              The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
              05-06-2024, 07:48 AM
            • seqadmin
              Essential Discoveries and Tools in Epitranscriptomics
              by seqadmin




              The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
              04-22-2024, 07:01 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Today, 06:35 AM
            0 responses
            12 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, Yesterday, 02:46 PM
            0 responses
            18 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-07-2024, 06:57 AM
            0 responses
            17 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-06-2024, 07:17 AM
            0 responses
            19 views
            0 likes
            Last Post seqadmin  
            Working...
            X