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
      Best Practices for Single-Cell Sequencing Analysis
      by seqadmin



      While isolating and preparing single cells for sequencing was historically the bottleneck, recent technological advancements have shifted the challenge to data analysis. This highlights the rapidly evolving nature of single-cell sequencing. The inherent complexity of single-cell analysis has intensified with the surge in data volume and the incorporation of diverse and more complex datasets. This article explores the challenges in analysis, examines common pitfalls, offers...
      06-06-2024, 07:15 AM
    • seqadmin
      Latest Developments in Precision Medicine
      by seqadmin



      Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

      Somatic Genomics
      “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
      05-24-2024, 01:16 PM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 06-07-2024, 06:58 AM
    0 responses
    13 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 06-06-2024, 08:18 AM
    0 responses
    21 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 06-06-2024, 08:04 AM
    0 responses
    20 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 06-03-2024, 06:55 AM
    0 responses
    14 views
    0 likes
    Last Post seqadmin  
    Working...
    X