Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ercfrtz
    Member
    • Aug 2010
    • 23

    #1

    Picard AddOrReplaceReadGroups Error

    Hello all,

    I am getting the following error when I try to run the AddOrReplaceReadGroups function on picard.


    net.sf.picard.sam.AddOrReplaceReadGroups INPUT=/storage/isu/reecy_lab/tmp_eric/9111.1.12.bwa.sorted.bam OUTPUT=/storage/isu/reecy_lab/tmp_eric/9111.1.12.bwa.sorted.corrected.bam SORT_ORDER=coordinate RGLB=BWA RGPL=illumina RGPU=run RGSM=9111 RGID=1 TMP_DIR=/tmp/ercfrtz VERBOSITY=INFO QUIET=false VALIDATION_STRINGENCY=STRICT COMPRESSION_LEVEL=5 MAX_RECORDS_IN_RAM=500000 CREATE_INDEX=false CREATE_MD5_FILE=false
    INFO 2011-03-25 14:33:23 AddOrReplaceReadGroups Created read group ID=1 PL=illumina LB=BWA SM=9111

    [Fri Mar 25 14:36:18 CDT 2011] net.sf.picard.sam.AddOrReplaceReadGroups done.
    Runtime.totalMemory()=922746880
    Exception in thread "main" net.sf.samtools.util.RuntimeIOException: Write error; BinaryCodec in writemode; streamed file (filename not available)
    at net.sf.samtools.util.BinaryCodec.writeBytes(BinaryCodec.java:199)
    at net.sf.samtools.util.BinaryCodec.writeBytes(BinaryCodec.java:189)
    at net.sf.samtools.util.BinaryCodec.writeString(BinaryCodec.java:296)
    at net.sf.samtools.util.BinaryCodec.writeString(BinaryCodec.java:283)
    at net.sf.samtools.BAMRecordCodec.encode(BAMRecordCodec.java:128)
    at net.sf.samtools.BAMRecordCodec.encode(BAMRecordCodec.java:37)
    at net.sf.samtools.util.SortingCollection.spillToDisk(SortingCollection.java:185)
    at net.sf.samtools.util.SortingCollection.add(SortingCollection.java:140)
    at net.sf.samtools.SAMFileWriterImpl.addAlignment(SAMFileWriterImpl.java:157)
    at net.sf.picard.sam.AddOrReplaceReadGroups.doWork(AddOrReplaceReadGroups.java:93)
    at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:156)
    at net.sf.picard.cmdline.CommandLineProgram.instanceMainWithExit(CommandLineProgram.java:117)
    at net.sf.picard.sam.AddOrReplaceReadGroups.main(AddOrReplaceReadGroups.java:61)
    Caused by: java.io.IOException: No space left on device
    at java.io.FileOutputStream.writeBytes(Native Method)
    at java.io.FileOutputStream.write(Unknown Source)
    at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    at java.io.BufferedOutputStream.write(Unknown Source)
    at net.sf.samtools.util.BinaryCodec.writeBytes(BinaryCodec.java:197)
    ... 12 more


    Any suggestions?
  • Bruins
    Member
    • Feb 2010
    • 78

    #2
    Carefully read your stack trace:
    Originally posted by ercfrtz View Post
    [Fri Mar 25 14:36:18 CDT 2011] net.sf.picard.sam.AddOrReplaceReadGroups done.
    Runtime.totalMemory()=922746880
    Exception in thread "main" net.sf.samtools.util.RuntimeIOException: Write error; BinaryCodec in writemode; streamed file (filename not available)
    at net.sf.samtools.util.BinaryCodec.writeBytes(BinaryCodec.java:199)
    at net.sf.samtools.util.BinaryCodec.writeBytes(BinaryCodec.java:189)
    at net.sf.samtools.util.BinaryCodec.writeString(BinaryCodec.java:296)
    at net.sf.samtools.util.BinaryCodec.writeString(BinaryCodec.java:283)
    at net.sf.samtools.BAMRecordCodec.encode(BAMRecordCodec.java:128)
    at net.sf.samtools.BAMRecordCodec.encode(BAMRecordCodec.java:37)
    at net.sf.samtools.util.SortingCollection.spillToDisk(SortingCollection.java:185)
    at net.sf.samtools.util.SortingCollection.add(SortingCollection.java:140)
    at net.sf.samtools.SAMFileWriterImpl.addAlignment(SAMFileWriterImpl.java:157)
    at net.sf.picard.sam.AddOrReplaceReadGroups.doWork(AddOrReplaceReadGroups.java:93)
    at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:156)
    at net.sf.picard.cmdline.CommandLineProgram.instanceMainWithExit(CommandLineProgram.java:117)
    at net.sf.picard.sam.AddOrReplaceReadGroups.main(AddOrReplaceReadGroups.java:61)
    Caused by: java.io.IOException: No space left on device
    at java.io.FileOutputStream.writeBytes(Native Method)
    at java.io.FileOutputStream.write(Unknown Source)
    at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    at java.io.BufferedOutputStream.write(Unknown Source)
    at net.sf.samtools.util.BinaryCodec.writeBytes(BinaryCodec.java:197)
    ... 12 more
    If the problem isn't the dir you're writing in, use an alternative temp dir (in stead of the default /tmp) with sufficient space (check Picard manual).

    Comment

    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
    16 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, Yesterday, 10:48 AM
    0 responses
    17 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    35 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...