java.lang.IllegalArgumentException

Reference index 322 not found in sequence dictionary.

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via Unknown by Миша Роткевич,
  • Stack trace

    • java.lang.IllegalArgumentException: Reference index 322 not found in sequence dictionary. at net.sf.samtools.SAMRecord.setReferenceIndex(SAMRecord.java:366) at net.sf.samtools.DefaultSAMRecordFactory.createBAMRecord(DefaultSAMRecordFactory.java:30) at net.sf.samtools.BAMRecordCodec.decode(BAMRecordCodec.java:201) at net.sf.samtools.BAMFileReader$BAMFileIterator.getNextRecord(BAMFileReader.java:523) at net.sf.samtools.BAMFileReader$BAMFileIterator.advance(BAMFileReader.java:497) at net.sf.samtools.BAMFileReader$BAMFileIterator.<init>(BAMFileReader.java:465) at net.sf.samtools.BAMFileReader$BAMFileIterator.<init>(BAMFileReader.java:453) at net.sf.samtools.BAMFileReader.getIterator(BAMFileReader.java:255) at net.sf.samtools.SAMFileReader.iterator(SAMFileReader.java:315) at org.bioinfo.ngs.qc.qualimap.process.BamStatsAnalysis.run(BamStatsAnalysis.java:313) at org.bioinfo.ngs.qc.qualimap.main.BamQcTool.execute(BamQcTool.java:242) at org.bioinfo.ngs.qc.qualimap.main.NgsSmartTool.run(NgsSmartTool.java:187) at org.bioinfo.ngs.qc.qualimap.main.NgsSmartMain.main(NgsSmartMain.java:111) Caused by: java.lang.NullPointerException at net.sf.samtools.SAMRecord.setReferenceIndex(SAMRecord.java:364)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.