Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • MissDona
    Member
    • Nov 2011
    • 17

    “java.lang.NegativeArraySizeException” when I run picard_AddorReplaceReadgroups

    Hi all, when I run commands as follows: run_picard.sh AddOrReplaceReadGroups INPUT=64_bwaresult_headadded.bam SORT_ORDER=coordinate RGLB=default_library RGPL=illumina RGPU=default_unit RGSM=default_name VALIDATION_STRINGENCY=SILENT OUTPUT=64bwaresult.rg.bam

    I got these error messages:

    Sun Sep 02 23:36:48 CST 2012] net.sf.picard.sam.AddOrReplaceReadGroups INPUT=64_bwaresult_headadded.bam OUTPUT=64bwaresult.sorted.rg.bam SORT_ORDER=coordinate RGLB=default_library RGPL=illumina RGPU=default_unit RGSM=default_name VALIDATION_STRINGENCY=SILENT MAX_RECORDS_IN_RAM=16000000 RGID=1 VERBOSITY=INFO QUIET=false COMPRESSION_LEVEL=5 CREATE_INDEX=false CREATE_MD5_FILE=false [Sun Sep 02 23:36:48 CST 2012] Executing as douym@x3850b on Linux 2.6.32-220.7.1.el6.x86_64 amd64; Java HotSpot(TM) 64-Bit Server VM 1.6.0_31-b04; Picard version: 1.70(1215) INFO 2012-09-02 23:36:49 AddOrReplaceReadGroups Created read group ID=1 PL=illumina LB=default_library SM=default_name

    [Sun Sep 02 23:36:51 CST 2012] net.sf.picard.sam.AddOrReplaceReadGroups done. Elapsed time: 0.04 minutes. Runtime.totalMemory()=2058027008 FAQ: http://sourceforge.net/apps/mediawik...itle=Main_Page Exception in thread "main" java.lang.RuntimeException: BGZF file has invalid uncompressedLength: -667232877 at net.sf.samtools.util.BlockCompressedInputStream.inflateBlock(BlockCompressedInputStream.java:376) at net.sf.samtools.util.BlockCompressedInputStream.readBlock(BlockCompressedInputStream.java:361) at net.sf.samtools.util.BlockCompressedInputStream.available(BlockCompressedInputStream.java:109) at net.sf.samtools.util.BlockCompressedInputStream.read(BlockCompressedInputStream.java:234) 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:178) 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.next(BAMFileReader.java:487) at net.sf.samtools.BAMFileReader$BAMFileIterator.next(BAMFileReader.java:446) at net.sf.samtools.SAMFileReader$AssertableIterator.next(SAMFileReader.java:641) at net.sf.samtools.SAMFileReader$AssertableIterator.next(SAMFileReader.java:619) at net.sf.picard.sam.AddOrReplaceReadGroups.doWork(AddOrReplaceReadGroups.java:91) at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:177) at net.sf.picard.cmdline.CommandLineProgram.instanceMainWithExit(CommandLineProgram.java:119) at net.sf.picard.sam.AddOrReplaceReadGroups.main(AddOrReplaceReadGroups.java:61) Caused by: java.lang.NegativeArraySizeException at net.sf.samtools.util.BlockCompressedInputStream.inflateBlock(BlockCompressedInputStream.java:374) ... 19 more 64rg.e2344 lines 2-31/31 (END)

    I'm confused about these messages because I run almost the same commands before and it worked. What's the problem? Thanks a lot!
  • MissDona
    Member
    • Nov 2011
    • 17

    #2
    bam file wrong

    I've solved this problem~
    It seems I shouldn't filter the tag "XT:A:U" before I run picard, in which case the paired-end reads may be disconnected and result in mistake.

    Comment

    Latest Articles

    Collapse

    • mylaser
      Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
      by mylaser
      Kheloyar – Everything You Need to Know About Kheloyaar Login and Kheoyar Id
      If you are looking for an online gaming platform that offers a user-friendly experience, Kheloyar has become a name that many users search for. Whether you're interested in creating a new account, accessing your dashboard through Kheloyaar Login, or learning how to obtain a Kheoyar Id, understanding the platform's features and account process is essential.
      This guide explains everything you need to know about...
      Today, 01:13 AM
    • SEQadmin2
      Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
      by SEQadmin2



      Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
      ...
      07-09-2026, 11:10 AM
    • SEQadmin2
      Cancer Drug Resistance: The Lingering Barrier to Rising Survival
      by SEQadmin2



      Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

      There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
      07-08-2026, 05:17 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 07-09-2026, 10:04 AM
    0 responses
    11 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-08-2026, 10:08 AM
    0 responses
    9 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-07-2026, 11:05 AM
    0 responses
    17 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-02-2026, 11:08 AM
    0 responses
    31 views
    0 reactions
    Last Post SEQadmin2  
    Working...