Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rkizen
    Member
    • Jun 2013
    • 20

    #1

    GMAP SAM output has an error when converting to BAM

    Hello,

    I am using GMAP to map cDNA sequences but when I try to convert the SAM files to BAM I get this error:

    Line 25706, sequence length 519 vs 499 from CIGAR
    Parse error at line 25706: CIGAR and sequence length are inconsistent

    I checked this sequence in the SAM file and there is indeed a discrepancy between the length of the sequence and the CIGAR.

    This is the line from the SAM file that is causing the problem:

    m140206_015639_42149_c100624452550000001823118308061485_s1_p0/61037/33_552_CCS 16 AADN03010840.1 1984 40 5S4M1I1M1I1M1I1M2D1M1I1M1I12M10D27M7I6M6D2M8I3M2D2M2D5M2I5M9D7M2D23M1D8M1I1M1107N8M1I12M1I48M1I56M1I41M1D28M1D6M728N78M5334N1I6M1I43M101N28M1S * 0 0 CTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTCTTTTTTTTTTTTTTGTTTTTTTTCTCTTTCTTTTTTTTTTTTCGTTTTTTTCACAGACCAGCGACGTGTTATTACATCTACCGCAGTACAGGTTGTATTTGCCGAGCGCCCTTGGGGTGGGGGCTGCTGTCGGCTGCCCTTGTAGGAGCCAGAATTGCTGCTGCTGCTCAGCGAGGAGGTGGCCGTAGGTGTCCCTCCCAGGGGGCGAGGGGCGCCTGGAGGCAGGGAGAAGAGGCTGGTGTCTCAGGCCGAGTGGCTGAGGGCGCTGACGACTTAAAGAGGAGGCAAAACCACTCCGTCCATAAAGCCGCGACTTCGTGATCCGGTGGATGAGCGTCTGCTCCCCGGCAGAGACATGGCCACGGTGCCGCGGGTCCTGGGCACAGGGGACACTGCGCGGGGGCCCGCGGCTCTCAGGGGCGGCAGCGCCGGGCTCAGCGACCTGCGCCGGCCTCCATGGGTGAGGCGGCC * MD:Z:1GCA0G0C0C^GC1C0C1GCG1G2C2^CAGGCGGGCC2CAGG1GCCG1A1GCACAC3C4GC1G1^AGGGGG5^GT2^TG1TC7^GGTGGTTTG2GC3^GG0T1GT1A1T1C13^G95G78^A28^C83A70C6 NH:i:1 HI:i:1 NM:i:110 SM:i:40 XQ:i:40 X2:i:0 XO:Z:UU XS:A:- PG:Z:M

    Has anyone encountered this issue before? What is causing GMAP to produce an incorrect CIGAR for that sequence?
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #2
    Bugs happen; I suggest you report it to the authors and remove that read.

    Comment

    • rkizen
      Member
      • Jun 2013
      • 20

      #3
      Right it seems the error has been brought up before and the newest release (2014-05-15.v2) was supposed to fix it.

      I installed it and ran it and got the same errors on different reads. Actually there were more errors this time. The release I had used earlier was gmap-2014-04-06.

      I wrote a script to remove the erroneous lines from the sam files but I am still curious as to what is causing this error and if there may be some hidden errors associated with it.

      I will send a report to the developer.

      Comment

      • Brian Bushnell
        Super Moderator
        • Jan 2014
        • 2709

        #4
        If you are encountering multiple problematic reads, you could try BBMap as an alternative. It's one of the few aligners designed for DNA and RNA sequencing of both Illumina and PacBio reads, and it does not require any reference annotation. A typical command (for PacBio RNA-seq) would be:

        mapPacBio8k in=reads.fa out=mapped.sam ref=organism.fa maxindel=200000

        Please let me know if you encounter any problems!

        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, Yesterday, 11:13 AM
        0 responses
        19 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, Yesterday, 10:48 AM
        0 responses
        18 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...