Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • SAM to BAM problem

    Parse warning at line 27: mapped sequence without CIGAR
    Parse error at line 27: sequence and quality are inconsistent
    Aborted



    I used BWASW for alignment. Any help ??

    Comment


    • Originally posted by abi View Post
      Parse warning at line 27: mapped sequence without CIGAR
      Parse error at line 27: sequence and quality are inconsistent
      Aborted



      I used BWASW for alignment. Any help ??
      Was the file truncated at that line? Otherwise it'd be helpful to see that line of the SAM file.

      Comment


      • No the file was not truncated at line 27. Here is the line:

        0 chr4 96674301 60 227M * 0 0 TCTTTGAAACCAACGAGAACAAAGACACAACATACCAGAATCTCTGGGACACATTTAAAGCAGTGTGTAGAGGGAAATTTACAGCAGTAAATGCCCACAAGAGAATGCAGGAAAGATCTAAAATTGACACCCTAACATCAAAATTAAAAGAACTAGAGAAGCAAGAGCAATCACATTCAAAAGCTAGCAGAAGGCAAGAAATAACTAAGATCAGAGCAGAACTGAAG * NM:i:0 AS:i:227 XS:i:0


        I am using bwa-0.7.4 for my alignment .

        I must say that I used FASTA file for alignment and not FASTQ file. Here is a sample line from FASTA file:

        > MySpecies 207
        GGAGCCTTAAGGTTTGGTTATCGCCTTGTGTTTGTTTCTGGGGGTATCTGTGGGGTATGTGTTTCTGGCCATGTGTCTGTGTCTGTGTCTCTAGGCTGTCTTCTAGTCTCAGCTTGAGATCCACAGGCTTCAAGAGCTCAAGGGGGGAAAAGCCCAATTGTATATAAATTGTGAATGGGACTGATGCGTATGAGACAGGGAGGGTCT

        Comment


        • I have seen similar issues with BWA 0.7 greater, same command runs absolutely fine with 0.7 version of BWA.

          Comment


          • @abi , lh3, sbaheti, dpryan, Hena and rest

            I have the answer to you. There is a bug in newer versions of BWA. It does not produces right SAM files for those sequences which have their Fasta/Fastq files starting with > and a space. As an example:

            This will not produce right SAM files
            > My sequence

            This will produce right SAM files
            >My sequence


            Notice the difference in space after '>'

            Hope this helps. You can read more about me at www.tinyurl.com/abinarain

            Cheers
            Narain
            Last edited by narain; 06-05-2013, 09:40 AM.

            Comment


            • [samopen] SAM header is present: 84 sequences.
              [sam_read1] reference '121337031' is recognized as '*'.
              Parse warning at line 7932555: mapped sequence without CIGAR
              Parse error at line 7932555: sequence and quality are inconsistent
              Aborted (core dumped)


              I am getting this error... tried the suggestion on changing the MDI in the blast2sam.pl but it is still not working!

              Any suggestions will be appreciated.

              Comment


              • [samopen] SAM header is present: 84 sequences.
                [sam_read1] reference '121337031' is recognized as '*'.
                Parse warning at line 7932555: mapped sequence without CIGAR
                Parse error at line 7932555: sequence and quality are inconsistent
                Aborted (core dumped)

                The suggestion to change MDI in blast2sam pl did not work! Any suggestions will be appreciated.

                Comment


                • Blast2Sam won't work, because it is an outdated script (I have tried it several times without success). Try to align your sequences with bwa/bowtie.

                  Comment

                  Latest Articles

                  Collapse

                  • seqadmin
                    Advancing Precision Medicine for Rare Diseases in Children
                    by seqadmin




                    Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
                    12-16-2024, 07:57 AM
                  • seqadmin
                    Recent Advances in Sequencing Technologies
                    by seqadmin



                    Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

                    Long-Read Sequencing
                    Long-read sequencing has seen remarkable advancements,...
                    12-02-2024, 01:49 PM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, 12-17-2024, 10:28 AM
                  0 responses
                  33 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 12-13-2024, 08:24 AM
                  0 responses
                  49 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 12-12-2024, 07:41 AM
                  0 responses
                  34 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 12-11-2024, 07:45 AM
                  0 responses
                  46 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X