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

  • kinpict.com
    Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
    by kinpict.com
    The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
    Today, 06:37 PM
  • SEQadmin2
    16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
    by SEQadmin2





    NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
    10-30-2026, 06:46 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 11-12-2026, 07:59 AM
0 responses
27 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 11-05-2026, 09:25 AM
0 responses
35 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 11-03-2026, 11:54 AM
2 responses
56 views
0 reactions
Last Post kinpict.com  
Started by SEQadmin2, 10-28-2026, 09:57 AM
0 responses
175 views
0 reactions
Last Post SEQadmin2  
Working...