Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Picard MarkDuplicates throws a java.lang.NegativeArraySizeException

    Hi,

    I'm running picard's MarkDuplicates on a large .bam file like this:
    Code:
    /jdk1.6.0_10/bin/java -Xmx8g -jar /picard-tools-1.21/MarkDuplicates.jar TMP_DIR=picardTemp INPUT=inFile.bam OUTPUT=outFile.bam METRICS_FILE=outFile.bam.mmm ASSUME_SORTED=true VALIDATION_STRINGENCY=LENIENT REMOVE_DUPLICATES=true"
    And after processing maybe a third of the file the program throws the following exception and promptly dies:
    Code:
    Exception in thread "main" java.lang.NegativeArraySizeException
            at net.sf.samtools.util.BlockCompressedInputStream.inflateBlock(BlockCompressedInputStream.java:304)
            at net.sf.samtools.util.BlockCompressedInputStream.readBlock(BlockCompressedInputStream.java:292)
            at net.sf.samtools.util.BlockCompressedInputStream.available(BlockCompressedInputStream.java:100)
            at net.sf.samtools.util.BlockCompressedInputStream.read(BlockCompressedInputStream.java:169)
            at java.io.DataInputStream.read(DataInputStream.java:132)
            at net.sf.samtools.util.BinaryCodec.readBytesOrFewer(BinaryCodec.java:394)
            at net.sf.samtools.util.BinaryCodec.readBytes(BinaryCodec.java:371)
            at net.sf.samtools.util.BinaryCodec.readByteBuffer(BinaryCodec.java:480)
            at net.sf.samtools.util.BinaryCodec.readInt(BinaryCodec.java:491)
            at net.sf.samtools.BAMRecordCodec.decode(BAMRecordCodec.java:159)
            at net.sf.samtools.BAMFileReader$BAMFileIterator.getNextRecord(BAMFileReader.java:397)
            at net.sf.samtools.BAMFileReader$BAMFileIterator.advance(BAMFileReader.java:373)
            at net.sf.samtools.BAMFileReader$BAMFileIterator.next(BAMFileReader.java:363)
            at net.sf.samtools.BAMFileReader$BAMFileIterator.next(BAMFileReader.java:330)
            at net.sf.picard.sam.MarkDuplicates.buildSortedReadEndLists(MarkDuplicates.java:261)
            at net.sf.picard.sam.MarkDuplicates.doWork(MarkDuplicates.java:112)
            at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:150)
            at net.sf.picard.sam.MarkDuplicates.main(MarkDuplicates.java:96)
    The versions and command involved work fine on other .bam files, but I haven't determined anything wrong with the .bam file that causes this exception.

    Has anyone run into this or have an idea of something I could look for in the input file? Thanks.

Latest Articles

Collapse

  • seqadmin
    Recent Advances in Sequencing Analysis Tools
    by seqadmin


    The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
    05-06-2024, 07:48 AM
  • seqadmin
    Essential Discoveries and Tools in Epitranscriptomics
    by seqadmin




    The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
    04-22-2024, 07:01 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, 05-10-2024, 06:35 AM
0 responses
16 views
0 likes
Last Post seqadmin  
Started by seqadmin, 05-09-2024, 02:46 PM
0 responses
21 views
0 likes
Last Post seqadmin  
Started by seqadmin, 05-07-2024, 06:57 AM
0 responses
19 views
0 likes
Last Post seqadmin  
Started by seqadmin, 05-06-2024, 07:17 AM
0 responses
21 views
0 likes
Last Post seqadmin  
Working...
X