htsjdk.samtools.SAMFormatException: Error parsing SAM header. Problem parsing @PG key:value pair ID:redacted clashes with ID:bwa. Line: @PG ID:bwa PN:bwa VN:0.7.15-r1140 CL:/export/local/tools/bwa/bwa mem -t 32 -R @RG ID:redacted SM:redacted LB:1 PL:Illumina PM:Miseq PU:MiseqSN.1 CN:OSU /export/local/ref/indices/bwa/grch37/grch37 cutadapt/redacted_R1.fastq cutadapt/redacted_R2.fastq; File /home/x/capture/aligned_grch37/redacted.bam; Line number 88

GitHub | jblachly | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    @PG ID:bwa line containing @RG ID:... causes SAMFormatException

    GitHub | 7 months ago | jblachly
    htsjdk.samtools.SAMFormatException: Error parsing SAM header. Problem parsing @PG key:value pair ID:redacted clashes with ID:bwa. Line: @PG ID:bwa PN:bwa VN:0.7.15-r1140 CL:/export/local/tools/bwa/bwa mem -t 32 -R @RG ID:redacted SM:redacted LB:1 PL:Illumina PM:Miseq PU:MiseqSN.1 CN:OSU /export/local/ref/indices/bwa/grch37/grch37 cutadapt/redacted_R1.fastq cutadapt/redacted_R2.fastq; File /home/x/capture/aligned_grch37/redacted.bam; Line number 88
  2. 0

    SamReaderFactory fails to return CRAMReader for http resource

    GitHub | 9 months ago | jrobinso
    htsjdk.samtools.SAMFormatException: Unrecognized file format: org.broad.igv.util.stream.IGVSeekableBufferedStream@77b52d12
  3. 0

    GitHub comment 614#222395370

    GitHub | 9 months ago | jrobinso
    htsjdk.samtools.SAMFormatException: Unrecognized file format: org.broad.igv.util.stream.IGVSeekableBufferedStream@1613674b
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Errors with Picard with the output of miniAlign

    GitHub | 1 month ago | danarte
    htsjdk.samtools.SAMFormatException: Error parsing SAM header. @RG line missing SM tag. Line: @RG ID:1; ; Line number 3

    Root Cause Analysis

    1. htsjdk.samtools.SAMFormatException

      Error parsing SAM header. Problem parsing @PG key:value pair ID:redacted clashes with ID:bwa. Line: @PG ID:bwa PN:bwa VN:0.7.15-r1140 CL:/export/local/tools/bwa/bwa mem -t 32 -R @RG ID:redacted SM:redacted LB:1 PL:Illumina PM:Miseq PU:MiseqSN.1 CN:OSU /export/local/ref/indices/bwa/grch37/grch37 cutadapt/redacted_R1.fastq cutadapt/redacted_R2.fastq; File /home/x/capture/aligned_grch37/redacted.bam; Line number 88

      at htsjdk.samtools.SAMTextHeaderCodec.reportErrorParsingLine()
    2. HTS JDK
      SamReaderFactory$SamReaderFactoryImpl.open
      1. htsjdk.samtools.SAMTextHeaderCodec.reportErrorParsingLine(SAMTextHeaderCodec.java:238)
      2. htsjdk.samtools.SAMTextHeaderCodec.access$200(SAMTextHeaderCodec.java:43)
      3. htsjdk.samtools.SAMTextHeaderCodec$ParsedHeaderLine.<init>(SAMTextHeaderCodec.java:293)
      4. htsjdk.samtools.SAMTextHeaderCodec.decode(SAMTextHeaderCodec.java:87)
      5. htsjdk.samtools.BAMFileReader.readHeader(BAMFileReader.java:524)
      6. htsjdk.samtools.BAMFileReader.<init>(BAMFileReader.java:177)
      7. htsjdk.samtools.BAMFileReader.<init>(BAMFileReader.java:132)
      8. htsjdk.samtools.SamReaderFactory$SamReaderFactoryImpl.open(SamReaderFactory.java:293)
      9. htsjdk.samtools.SamReaderFactory$SamReaderFactoryImpl.open(SamReaderFactory.java:145)
      9 frames
    3. picard.analysis.directed
      CollectTargetedMetrics.doWork
      1. picard.analysis.directed.CollectTargetedMetrics.doWork(CollectTargetedMetrics.java:110)
      1 frame
    4. picard.cmdline
      PicardCommandLine.main
      1. picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:208)
      2. picard.cmdline.PicardCommandLine.instanceMain(PicardCommandLine.java:95)
      3. picard.cmdline.PicardCommandLine.main(PicardCommandLine.java:105)
      3 frames