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

Keyerror: taxonomy #56

Open
maracashay opened this issue Apr 21, 2021 · 5 comments
Open

Keyerror: taxonomy #56

maracashay opened this issue Apr 21, 2021 · 5 comments

Comments

@maracashay
Copy link

Hi everyone,

I am working with an ASV table from dada2 output in R. I did some data wrangling to make a 'taxonomy' column as similar as I could to the example asv table provided. I also changed 'ASV' to 'OTU' in case that was important. The taxonomy column in the ASV table looks like this:

|Vishniacozyma_victoriae|k__Fungi;p__Basidiomycota;c__Tremellomycetes;o__Tremellales;f__Bulleribasidiaceae;g__Vishniacozyma;s__victoriae

Here is the error message: FUNGuild % python FUNGuild.py taxa -otu /Users/maraslaptop/Downloads/Fungal-Steam-ASV-Table.txt -format tsv -column taxonomy -classifier unite
Taxa parser initiated.
Loading OTU table: /Users/maraslaptop/Downloads/Fungal-Steam-ASV-Table.txt
Table format: tsv
Taxonomic column: taxonomy
Taxonomic style: unite
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 2897, in get_loc
return self._engine.get_loc(key)
File "pandas/_libs/index.pyx", line 107, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 131, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1607, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1614, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'taxonomy'

I'm attaching a shortened version of my asv file.
Fungal-ASV-Funguild.txt

@sandipansamaddar
Copy link

Hi,
I am trying to format the dada2 ASV table to a format which is supported by FUNGuild but I am unable to do it. Can you please help me with that? I can also try after that to see if I get same error while running FUNGuild.

Thanks,

Sandipan

@ZeweiSong
Copy link
Collaborator

ZeweiSong commented Jun 22, 2021 via email

@sandipansamaddar
Copy link

Hi Zewei,
I didnot try funguild yet. I just outputted the ASV table (attached) from dada2 and want to format it as an input for Funguild. So I am wondering can I get some help on how to format a normal ASV table to a funguild format? After I have that file I will try Funguild and can let you know fi that works.

Thanks and any help will be appreciated.

Thanks again.
dada2ASVtable.xlsx

Sandipan

@ZeweiSong
Copy link
Collaborator

ZeweiSong commented Jun 25, 2021 via email

@merytouceda
Copy link

Hi! I had the same error as @maracashay here. Did anyone find a solution to it?

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

4 participants