You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the 'taxa_names' flag in 'taxa_abundance_bar_plot'. Without the 'taxa_names' I can show different taxa levels from my barplot.qzv file without issue. However, I would like to show just the class level from a specific taxa - e.g. show %abundance from classes from just k__Bacteria;_p__Proteobacteria.
I have tried a few different things with syntax etc (including putting the taxon='k__Bacteria;p__Proteobacteria' just below the file inputs), but get errors including:
KeyError: "['k__Bacteria;p__Proteobacteria'] not found in axis"
Could you please advise if what I am trying to achieve is possible? Or correct my syntax? I can upload the files if that is helpful.
Good question! The issue was caused because you used level=3 (Kingdom-Phylum-Class) while specifying a Kingdom-Phylum name (k__Bacteria;p__Proteobacteria). Setting level=2 should fix the issue. Try it and let me know if it doesn't solve the problem.
Thanks as always for your quick responses @sbslee!
OK - I have just got that to work. What I was hoping for was being able to select the Kingdom-Phylum name (k__Bacteria;p__Proteobacteria) but display in the graph the level=3 (Kingdom-Phylum-Class) :-) But I can provide the class names to display easily enough.
Oh I see! That's an interesting idea. I agree that it'd be handy to be able to select all the downstream taxa by providing their parent taxon. If it's something that you foresee yourself doing a lot, I'd be more than happy to implement something that does that.
I wasn't sure it would be possible given the underlying structure of the barplots.qzv file. But I would definitely use it, and find it easier that supplying a taxa _names list.
Thanks for considering the idea.
HI @sbslee ,
I'm trying to use the 'taxa_names' flag in 'taxa_abundance_bar_plot'. Without the 'taxa_names' I can show different taxa levels from my barplot.qzv file without issue. However, I would like to show just the class level from a specific taxa - e.g. show %abundance from classes from just k__Bacteria;_p__Proteobacteria.
I have tried a few different things with syntax etc (including putting the taxon='k__Bacteria;p__Proteobacteria' just below the file inputs), but get errors including:
KeyError: "['k__Bacteria;p__Proteobacteria'] not found in axis"
Could you please advise if what I am trying to achieve is possible? Or correct my syntax? I can upload the files if that is helpful.
Here what I'm running in Jupyter:
Thanks!
The text was updated successfully, but these errors were encountered: