Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rdeborja
    Member
    • Aug 2008
    • 42

    #1

    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

  • SEQadmin2
    Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
    by SEQadmin2



    Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

    Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
    ...
    10-14-2026, 09:55 AM
  • SEQadmin2
    New Genomics Technologies Take Aim at Long-Standing Limits
    by SEQadmin2


    Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

    We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
    ...
    09-28-2026, 10:25 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, Yesterday, 11:13 AM
0 responses
19 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, Yesterday, 10:48 AM
0 responses
18 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-15-2026, 10:52 AM
0 responses
36 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-14-2026, 05:39 AM
0 responses
42 views
0 reactions
Last Post SEQadmin2  
Working...