Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kath
    Member
    • Nov 2010
    • 24

    #1

    Sam to Bam using Picard - help!

    Hi,

    I am trying to convert from sam to bam using Picard but am getting an error message (see below). Can anyone interpret this for me?

    Thanks!

    Kath

    [skgtkaf@login01 13655]$ java -jar /home/skgtkaf/ngs/picard-tools-1.35/SamFormatConverter.jar I=13655_q20.sam O=13655_q20.bam
    [Wed Nov 24 10:54:33 CET 2010] net.sf.picard.sam.SamFormatConverter INPUT=13655_q20.sam OUTPUT=13655_q20.bam TMP_DIR=/tmp/skgtkaf VERBOSITY=INFO QUIET=false VALIDATION_STRINGENCY=STRICT COMPRESSION_LEVEL=5 MAX_RECORDS_IN_RAM=500000 CREATE_INDEX=false CREATE_MD5_FILE=false
    [Wed Nov 24 10:54:33 CET 2010] net.sf.picard.sam.SamFormatConverter done.
    Runtime.totalMemory()=128843776
    Exception in thread "main" net.sf.samtools.SAMFormatException: Error parsing text SAM file. CIGAR should have zero elements for unmapped read.; Line 165
    Line: GA04_0001:4:1:1082:7316#0 133 chr12 27877005 0 35M43S =27877005 0 AAANNATNTNNTNNAATGANNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCTTANNANNACNNNNNNNNNN %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% XC:i:35
    at net.sf.samtools.SAMTextReader.reportErrorParsingLine(SAMTextReader.java:220)
    at net.sf.samtools.SAMTextReader.access$500(SAMTextReader.java:40)
    at net.sf.samtools.SAMTextReader$RecordIterator.parseLine(SAMTextReader.java:424)
    at net.sf.samtools.SAMTextReader$RecordIterator.next(SAMTextReader.java:268)
    at net.sf.samtools.SAMTextReader$RecordIterator.next(SAMTextReader.java:240)
    at net.sf.samtools.SAMFileReader$AssertableIterator.next(SAMFileReader.java:604)
    at net.sf.samtools.SAMFileReader$AssertableIterator.next(SAMFileReader.java:582)
    at net.sf.picard.sam.SamFormatConverter.doWork(SamFormatConverter.java:65)
    at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:156)
    at net.sf.picard.sam.SamFormatConverter.main(SamFormatConverter.java:73)
  • frozenlyse
    Senior Member
    • Sep 2008
    • 135

    #2
    What aligner are you using? From the SAM flag of that read (133) that read is unaligned and so picard wants it to have no defined CIGAR (which makes sense!) Have you tried samtools? May its less strict

    Comment

    • furious
      Junior Member
      • Oct 2009
      • 2

      #3
      I think you should change the VALIDATION_STRINGENCY option, read more about it here: http://seqanswers.com/forums/showthread.php?t=4246

      Comment

      • Kath
        Member
        • Nov 2010
        • 24

        #4
        Thanks for the suggestions. I used BWA to align the reads. I didn't realise you could use SAMtools to convert from SAM to BAM.

        Comment

        • Kath
          Member
          • Nov 2010
          • 24

          #5
          Ok, setting VALIDATION_STRINGENCY=LENIENT allows the .bam file to be produced. Thanks very much for your help!

          Comment

          • muzz56
            Member
            • Sep 2010
            • 14

            #6
            How did you set the validation=lenient?

            Comment

            • jstjohn
              Member
              • Jun 2010
              • 35

              #7
              Originally posted by muzz56 View Post
              How did you set the validation=lenient?
              just include that string "VALIDATION_STRINGENCY=LENIENT" somewhere in your command.

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                by SEQadmin2



                CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                Despite this, “CRISPR helped turn genome editing from a specialized technique into
                ...
                07-31-2026, 11:01 AM
              • SEQadmin2
                Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                by SEQadmin2


                Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                The systematic characterization of the human proteome has
                ...
                07-20-2026, 11:48 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Today, 12:22 PM
              0 responses
              12 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 08-11-2026, 10:35 AM
              0 responses
              13 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 08-06-2026, 07:41 AM
              0 responses
              30 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 08-03-2026, 10:13 AM
              0 responses
              48 views
              0 reactions
              Last Post SEQadmin2  
              Working...