SamSort gatk invalid argument / no space left on disk
0
1
Entering edit mode
16 months ago
Eliveri ▴ 350

I have a nextflow pipeline which runs the following argument in script for a process using memory '16 GB':

gatk --java-options "-Xmx16g -Xms16g" SortSam -R $ref -I ${pair_id}.clean.bam -O ${pair_id}.sorted.bam -SO coordinate --CREATE_INDEX true

At first the issue was java.io.IOException: No space left on device So I referred to the following posts

And added the -Djava.io.tmpdir=`pwd`/tmp but now I am still having issues. I get error ERROR: Invalid argument '-R'.

gatk --java-options "-Xmx16g -Xms16g -Djava.io.tmpdir=`pwd`/tmp" SortSam -R $ref -I ${pair_id}.clean.bam -O ${pair_id}.sorted.bam -SO coordinate --CREATE_INDEX true TMP_DIR=`pwd`/tmp

I tried with various combinations

gatk --java-options "-Djava.io.tmpdir=`pwd`/tmp"  "-Xmx16g -Xms16g" SortSam -R $ref -I ${pair_id}.clean.bam -O ${pair_id}.sorted.bam -SO coordinate --CREATE_INDEX true TMP_DIR=`pwd`/tmp

Sometimes it does not recognize the "-Djava.io.tmpdir=.." parameter, sometimes it does not recognize the "-Xmx16g -Xms16g" parameter, and sometimes it does not recognize -R after SamSort.

picard gatk samsort nextflow • 870 views
ADD COMMENT
1
Entering edit mode

Hi! What kind of error do you get? Could you copy paste it? Also, could you copy paste the actual nextflow code (not just the gatk command)? When I call gatk within nextflow I don't add quotes in -Xmx${java_memory}m. Regarding the tmp path, maybe it is safer to provide a full path, without calling pwd and such.

ADD REPLY
1
Entering edit mode

for a start You put two values for --java-options . Use ${PWD} instead of a call to pwd. Furthermore, why using the slow gatk when you can use samtools sort ?

ADD REPLY
0
Entering edit mode

Thank you all, --TMP_DIR . solved the issue

ADD REPLY

Login before adding your answer.

Traffic: 1526 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6