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 Advances in Sequencing Analysis Tools
      by seqadmin


      The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
      05-06-2024, 07:48 AM
    • seqadmin
      Essential Discoveries and Tools in Epitranscriptomics
      by seqadmin




      The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
      04-22-2024, 07:01 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, Today, 07:03 AM
    0 responses
    10 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 05-10-2024, 06:35 AM
    0 responses
    31 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 05-09-2024, 02:46 PM
    0 responses
    41 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 05-07-2024, 06:57 AM
    0 responses
    33 views
    0 likes
    Last Post seqadmin  
    Working...
    X