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

biostars.org | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    error in samfile header

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