Hello everyone,
I am currently trying to make lefse plot in R with the lefser
Bioconductor package. However, I am having trouble making the package use ASVs instead of IDs. I have imported the relevant files (filtered-table.qza
, rooted-tree.qza
, taxonomy.qza
and metadata.tsv
) into a phyloseq object, followed by the next code. After unclass
ing all components from the phyloseq object and turning them into a SummarizedExperiment
object, running Lefse with default settings and plotting the result, I get this.
Which is a mess. It seems lefser is comparing feature IDs between the categorical levels of the variable I am interested in (Sample type in this case) instead of a taxonomy table with all IDs properly assigned to their correct taxonomy, despite the fact that I am providing a taxonomy file with rowData
when creating my SummarizedExperiment
object. Can anyone let me know how I can fix this issue? I suppose I could try and going back to QIIME2 and providing the rooted-tree.qza
file with the taxonomy labels or something else?
Thanks!