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
    Current Approaches to Protein Sequencing
    by seqadmin


    Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
    04-04-2024, 04:25 PM
  • seqadmin
    Strategies for Sequencing Challenging Samples
    by seqadmin


    Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
    03-22-2024, 06:39 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, 04-11-2024, 12:08 PM
0 responses
18 views
0 likes
Last Post seqadmin  
Started by seqadmin, 04-10-2024, 10:19 PM
0 responses
22 views
0 likes
Last Post seqadmin  
Started by seqadmin, 04-10-2024, 09:21 AM
0 responses
16 views
0 likes
Last Post seqadmin  
Started by seqadmin, 04-04-2024, 09:00 AM
0 responses
46 views
0 likes
Last Post seqadmin  
Working...
X