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

KEGG-to-anvio error: got an unexpected keyword argument "axis" #7

Closed
Smitdere opened this issue Jul 7, 2018 · 5 comments
Closed

KEGG-to-anvio error: got an unexpected keyword argument "axis" #7

Smitdere opened this issue Jul 7, 2018 · 5 comments

Comments

@Smitdere
Copy link

Smitdere commented Jul 7, 2018

I am trying to run the parser KEGG-to-anvio to import GhostKoala annotations into my anvio contigs database. When running the script with python 2 I get the following error message:

Traceback (most recent call last):
File "KEGG-to-anvio", line 38, in
extracted= extracted.rename({'description':'function'},axis='columns')
File "/usr/lib/python2.7/dist-packages/pandas/core/frame.py", line 2834, in rename
**kwargs)
File "/usr/lib/python2.7/dist-packages/pandas/core/generic.py", line 650, in rename
'argument "{0}"'.format(list(kwargs.keys())[0]))
TypeError: rename() got an unexpected keyword argument "axis"

Below is the command that I am running:
python KEGG-to-anvio --KeggDB KO_Orthology_ko00001.txt -i user_ko.fixed.txt -o KeggAnnotations-AnviImportable.txt

Attached is my GhostKoala output.

I am getting this error despite removing the first two rows which have no Kegg annotation in the second column, as recommended in other posts that I've read on the github.

Thanks,
Derek
user_ko.txt

@edgraham
Copy link
Owner

edgraham commented Jul 9, 2018 via email

@Smitdere
Copy link
Author

Smitdere commented Jul 9, 2018 via email

@edgraham
Copy link
Owner

edgraham commented Jul 9, 2018 via email

@Smitdere
Copy link
Author

Smitdere commented Jul 11, 2018 via email

@edgraham
Copy link
Owner

Hello,

thanks for the information, I am running pandas v.0.22. They must have changed the functionality of pandas.rename because removing the 'axis='columns'' causes the script to become non-functional.

-Elaina

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

2 participants