Hi,
I have recently shifted from GATK 3 to GATK4. It has changed very much. I figured most of the step but one thing is giving me problem is that how to set temporary directory option in GATK4. I have used this option export _JAVA_OPTIONS=-Djava.io.tmpdir=./tmp with this option --TMP_DIR ./tmp/. As mentioned in this link But it is giving me this error
A USER ERROR has occurred: 'export' is not a valid command.
Can any one please tell me how to resolve this error.
Which shell are you using (
echo $SHELL)? Setting./tmp/is vague since the program will always look for that directory from where you start it. You should provide full path totmpwhen setting the--TMP_DIR.I am using /bin/bash. I have set whole path to tmp directory. And there was space in
export_JAVA_OPTIONS=-Djava.io.tmpdir=./tmpwhich I removed but now it is giving me errorThat space before
_JAVAis required. In any case @dario has a possible solution posted below. I would still suggest not using./tmp.