Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • picard SamToFastq error in umapped reads which MAPQ is not 0

    Hi,
    SamToFastq.jar will be stop when it meet the unmapped reads which flag is 4 or 20 but the MAPQ is not 0. Picard is not so smart,it couldnot skip this reads but stop to deal next reads.
    I am also confused why unmapped reads MAPQ is not 0? I found many of unmapped reads which flag is 4 or 20 has MAPQ and OPT column. MAPQ 37 is the highest sore in bwa reasult and normal means its unique mapping reads.
    I use bwa Version: 0.6.1-r104 to do mapping.
    Can someone know how to deal these reads,I want to mapping unmaped reads to junction?


    Code:
    java -jar SamToFastq.jar INPUT=s_3_2_unmap_genome.sam FASTQ=s_3_2_unmap_genome.fq
    
    
    Wed Dec 05 09:27:59 HKT 2012] net.sf.picard.sam.SamToFastq done. Elapsed time: 1.19 minutes.
    Runtime.totalMemory()=262864896
    FAQ:  http://sourceforge.net/apps/mediawiki/picard/index.php?title=Main_Page
    Exception in thread "main" net.sf.samtools.SAMFormatException: Error parsing text SAM file. MAPQ should be 0 for unmapped read.; Line 3205583
    Line: HWUSI-EAS724_0039:3:34:15714:3092#0       20      9       124595110       37      80M     *       0       0       AGTTAATGTAGCTTAATAACAAAGCAAAGCACTGAAA
    ATGCTTAGATGGATAATTGTATCCCATAAACACAAAGGTTTGG        hggh]hghhhghghhhhhghhhhhhhhhhhdhhhhhhhcfhhghhhhhhhchhhghhfdhhhghhhhhhgghhghhghhh        XT:A:U  NM:i:1  XN
    :i:1  X0:i:1  X1:i:0  XM:i:1  XO:i:0  XG:i:0  MD:Z:0G79
            at net.sf.samtools.SAMTextReader.reportErrorParsingLine(SAMTextReader.java:230)
            at net.sf.samtools.SAMTextReader.access$500(SAMTextReader.java:40)
            at net.sf.samtools.SAMTextReader$RecordIterator.parseLine(SAMTextReader.java:434)
            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.SamToFastq.doWork(SamToFastq.java:129)
            at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:177)
            at net.sf.picard.sam.SamToFastq.main(SamToFastq.java:118)
    Last edited by upper; 12-05-2012, 05:33 PM.

  • #2
    Set the VALIDATION_STRINGENCY to LENIENT. Picard will still warn you about those reads, but it will go past them.

    bwa will throw the 4 flag if a read hangs off the edge of one of your references, but it will also give it a mapping position and MAPQ. That likely is the source of your problem reads.

    Comment


    • #3
      Originally posted by swbarnes2 View Post
      Set the VALIDATION_STRINGENCY to LENIENT. Picard will still warn you about those reads, but it will go past them.

      bwa will throw the 4 flag if a read hangs off the edge of one of your references, but it will also give it a mapping position and MAPQ. That likely is the source of your problem reads.
      thank you,picard ignore these reads and continue process,and also picard just report error as before but didnot remove these reads,this is what I want.

      Code:
      INPUT=s_3_2/s_3_2_unmap_genome.sam FASTQ=s_3_2/s_3_2_unmap_genome.fq VALIDATION_STRINGENCY=LENIENT
      
      Ignoring SAM validation error due to lenient parsing:
      Error parsing text SAM file. MAPQ should be 0 for unmapped read.; Line 3205583
      Line: HWUSI-EAS724_0039:3:34:15714:3092#0       20      9       124595110       37      80M     *       0       0       AGTTAATGTAGCTTAATAACAAAGCAAAGCACTGAAA
      ATGCTTAGATGGATAATTGTATCCCATAAACACAAAGGTTTGG        hggh]hghhhghghhhhhghhhhhhhhhhhdhhhhhhhcfhhghhhhhhhchhhghhfdhhhghhhhhhgghhghhghhh        XT:A:U  NM:i:1  XN
      :i:1  X0:i:1  X1:i:0  XM:i:1  XO:i:0  XG:i:0  MD:Z:0G79

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Investigating the Gut Microbiome Through Diet and Spatial Biology
        by seqadmin




        The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
        02-24-2025, 06:31 AM
      • seqadmin
        Quality Control Essentials for Next-Generation Sequencing Workflows
        by seqadmin




        Like all molecular biology applications, next-generation sequencing (NGS) workflows require diligent quality control (QC) measures to ensure accurate and reproducible results. Proper QC begins at nucleic acid extraction and continues all the way through to data analysis. This article outlines the key QC steps in an NGS workflow, along with the commonly used tools and techniques.

        Nucleic Acid Quality Control
        Preparing for NGS starts with isolating the...
        02-10-2025, 01:58 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 03-03-2025, 01:15 PM
      0 responses
      46 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 02-28-2025, 12:58 PM
      0 responses
      167 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 02-24-2025, 02:48 PM
      0 responses
      525 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 02-21-2025, 02:46 PM
      0 responses
      256 views
      0 likes
      Last Post seqadmin  
      Working...
      X