khyox / recentrifuge

Recentrifuge: robust comparative analysis and contamination removal for metagenomics
http://www.recentrifuge.org
Other
86 stars 7 forks source link

KeyError: 'STRAIN' #23

Closed abomba closed 4 years ago

abomba commented 4 years ago

Hi, can you help me with this issues?

Bug report

=-= /home/abomba/miniconda3/bin/rcf =-= v1.0.3 - May 2020 =-= by Jose Manuel Martí =-=

Loading NCBI nodes...Traceback (most recent call last):
  File "/home/abomba/miniconda3/lib/python3.6/site-packages/recentrifuge/taxonomy.py", line 79, in read_nodes
    rank = Rank[_rank.upper().replace(" ", "_")]
  File "/home/abomba/miniconda3/lib/python3.6/enum.py", line 329, in __getitem__
    return cls._member_map_[name]
KeyError: 'STRAIN'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/abomba/miniconda3/bin/rcf", line 813, in <module>
    main()
  File "/home/abomba/miniconda3/bin/rcf", line 737, in main
    collapse, excluding, including, args.debug)
  File "/home/abomba/miniconda3/lib/python3.6/site-packages/recentrifuge/taxonomy.py", line 40, in __init__
    self.read_nodes(nodes_file)
  File "/home/abomba/miniconda3/lib/python3.6/site-packages/recentrifuge/taxonomy.py", line 82, in read_nodes
    f'Unknown tax level {_rank}')
recentrifuge.rank.UnsupportedTaxLevelError: Unknown tax level strain

Command line

> rcf -f s.tsv -n ~/miniconda3/bin/taxdump

Data

Versions

khyox commented 4 years ago

Hi @abomba and thank you very much for reporting this! It seems that NCBI has introduced an important change in its taxonomy in the last days which breaks Recentrifuge. Let me confirm that and I will come back with a solution. Thanks.

gaferguz commented 4 years ago

Hi, i am facing the same issue with recentrifuge, but im not sure if it is a matter of reinstalling or running an specific script on my computer. ¿What should I do?

Loading` NCBI nodes...Traceback (most recent call last):
  File "/home/gabriel/.local/lib/python3.7/site-packages/recentrifuge/taxonomy.py", line 79, in read_nodes
    rank = Rank[_rank.upper().replace(" ", "_")]
  File "/home/gabriel/anaconda3/lib/python3.7/enum.py", line 352, in __getitem__
    return cls._member_map_[name]
KeyError: 'STRAIN'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gabriel/.local/bin/rcf", line 813, in <module>
    main()
  File "/home/gabriel/.local/bin/rcf", line 737, in main
    collapse, excluding, including, args.debug)
  File "/home/gabriel/.local/lib/python3.7/site-packages/recentrifuge/taxonomy.py", line 40, in __init__
    self.read_nodes(nodes_file)
  File "/home/gabriel/.local/lib/python3.7/site-packages/recentrifuge/taxonomy.py", line 82, in read_nodes
    f'Unknown tax level {_rank}')
recentrifuge.rank.UnsupportedTaxLevelError: Unknown tax level strain
khyox commented 4 years ago

Hi @gaferguz, please update Recentrifuge to the latest version and try again. If you still have the issue or you already has the latest version, please open another issue so that you provide all the information I need to try to reproduce and correct it. Thanks!

gaferguz commented 4 years ago

Hi @khyox , I have reinstalled the latest version and everything seem to be working fine, thanks for your quick response.

khyox commented 4 years ago

Thanks for the feedback. Enjoy!

On Mon, Aug 31, 2020, 02:02 gaferguz notifications@github.com wrote:

Hi @khyox https://github.com/khyox , I have reinstalled the latest version and everything seem to be working fine, thanks for your quick response.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/khyox/recentrifuge/issues/23#issuecomment-683658678, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7LLEI2PMJGFADI6V3SXUDSDNRKVANCNFSM4OCSONSA .