Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Picard's SortSam error with a merged bam file

    Hello,

    I tried to sort a merged bam file (70Gb) from whole genome sequnecing, but got an error as below. I guess the problem is related to TMP_DIR. Is TMP_DIR option necessary?

    Here's the command I used.

    SortSam \
    SORT_ORDER=coordinate TMP_DIR=/home/yunjungk/span_wgs/tmp_spa5w/ \
    VERBOSITY=ERROR \
    INPUT=$1.bam \
    OUTPUT=$1v1.bam

    Any advice would be appreciated.

    ****Error message***********************************
    Exception in thread "main" net.sf.samtools.util.RuntimeIOException: java.io.FileNotFoundException: /home/yunjungk/span_wgs/tmp_spa5w/sortingcollection.9063505166460361303.tmp (Too many open files)
    at net.sf.samtools.util.SortingCollection$FileRecordIterator.<init>(SortingCollection.java:386)
    at net.sf.samtools.util.SortingCollection$MergingIterator.<init>(SortingCollection.java:325)
    at net.sf.samtools.util.SortingCollection.iterator(SortingCollection.java:221)
    at net.sf.samtools.util.SortingCollection.iterator(SortingCollection.java:42)
    at net.sf.samtools.SAMFileWriterImpl.close(SAMFileWriterImpl.java:177)
    at net.sf.picard.sam.SortSam.doWork(SortSam.java:61)
    at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:150)
    at net.sf.picard.cmdline.CommandLineProgram.instanceMainWithExit(CommandLineProgram.java:117)
    at net.sf.picard.sam.SortSam.main(SortSam.java:66)

    Caused by: java.io.FileNotFoundException: /home/yunjungk/span_wgs/tmp_spa5w/sortingcollection.9063505166460361303.tmp (Too many open files)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at net.sf.samtools.util.SortingCollection$FileRecordIterator.<init>(SortingCollection.java:380)
    ... 8 more
    Last edited by tomato2; 09-28-2011, 01:56 AM.

  • #2
    Hi,
    Did you manage to soleve this issue? I am also getting the same error while trying ReOrder a bam file.
    Code:
    java -jar /picard-tools-1.48/ReorderSam.jar I=test_PCRremoved.bam O=test_PCRremoved_reOrder.bam R=/genome/hg19_full/hg19.fa
    [Wed Nov 02 13:02:30 SGT 2011] net.sf.picard.sam.ReorderSam done. Elapsed time: 53.56 minutes.
    Runtime.totalMemory()=11474370560
    Exception in thread "main" net.sf.samtools.util.RuntimeIOException: java.io.FileNotFoundException: /tmp/userrig/sortingcollection.6171299671671922515.tmp (Too many open files)
    at net.sf.samtools.util.SortingCollection$FileRecordIterator.<init>(SortingCollection.java:410)
    at net.sf.samtools.util.SortingCollection$MergingIterator.<init>(SortingCollection.java:349)
    at net.sf.samtools.util.SortingCollection.iterator(SortingCollection.java:242)
    at net.sf.samtools.util.SortingCollection.iterator(SortingCollection.java:43)
    at net.sf.samtools.SAMFileWriterImpl.close(SAMFileWriterImpl.java:177)
    at net.sf.picard.sam.ReorderSam.doWork(ReorderSam.java:119)
    at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:158)
    at net.sf.picard.cmdline.CommandLineProgram.instanceMainWithExit(CommandLineProgram.java:118)
    at net.sf.picard.sam.ReorderSam.main(ReorderSam.java:76)
    Caused by: java.io.FileNotFoundException: /tmp/userrig/sortingcollection.6171299671671922515.tmp (Too many open files)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:120)
    at net.sf.samtools.util.SortingCollection$FileRecordIterator.<init>(SortingCollection.java:404)
    ... 8 more

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Recent Developments in Metagenomics
      by seqadmin





      Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
      09-23-2024, 06:35 AM
    • seqadmin
      Understanding Genetic Influence on Infectious Disease
      by seqadmin




      During the COVID-19 pandemic, scientists observed that while some individuals experienced severe illness when infected with SARS-CoV-2, others were barely affected. These disparities left researchers and clinicians wondering what causes the wide variations in response to viral infections and what role genetics plays.

      Jean-Laurent Casanova, M.D., Ph.D., Professor at Rockefeller University, is a leading expert in this crossover between genetics and infectious...
      09-09-2024, 10:59 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 10-02-2024, 04:51 AM
    0 responses
    13 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 10-01-2024, 07:10 AM
    0 responses
    21 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 09-30-2024, 08:33 AM
    0 responses
    26 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 09-26-2024, 12:57 PM
    0 responses
    18 views
    0 likes
    Last Post seqadmin  
    Working...
    X