java.lang.IllegalArgumentException: Program record with group id bc already exists in SAMFileHeader!

biostars.org | 5 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

    error in samfile header

    biostars.org | 5 months ago
    java.lang.IllegalArgumentException: Program record with group id bc already exists in SAMFileHeader!

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Program record with group id bc already exists in SAMFileHeader!

      at net.sf.samtools.SAMFileHeader.addProgramRecord()
    2. picard
      CalculateHsMetrics.main
      1. net.sf.samtools.SAMFileHeader.addProgramRecord(SAMFileHeader.java:197)
      2. net.sf.samtools.SAMTextHeaderCodec.parsePGLine(SAMTextHeaderCodec.java:150)
      3. net.sf.samtools.SAMTextHeaderCodec.decode(SAMTextHeaderCodec.java:90)
      4. net.sf.picard.util.IntervalList.fromReader(IntervalList.java:181)
      5. net.sf.picard.util.IntervalList.fromFile(IntervalList.java:152)
      6. net.sf.picard.analysis.directed.HsMetricsCalculator.<init>(HsMetricsCalculator.java:83)
      7. net.sf.picard.analysis.directed.CalculateHsMetrics.doWork(CalculateHsMetrics.java:83)
      8. net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:158)
      9. net.sf.picard.analysis.directed.CalculateHsMetrics.main(CalculateHsMetrics.java:68)
      9 frames