Test-drive the GATK tools and Best Practices pipelines on Terra


Check out this blog post to learn how you can get started with GATK and try out the pipelines in preconfigured workspaces (with a user-friendly interface!) without having to install anything.

Java FileNotFoundError while executing gatk4

I have install gatk on ubuntu 16.04 LTS, 64 bit following the steps mentioned at this link and I have checked that the instlallation is good (everything checked till step#4 on the above provided lnk)

Now , when I run gatk --list, I encounter below error message:

(gatk) [email protected]:~/gatk-4.1.0.0$ gatk --list
Using GATK jar /home/bioinfo/gatk-4.1.0.0/gatk-package-4.1.0.0-local.jar
Running:
    java -Dsamjdk.use_async_io_read_samtools=false -Dsamjdk.use_async_io_write_samtools=true -Dsamjdk.use_async_io_write_tribble=false -Dsamjdk.compression_level=2 -jar /home/bioinfo/gatk-4.1.0.0/gatk-package-4.1.0.0-local.jar --help
Traceback (most recent call last):
  File "/home/bioinfo/gatk-4.1.0.0/gatk", line 477, in <module>
    main(sys.argv[1:])
  File "/home/bioinfo/gatk-4.1.0.0/gatk", line 152, in main
    runGATK(sparkRunner, sparkSubmitCommand, dryRun, gatkArgs, sparkArgs, javaOptions)
  File "/home/bioinfo/gatk-4.1.0.0/gatk", line 328, in runGATK
    runCommand(cmd, dryrun)
  File "/home/bioinfo/gatk-4.1.0.0/gatk", line 382, in runCommand
    check_call(cmd)
  File "/home/bioinfo/miniconda2/envs/gatk/lib/python3.6/subprocess.py", line 286, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/home/bioinfo/miniconda2/envs/gatk/lib/python3.6/subprocess.py", line 267, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/home/bioinfo/miniconda2/envs/gatk/lib/python3.6/subprocess.py", line 707, in __init__
    restore_signals, start_new_session)
  File "/home/bioinfo/miniconda2/envs/gatk/lib/python3.6/subprocess.py", line 1333, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'java'
(gatk) [email protected]:~/gatk-4.1.0.0$ java -version

Best Answers

Answers

Sign In or Register to comment.