Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Picard Error: IllegalArgumentException: Invalid fastq character:

    hi all

    I'm having trouble in using Picard to covert sam to bam. it seems to be halted by weird characters (I cannot type it here)

    Ignoring SAM validation error due to lenient parsing:
    Error parsing text SAM file. length(QUAL) != length(SEQ); Line 28
    Line: DFCDZDN1:130:B01D5ACXX:4:1101:1099:2046 99 chr3 134076497 60 100M = 134076563 166 AGGGCAGAGGAGGGGAGAGAATGGCTCAGAGTCCTGAAGCACCACCTCCTTCAGATCAGTATCTCCACCATGTCTGACAAGTCCTGGANTCTGGATGTAG $$$''''%)))))++*+((**+*+++++**+'))++**++**+**+(*)++++))))()'''''''%&%%$$"$&%$$$$%"$%$%% (weird character here)
    [Thu Feb 23 15:13:19 EST 2012] net.sf.picard.sam.SortSam done. Elapsed time: 0.00 minutes.
    Runtime.totalMemory()=123666432
    Exception in thread "main" java.lang.IllegalArgumentException: Invalid fastq character: (weird character here)
    at net.sf.samtools.SAMUtils.fastqToPhred(SAMUtils.java:408)
    at net.sf.samtools.SAMUtils.fastqToPhred(SAMUtils.java:387)
    at net.sf.samtools.SAMRecord.setBaseQualityString(SAMRecord.java:254)
    at net.sf.samtools.SAMTextReader$RecordIterator.parseLine(SAMTextReader.java:422)
    at net.sf.samtools.SAMTextReader$RecordIterator.next(SAMTextReader.java:278)
    at net.sf.samtools.SAMTextReader$RecordIterator.next(SAMTextReader.java:250)
    at net.sf.samtools.SAMFileReader$AssertableIterator.next(SAMFileReader.java:641)
    at net.sf.samtools.SAMFileReader$AssertableIterator.next(SAMFileReader.java:619)
    at net.sf.picard.sam.SortSam.doWork(SortSam.java:67)
    at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:177)
    at net.sf.picard.cmdline.CommandLineProgram.instanceMainWithExit(CommandLineProgram.java:119)
    at net.sf.picard.sam.SortSam.main(SortSam.java:79)

  • #2
    Either the fastq was made wrongly, or the .sam was made wrongly. Those are not normal quality characters.
    Last edited by swbarnes2; 02-22-2012, 10:18 PM.

    Comment


    • #3
      What is the weird characters? Try using hexdump.

      Comment


      • #4
        Hi all

        now it's working fine after I removed "-I" from bwa alignment process ("bwa aln -t 4 -f input.sai -I hg19 input.fastq")

        Comment


        • #5
          So you probably have Sanger style FASTQ, which is what the latest Illumina pipeline produces - but you told bwa it was the legacy Illumina specific FASTQ encoding.

          See:


          Comment

          Latest Articles

          Collapse

          • 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
          • seqadmin
            Current Approaches to Protein Sequencing
            by seqadmin


            Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
            04-04-2024, 04:25 PM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 04-11-2024, 12:08 PM
          0 responses
          59 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          57 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 09:21 AM
          0 responses
          51 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-04-2024, 09:00 AM
          0 responses
          55 views
          0 likes
          Last Post seqadmin  
          Working...
          X