Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected keyword argument 'choice' #1

Closed
orctyr opened this issue Aug 18, 2021 · 5 comments
Closed

unexpected keyword argument 'choice' #1

orctyr opened this issue Aug 18, 2021 · 5 comments

Comments

@orctyr
Copy link

orctyr commented Aug 18, 2021

Hi,

I had installed arg_ranker succesfully including requirements.
But there is something error when I try test data.

Details:

$ arg_ranker -i $path/arg_ranker/test -kkdbtype standard -kkdb $path/arg_ranker/db/k2_standard_20210517/

arg_ranker evaluates the risk of ARGs in genomes/metagenomes
Requirement: blast, diamond, kraken, python 3
Optimal: a table of the metadata of your samples (see example/All_sample_metadata.txt).
Copyright:An-Ni Zhang, MIT; Prof. Tong Zhang, University of Hong Kong
Contact caozhichongchong@gmail.com

Traceback (most recent call last):
File "$path/arg_ranker/bin/arg_ranker", line 8, in
sys.exit(main())
File "$path/arg_ranker/lib/python3.8/site-packages/arg_ranker/main.py", line 64, in main
optional.add_argument('-kkdbtype',
File "$path/arg_ranker/lib/python3.8/argparse.py", line 1368, in add_argument
action = action_class(**kwargs)
TypeError: init() got an unexpected keyword argument 'choice'

Could you please give some suggestions?
Many thanks.
orctyr

@JorgeQL
Copy link

JorgeQL commented Aug 23, 2021

Hello,

I obtained the same error message when I tried to run the command line. Could you please help us?

Many thanks,

Jorge

@caozhichongchong
Copy link
Owner

caozhichongchong commented Nov 13, 2021

Hi orctyr and Jorge,

Thank you so much for reaching out!
Sorry about this late reply.

I have adjusted and updated the code.
Please re-install the newest arg_ranker (v2.8.3) by running
pip uninstall arg_ranker
pip install arg_ranker

Thank you again!

Best regards,
Anni

@caozhichongchong
Copy link
Owner

Hi orctyr and Jorge,

I have noticed an error of arg_ranker.v2 when reporting the total ARG abundance in metagenomes.
If the total ARG abundance is used in your research, please refer to https://github.com/caozhichongchong/arg_ranker for more details!
I'm really sorry about this inconvenience!
Please feel free to reach out to me if you have any questions.

Best regards,
Anni

@orctyr
Copy link
Author

orctyr commented Jul 1, 2022

Thank you very much.

@JorgeQL
Copy link

JorgeQL commented Jul 1, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants