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

taxtable: ValueError: 'section' is not in list #128

Closed
openpaul opened this issue May 13, 2019 · 3 comments
Closed

taxtable: ValueError: 'section' is not in list #128

openpaul opened this issue May 13, 2019 · 3 comments

Comments

@openpaul
Copy link

I ran:

taxit new_database taxonomy.db

Followed by

taxit taxtable taxonomy.db -t 5599 

And get the error:

Traceback (most recent call last):
  File "taxtastic-env/bin/taxit", line 11, in <module>
    load_entry_point('taxtastic==0.8.9', 'console_scripts', 'taxit')()
  File "taxtastic-env/lib/python3.6/site-packages/taxtastic/scripts/taxit.py", line 51, in main
    return action(arguments)
  File "taxtastic-env/lib/python3.6/site-packages/taxtastic/subcommands/taxtable.py", line 150, in action
    sorted_ranks = sorted(all_ranks, key=order_ranks(tax.ranks[::-1]))
  File "taxtastic-env/lib/python3.6/site-packages/taxtastic/subcommands/taxtable.py", line 77, in _inner
    return (ref_ranks.index(rank), 0)
ValueError: 'section' is not in list

Other taxids work fine. I am unsure what seems to be the issue here.

I am using

taxit --version
taxit v0.8.9
@crosenth
Copy link
Member

crosenth commented May 15, 2019

Thank you Paul for raising this Issue. I am able to reproduce and am working on a fix. I will get back to you shortly.

@crosenth
Copy link
Member

Go ahead and update taxtastic to version v0.8.11 either with pip (from PyPi) or from Github (https://github.com/fhcrc/taxtastic/releases/tag/v0.8.11).

Thanks again for raising this Issue. Let me know if anything else comes up.

@openpaul
Copy link
Author

This seems to have fixed it. Thank you.

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