Question: SnpEff annotation keeps throwing Java Errors
0
gravatar for tmrhyd
4 months ago by
tmrhyd0
tmrhyd0 wrote:

So I keep running the following code.

snpEffBuildAndRun --snpeff-exec /home/treinbo/snpEff/snpEff.jar KMM.gff 6_KMM7_Chloroplast_freebayes_07012019.vcf -o 7_KMM7_chloroplast_annotate.vcf

And it keeps giving me the following error.

Traceback (most recent call last):
  File "/home/treinbo/anaconda3/bin/snpEffBuildAndRun", line 44, in <module>
    args = check_and_amend_executables(args)
  File "/home/treinbo/anaconda3/lib/python3.7/site-packages/snpEffWrapper/wrapper.py", line 79, in check_and_amend_executables
    args.java_exec = _choose_java()
  File "/home/treinbo/anaconda3/lib/python3.7/site-packages/snpEffWrapper/wrapper.py", line 59, in _choose_java
    if _java_version_ok(java):
  File "/home/treinbo/anaconda3/lib/python3.7/site-packages/snpEffWrapper/wrapper.py", line 43, in _java_version_ok
    output = subprocess.check_output([java, '-Xmx10m', '-version'], stderr=subprocess.STDOUT)
  File "/home/treinbo/anaconda3/lib/python3.7/subprocess.py", line 395, in check_output
    **kwargs).stdout
  File "/home/treinbo/anaconda3/lib/python3.7/subprocess.py", line 472, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/home/treinbo/anaconda3/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/home/treinbo/anaconda3/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/software/bin/java': '/software/bin/java'

Java is installed, and I've typed Java into terminal and got results, so it definitely is working, so why is it trying to find a version of java that doesn't exist?

Thank you guys so much!!

snp assembly genome • 225 views
ADD COMMENTlink written 4 months ago by tmrhyd0
2

What is the result of which java? And echo $JAVA_HOME?

ADD REPLYlink written 4 months ago by h.mon28k
3
gravatar for arup
4 months ago by
arup1.9k
India
arup1.9k wrote:

Set the path of Java installation using --java-exec option.

ADD COMMENTlink written 4 months ago by arup1.9k

That worked! thank you!!

ADD REPLYlink written 4 months ago by tmrhyd0

If the answer solved your problem, then please up-vote it and toggle the accepted flag.

ADD REPLYlink written 4 months ago by h.mon28k
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: 2076 users visited in the last hour