Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • reeso123
    Junior Member
    • Nov 2011
    • 6

    #1

    Picard FixMateInformation error?

    Hi all,

    I am having some issues with picards FixMateInformation functions and was wondering if anyone has had similar problems. I have bam files which have been had duplicates marked using picard and local realignment around indels with GATK, but when I then follow with FixMateInformation it runs nicely for a while before I get the following error

    Exception in thread "main" net.sf.samtools.util.RuntimeIOException: java.io.IOException: No space left on device
    at net.sf.samtools.util.SortingCollection.spillToDisk(SortingCollection.java:228)
    at net.sf.samtools.util.SortingCollection.add(SortingCollection.java:150)
    at net.sf.samtools.SAMFileWriterImpl.addAlignment(SAMFileWriterImpl.java:157)
    at net.sf.picard.sam.FixMateInformation.writeAlignment(FixMateInformation.java:259)
    at net.sf.picard.sam.FixMateInformation.doWork(FixMateInformation.java:181)
    at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:175)
    at net.sf.picard.cmdline.CommandLineProgram.instanceMainWithExit(CommandLineProgram.java:118)
    at net.sf.picard.sam.FixMateInformation.main(FixMateInformation.java:74)
    Caused by: java.io.IOException: No space left on device
    at java.io.FileOutputStream.write(Native Method)
    at org.xerial.snappy.SnappyOutputStream.writeInt(SnappyOutputStream.java:105)
    at org.xerial.snappy.SnappyOutputStream.dump(SnappyOutputStream.java:126)
    at org.xerial.snappy.SnappyOutputStream.flush(SnappyOutputStream.java:100)
    at org.xerial.snappy.SnappyOutputStream.close(SnappyOutputStream.java:137)
    at net.sf.samtools.util.SortingCollection.spillToDisk(SortingCollection.java:219)
    ... 7 more


    No new fixed files result from this apart from empty temp files. I tried using samtools fix mate, and I thought it worked until I opened the new bams with IGV and noticed my reads were in red because the pairs are not mapped!

    Any help with this would be much appreciated.
    Many thanks,
    Elliott
  • Heisman
    Senior Member
    • Dec 2010
    • 534

    #2
    When you have a question like this you should include the commands you used.

    That said, it appears to say your problem is that you have no space left on device, so maybe it isn't specific to FixMates?

    Comment

    • Bukowski
      Senior Member
      • Jan 2010
      • 388

      #3
      "No space left on device" - you've run out of disk space, or your allocation of it. Try having a look at the situation with 'df -h'. If you can redirect Picards temporary files somewhere else you might want to do that, if it appears you have enough disk space to store the output files.

      Comment

      • nans_bn
        Member
        • Mar 2011
        • 12

        #4
        similar error

        Hello,

        I am trying to run GATK local realignment and then the FixMateInformation with picard and got the same error
        .....net.sf.picard.sam.FixMateInformation done....
        Exception in thread "main" net.sf.samtools.util.RuntimeIOException: java.io.IOException: No space left on device...

        I have more than enough same left on the device and I even tried to specify the temp folder
        java -Xmx4g -jar FixMateInformation.jar \
        INPUT=file.realigned.bam \
        OUTPUT=file.realigned.fixedmateinfo.bam \
        SO=coordinate \
        VALIDATION_STRINGENCY=LENIENT \
        CREATE_INDEX=true \
        TMP_DIR=/"pwd"/temp

        Any suggestions ?

        Thank you.

        Comment

        • dGho
          Member
          • Jan 2013
          • 43

          #5
          thats weird
          I had the same problem and specified a TMP_DIR like you did and it solved this issue for me. Are you sure you have enough mem? Are you trying to run this command along with other commands? I really don't know what the problem could be.

          I have a suggestion that probably won't help but might be worth a try. You can specify more that one TMP_DIR. This could help depending on whether you are just running locally on ur pc, or have access to more memory.

          considering this was posted in 2011, i am curious as to whether you found the solution to this problem for other user that may run into this issue

          Comment

          • nans_bn
            Member
            • Mar 2011
            • 12

            #6
            Hi,

            Wow, that's a very very old post, .. what I did was use "MAX_RECORDS_IN_RAM=5000000" and then this command and this worked for me:
            java -Xmx4g -jar FixMateInformation.jar \
            INPUT=file.realigned.bam \
            OUTPUT=file.realigned.fixedmateinfo.bam \
            SO=coordinate \
            MAX_RECORDS_IN_RAM=5000000 \
            VALIDATION_STRINGENCY=LENIENT \
            CREATE_INDEX=true \
            TMP_DIR=$TMPDIR \

            Cheers.

            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, 10-15-2026, 10:52 AM
            0 responses
            23 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            27 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-13-2026, 09:56 AM
            0 responses
            22 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-09-2026, 11:14 AM
            0 responses
            28 views
            0 reactions
            Last Post SEQadmin2  
            Working...