Error using kma on reads file

Issue #34 resolved
Pierrick Lucas created an issue

Dear colleagues,

Thank you for your tools and your work. I update my Resfinder to the last version and I have some problem.

Kma is installed on cge directory.

I want to use Resfinder and Pointfinder on reads, my command:

python3.5 run_resfinder.py -ifq file_R1.fastq.gz file_R2.fastq.gz -o Resfinder_on_reads/Sample/ -db_res /way/to/db/resfinder_db/ -db_point /way/yo/db/pointfinder_db/ -s 'campylobacter jejuni' -acq -c

Error in terminal:

Traceback (most recent call last):
  File "run_resfinder.py", line 406, in <module>
    kma_1t1=True)
TypeError: kma() got an unexpected keyword argument 'kma_cge'

In run_resfinder.py the function kma is called:

        kma_run = acquired_finder.kma(inputfile_1=inputfastq_1,
                                      inputfile_2=inputfastq_2,
                                      out_path=out_res_kma,
                                      db_path_kma=args.db_path_res_kma,
                                      databases=acquired_finder.databases,
                                      min_cov=min_cov,
                                      threshold=args.threshold,
                                      kma_path=kma,
                                      sample_name="",
                                      kma_cge=True,
                                      kma_apm="p",
                                      kma_1t1=True)

I find in cgefinder.py (in cgecore directory) the kma function :

    def kma(inputfile_1, out_path, databases, db_path_kma, min_cov=0.6,
            threshold=0.9, kma_path="cge/kma/kma", sample_name="",
            inputfile_2=None, kma_mrs=None, kma_gapopen=None,
            kma_gapextend=None, kma_penalty=None, kma_reward=None, kma_pm=None,
            kma_fpm=None, kma_memmode=False, kma_nanopore=False, debug=False,
            kma_add_args=None):

There is no kma_cge kma_apm kma_1t1 in the function, if I comment these 3 arguments I don’t have error.

I work on ubuntu 16.04.

Many thanks for your answer.

Comments (3)

  1. Alfred Ferrer Florensa

    Hello Pierrick,

    I was going to tell you that 🙂 If you want to know, the argument “kma_add_args” in the function “kma” is the one adding the arguments not included.

    Alfred

  2. Log in to comment