I am trying to use R to create a relative abundance chart using my qiime2 data. However I have having an issue. I want this plot to represent the genus and species levels cause I have 7 bacteria, however two of them are Wolbachia unidentified bacteria (but they are distinct from each other). The bar chart is grouping them together and I do not want this to happen.
I think maybe the best way to do this is using RESCRIPt before importing the taxonomy QZA to phyloseq. See this RESCRIPt tutorial section explaining how to do it. I think this fits your needs, as the tutorial section says:
If for any reason you still want to do this directly in R, without getting too much into it (because I am not very familiar with phyloseq), AFAIK the phylogeny slot of the Phyloseq object is a character matrix, so some rudimentary base R code like:
should do the trick (I'm not familiar with SILVA either, I assume that, like UNITE, it has an identifier somewhere you can use for searching).
Also, it's quite likely that phyloseq or any other microbiome R package already has a built-in function to do this. But, again, I don't have experience with phyloseq. So I would stick to the RESCRIPt approach.
Best wishes,
Sergio
--
Disclaimer: I'm only another forum user, just like you. Please don't take my answer as a ground truth. A Forum Moderator would probably provide you with a more accurate answer.