david-barnett / microViz

R package for microbiome data visualization and statistics. Uses phyloseq, vegan and the tidyverse. Docker image available.
https://david-barnett.github.io/microViz/
GNU General Public License v3.0
106 stars 11 forks source link

Tax_fix no non-unknown values #153

Closed luigallucci closed 5 months ago

luigallucci commented 6 months ago

Hi! Thank you for developing such a nice package for additional phyloseq integration and nice plotting.

I'm struggling with the function tax_fix as I have a dataset (from which I removed Mitochondria, Chloroplast and what else different from Bacteria).

Now, after a subset to the desired experiment group of samples...I have two ASV that are correspondent to NA and if I try tax_fix as follow:

env_sub %>%
 tax_fix(
  min_length = 3,
  unknowns =,
  sep = " ", anon_unique = FALSE,
  suffix_rank = "current"
 )

I got:

Row named: ASV_9595
contains no non-unknown values, returning:
'unclassified Kingdom' for all replaced levels.
Consider editing this tax_table entry manually.

Row named: ASV_9605
contains no non-unknown values, returning:
'unclassified Kingdom' for all replaced levels.
Consider editing this tax_table entry manually.

I was also asking to myself if there is the possibility to use nested legends for the barplot...there is a function included for that?

david-barnett commented 6 months ago

Hi, glad you're finding microViz useful :)

1) If you want to keep the unclassified ASVs separate you can set anon_unique to TRUE. 2) Nested legends are not currently possible in microViz, but I have spotted a package called fantaxic that offers this specific functionality - I have not had an opportunity to test it out myself though