issue of kma index

Issue #73 resolved
Former user created an issue

hi! I ran the code and got the result like this. Could you please tell me what is wrong with my code and is there any where I should improve? Thx~~~~

(base) Jr-2:~ jrlee$ python3 ./resfinder/run_resfinder.py -o ./output/ -k ./kma_index -s "Escherichia coli" -l 0.6 -t 0.8 --acquired --point -ifq ./resfinder/tests/data/test_isolate_01_ Traceback (most recent call last): File "/Users/jrlee/./resfinder/run_resfinder.py", line 257, in <module> _ = subprocess.check_output([kma, "-h"]) File "/Users/jrlee/opt/miniconda3/lib/python3.9/subprocess.py", line 424, in check_output return run(popenargs, stdout=PIPE, timeout=timeout, check=True, File "/Users/jrlee/opt/miniconda3/lib/python3.9/subprocess.py", line 505, in run with Popen(popenargs, *kwargs) as process: File "/Users/jrlee/opt/miniconda3/lib/python3.9/subprocess.py", line 951, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/Users/jrlee/opt/miniconda3/lib/python3.9/subprocess.py", line 1821, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: './kma_index'

Comments (2)

  1. CGE Helpdesk

    Dear User,

    Thank you for your interest in ResFinder.

    The error arises from the -k argument. Here you can specify the path to kma. You don’t need to if you have placed the kma directory as described in the installation manual.
    If the kma directory is placed elsewhere, point to kma like:
    path/to/kma/kma and not path/to/kma/kma_index

    Best regards,
    Karen, CGE Helpdesk

  2. Log in to comment