Question: Out Of Disk Space With Picard Tools ?
6
gravatar for Gabriel R.
6.4 years ago by
Gabriel R.2.5k
Center for Geogenetik KĂžbenhavns Universitet
Gabriel R.2.5k wrote:

Hi, I am trying to run the following command:

java -Xmx2g -jar SortSam.jar SORT_ORDER=coordinate INPUT=input.bam OUTPUT=output.sort

But I keep getting: Exception in thread "main" net.sf.samtools.util.RuntimeIOException: java.io.IOException: No space left on device Despite the fact that I have ample space to write.

Has anyone had similar trouble ?

picard tool • 14k views
ADD COMMENTlink written 6.4 years ago by Gabriel R.2.5k
5

perhaps it is using the temporary directory that is located on a different, smaller partition,

ADD REPLYlink written 6.4 years ago by Istvan Albert ♦♦ 77k
26
gravatar for John St. John
6.4 years ago by
John St. John1.1k
San Francisco, CA, Cancer Therapeutics Innovation Group
John St. John1.1k wrote:

That sounds like an issue with your system's TMP directory filling up. Why not make a folder called tmp in your current directory (mkdir tmp) where you are doing your work and then run picard like this:

java -Xmx2g -Djava.io.tmpdir=`pwd`/tmp -jar SortSam.jar SORT_ORDER=coordinate INPUT=input.bam OUTPUT=output.sort TMP_DIR=`pwd`/tmp

It is possible that this part:

TMP_DIR=`pwd`/tmp

would be sufficient, but setting -Djava.io.tmpdir=bla should work for java programs in general.

ADD COMMENTlink written 6.4 years ago by John St. John1.1k

Worked ! Many thanks !

ADD REPLYlink written 6.4 years ago by Gabriel R.2.5k

Thanks.. worked for me as well.

ADD REPLYlink written 6.2 years ago by Sudeep1.6k

that solved the no-space issue, but now I am getting this: Exception in thread "main" net.sf.samtools.util.RuntimeIOException: java.io.FileNotFoundException: /Picard/picard-tools-1.72/pwd/tmp/sortingcollection.4875296484959495534.tmp (Too many open files) Anyone had similar issue?

ADD REPLYlink written 5.9 years ago by sjohn20
1

Add the parameter named MAX_FILE_HANDLES_FOR_READ_ENDS_MAP, I set it to 1000 and it helped :-) with the explanation here

ADD REPLYlink modified 5.9 years ago by Istvan Albert ♦♦ 77k • written 5.9 years ago by Biomonika (Noolean)3.0k

You have to go to /etc/security/limits.conf and put it like this:

#<domain>      <type>  <item>         <value>
#
*               hard    nofile            65536
*               soft    nofile            65536

then you can have 65536 open files at the same time with your user. You will need root rights.

ADD REPLYlink modified 5.9 years ago by Istvan Albert ♦♦ 77k • written 5.9 years ago by roalva180
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 478 users visited in the last hour