Question: Setting temporary directory for GATK4 SortSam
0
gravatar for Mehulsharma.253
10 weeks ago by
Mehulsharma.25310 wrote:

I used the SortSam option with GATK4 picard tools but it gives an error saying: htsjdk.samtools.util.RuntimeIOException: Problem writing temporary file file:///tmp/xxxxxx//sortingcollection.1885090825398510531.tmp. Try setting TMP_DIR to a file system with lots of space

I referred to this (Out Of Disk Space With Picard Tools ?) post with the following command:

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

However, I run GATK directly from the Linux terminal with the command:

./gatk SortSam

Also, there is no SortSam.jar file in the directory. Only a gatk-package-4.0.11.0-local.jar.

How do I modify the syntax of the above command to set the temporary directory ?

ADD COMMENTlink modified 10 weeks ago • written 10 weeks ago by Mehulsharma.25310
1

Hello,

see A: Temporary Directory Problem in GATK4

fin swimmer

ADD REPLYlink written 10 weeks ago by finswimmer9.8k
1
gravatar for Mehulsharma.253
10 weeks ago by
Mehulsharma.25310 wrote:

I got it using

 ./gatk --java-options "-Djava.io.tmpdir=/custom file path" SortSam -I=samplealn.sam -O=sortedsamplealn.bam -SO=coordinate --TMP_DIR=/custom file path
ADD COMMENTlink modified 10 weeks ago • written 10 weeks ago by Mehulsharma.25310
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: 757 users visited in the last hour